TroyGrosfield.com TroyGrosfield.com

Posts Tagged ‘encapsulation’

Headline

Encapsulation, Namespacing, and Object Oriented Javascript

Author
by Troy Grosfield
Date
September 15th, 2010
Category
Developer
Story

Global functions and/or variables in Javascript can be very bad at times especially when there are many people working on a single project. In order to prevent naming collisions it’s a good idea to namespace your Javascript functions and variables and focus on encapsulation when needed. Issue Lets say you have multiple Javascript files: common.js … read more

Tags
Comments
3 Comments »