In the previous section, you learned that a development approach based on jQuery is not a good idea for a large web application.
To move a step forward, we need to decide what's the best option in terms of testable code. The main topic here is the application design; in other words, how we can build our codebase following a general guideline with testability in mind.
In software engineering, there's nothing better than not reinventing the wheel; we can rely on a safe and reliable resource: design patterns. Wikipedia provides a good definition for the term design pattern (http://en.wikipedia.org/wiki/Software_design_pattern):
"In software engineering, a design pattern is a general reusable solution to a commonly occurring ...