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?
- None of the responsibilities particularly surprised me but it was nice to see her break them out in such a manner because I've been lacking a proper framework to split up my logic.
- Do you feel like you mentally split your client side code in IdeaBox and other past projects into these responsibilities?
- My idea box code is broken up a little bit but by and large it is exactly what she is rallying against. And I completely agree that breaking up your code into testable pieces is paramount to quality.
Step Four: Totally Optional: take a look at some of the other forks and comment if the spirit moves you.