Very nice article! I was trying to explain to my development lead some of what was mentioned here. I created an asynchronous function to perform some tasks within a controller. That function would receive requests from two different consumers. One consumer has more of the required information than the other, so he suggested having the function accept a “mode” and utilize certain global variables to make use of the information already available to one of the consumers. I don’t necessarily agree with this, for obvious reasons. Perhaps sharing this article with him will help him to see things from a different perspective.

Interested in Computer Science, education and world domination.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store