Sat, Dec 5
Daily Challenge
One question per day, deterministic by local date. Read it, think it through, mark it complete to extend your streak.
javascript · medium
How would you implement a pub sub or event emitter from scratch?
Map<event, Set<handler>>. on/off/emit, with `on` returning an unsubscribe function. Handle errors per-handler so one throw doesn't break the rest. Bonus: once, namespacing, wildcard.
Open question