Doing It Wrong

learn in public

Site Navigation

  • Home
  • Books
  • Work & Play

Site Search

You are here: Home / 2025 / Archives for May 2025

Archives for May 2025

Event Listeners

posted on May 8, 2025

This is half-baked and needs more thought, but I often find myself wishing that I could emit a native event with a payload (like I need to “type for the user”). The handleChange event listener is very much tied to the incoming event’s interface, so it becomes inflexible to the change I need to make.

I think a better way would be to treat even handlers as an interface adapter, always putting the change logic in a separate function.

Filed Under: Development Tagged With: FrontEnd, Needs Thought, Needs Work

Profile Links

  • GitHub
  • Buy Me a Coffee?

Recent Posts

  • Event Listeners
  • A Philosophy of Software Design
  • The Programmer’s Brain
  • Thoughts on Microservices
  • API Design Patterns

Recent Comments

No comments to show.

Archives

  • May 2025
  • September 2024
  • July 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • October 2023
  • December 2022
  • December 2021

Categories

  • Development