Trivial Pursuit
-
OK, it's Monday morning, and instead of doing useful work, I am trying to answer this question: Most of the JavaScript naming conventions I have seen around the web say that most variable and function names should start with a lower case letter. Why is that?
My other signature is witty and insightful.
-
OK, it's Monday morning, and instead of doing useful work, I am trying to answer this question: Most of the JavaScript naming conventions I have seen around the web say that most variable and function names should start with a lower case letter. Why is that?
My other signature is witty and insightful.
Here. Probably because the JavaScript libraries use camel case (lower initial letter for variable and function names). Case is especially important in JavaScript, as the only way to differentiate a class and a function may be the case (as classes, in the form they are usually implemented, are functions).
Somebody in an online forum wrote:
INTJs never really joke. They make a point. The joke is just a gift wrapper.
-
OK, it's Monday morning, and instead of doing useful work, I am trying to answer this question: Most of the JavaScript naming conventions I have seen around the web say that most variable and function names should start with a lower case letter. Why is that?
My other signature is witty and insightful.
Because it's C-based and that is the usual standard for C-based languages.
If your actions inspire others to dream more, learn more, do more and become more, you are a leader." - John Quincy Adams
You must accept one of two basic premises: Either we are alone in the universe, or we are not alone in the universe. And either way, the implications are staggering” - Wernher von Braun -
Because it's C-based and that is the usual standard for C-based languages.
If your actions inspire others to dream more, learn more, do more and become more, you are a leader." - John Quincy Adams
You must accept one of two basic premises: Either we are alone in the universe, or we are not alone in the universe. And either way, the implications are staggering” - Wernher von BraunYes, but then how can you tell at a glance if something is a variable or a function? Other than parends after the function name. I had been using a convention of upper camel case for local variables and upper camel case for functions. But my co-workers tell me that I'm the only one in North America to do it like that. They also tell me my mom dresses me funny, too. :(
My other signature is witty and insightful.
-
Yes, but then how can you tell at a glance if something is a variable or a function? Other than parends after the function name. I had been using a convention of upper camel case for local variables and upper camel case for functions. But my co-workers tell me that I'm the only one in North America to do it like that. They also tell me my mom dresses me funny, too. :(
My other signature is witty and insightful.
by reading the code. Context is king.
If your actions inspire others to dream more, learn more, do more and become more, you are a leader." - John Quincy Adams
You must accept one of two basic premises: Either we are alone in the universe, or we are not alone in the universe. And either way, the implications are staggering” - Wernher von Braun -
by reading the code. Context is king.
If your actions inspire others to dream more, learn more, do more and become more, you are a leader." - John Quincy Adams
You must accept one of two basic premises: Either we are alone in the universe, or we are not alone in the universe. And either way, the implications are staggering” - Wernher von BraunJeez, here I am working my fingers to the bone, nose to the grindstone, etc., etc., and you expect me to READ THE CODE??? :omg: And whaddaya mean Context is king? I didn't vote for him!
My other signature is witty and insightful.