Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. JavaScript
  4. Trivial Pursuit

Trivial Pursuit

Scheduled Pinned Locked Moved JavaScript
questionjavascript
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    goodideadave
    wrote on last edited by
    #1

    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.

    A T 2 Replies Last reply
    0
    • G goodideadave

      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.

      A Offline
      A Offline
      AspDotNetDev
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • G goodideadave

        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.

        T Offline
        T Offline
        TheGreatAndPowerfulOz
        wrote on last edited by
        #3

        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

        G 1 Reply Last reply
        0
        • T TheGreatAndPowerfulOz

          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

          G Offline
          G Offline
          goodideadave
          wrote on last edited by
          #4

          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.

          T 1 Reply Last reply
          0
          • G goodideadave

            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.

            T Offline
            T Offline
            TheGreatAndPowerfulOz
            wrote on last edited by
            #5

            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

            G 1 Reply Last reply
            0
            • T TheGreatAndPowerfulOz

              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

              G Offline
              G Offline
              goodideadave
              wrote on last edited by
              #6

              Jeez, 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.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups