Skip to content

Conversation

@moncho
Copy link
Owner

@moncho moncho commented Jul 21, 2018

Now event handlers can decide which handler will handle the next event.
This change simplifies logic to decide who should be handling events by
removing a unique, global, point of coordination that was not working
well on some situations (e.g. the container menu) and it was quite
fragile.

It is also easier now to decide what is going to be shown on the screen.

A few things still need a good solution:

  • how to write unit tests for event handlers.
  • an approach that will allow to get rid of global variables.

moncho added 3 commits June 28, 2018 08:14
Now event handlers can decide which handler will handle the next event.
This change simplifies logic to decide who should be handling events by
removing a unique, global, point of coordination that was not working
well on some situations (e.g. the container menu) and it was quite
fragile.

It is also easier now to decide what is going to be shown on the screen.

A thing that still needs to be solved is how to write unit tests for
event handlers.

It would also be good to find a design that will allow to get rid of
global variables.
@moncho moncho merged commit d250fa4 into development Jul 21, 2018
@moncho moncho deleted the refactor-event-handling branch July 21, 2018 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants