Structuring clean Javascript

Status
You're currently viewing only aliftedlorax's posts. Click here to go back to viewing the entire thread.
Not open for further replies.
[url=http:/civis/viewtopic.php?p=25452183#p25452183:4qrj3acb said:
jxl[/url]":4qrj3acb]The biggest problem that I have with the revealing module pattern is that it makes unit testing kind of... impossible.

I find untested code more distasteful than a larger, possibly more dangerously exposed, set of methods.

Your unit tests are too granular or your modules are too coarse, then. I imagine it's a common problem experienced by people replacing program design with test-first development.
 
Status
You're currently viewing only aliftedlorax's posts. Click here to go back to viewing the entire thread.
Not open for further replies.