Step One: Watch Writing Testable JavaScript - Rebecca Murphey from Full Frontal 2012 (award for worst conference name ever?)
Step Two: Fork this gist.
Step Three: Consider the four responsibilities that Rebecca lists for client side code (hint: they're color coded).
- Did any of the responsibilities that she lists surprise you?
- Presentation/Interaction, and Setup are obvious to me, but data server communication and application state are things I normally just don't think about. Those were definitely surprising to me. Now...to incorporate this aha moment into my code...
- Do you feel like you mentally split your client side code in IdeaBox and other past projects into these responsibilities?
- Only after building the entire application in one module was I able to extract the responsibilities and split the code into their respective responsibilities. For me, this was an easier way to understand the beginning of JavaScript.
Step Four: Totally Optional: take a look at some of the other forks and comment if the spirit moves you.
@rrgayhart