Recently, I have been working on an old project that has some fairly complex JavaScript interactions. One thing that I am noticing is that my event handlers are getting very complex. When a user clicks on certain elements, the event handler that listens for that "click" event may perform up to 5 or 6 logic checks before deciding how to react to said click event. This is a pain and is becoming quite a problem in terms of maintenance. If I could go back and write this all over again, I would pr ...
Read More ยป