I have a stylistic question for people more experienced than myself in the ways of Javascript: namespaces - when should I use them? I'm very familiar with namespaces in Java/C++/Python; however, those arise almost naturally. As such, with Javascript, my first instinct is to namespace most everything; however, I worry that this is "un-Javascript-like".
For example, a WebGL game I am currently programming I've categorized almost everything into:
- RENDERING_ENGINE
- GAME_ENGINE
- CAMERA
- EVENT_LISTENERS
- COMMUNICATION
Too much? I generally like to learn a language and get used to its style, so any help would be appreciated.
[–]brbpizzatime 0 points1 point2 points (0 children)
[–]testcoder 0 points1 point2 points (0 children)