Id say just like with any language, you need to ensure that your objects do one(or a few) thing(s) well. Read this article about dependency injection with JS http://merrickchristensen.com/articles/javascript-dependency... if you're able to model your code in a manor that fits that pattern, you'll be off to a great start
Comments
Id say just like with any language, you need to ensure that your objects do one(or a few) thing(s) well. Read this article about dependency injection with JS http://merrickchristensen.com/articles/javascript-dependency... if you're able to model your code in a manor that fits that pattern, you'll be off to a great start