Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Manav Misra
11,778 PointsIs using ALL CAPS in THREE.js and some of the variable names contrary to common JS conventions/styleguides?
It felt very weird to type out in all caps in JS. It really doesn't seem like that is conventional at all. Is there some deeper explanation for this, or just an arbitrary choice from three.js developers?
2 Answers
Luke Pettway
16,593 PointsUsually you'll see all uppercase names when a framework is using namespaces:
https://www.kenneth-truyers.net/2013/04/27/javascript-namespaces-and-modules/
It isn't necessary, and it isn't always the standard when it comes to frameworks. It is one of those "in my opinion" styles of programming.
Manav Misra
11,778 PointsMakes sense. Thanks.