This post originated from an RSS feed registered with Java Buzz
by News Manager.
Original Post: Code in JavaScript the smart, modular way
Feed Title: JavaWorld
Feed URL: http://www.javaworld.com/index.rss
Feed Description: JavaWorld.com: Fueling Innovation
Some people still seem surprised that JavaScript is regarded as a respectable, grown-up programming language for serious applications. In fact, JavaScript development has been maturing nicely for years, with the best practices for modular development as a prime example.
The benefits of writing modular code are well documented: greater maintainability, avoiding monolithic files, and decoupling code into units that can be tested properly. For those of you who'd like to get caught up quickly, here are the common practices employed by modern JavaScript developers to write modularized code.