15
benbot
4y

Just spent the last 40 mins finding the difference between ‘promocodeInputValue’ and ‘promoCodeInputValue’

Comments
  • 0
    I feel you..

    Lost a couple of hours recently because of I & Lowercase L..

    What language and what IDE?

    I used sublime because I usually don’t touch JS so I didn’t wanna I stalk a proper ide for that one time..
    My fault but it’s still annoying.
  • 1
    Hm. If brain not works. Use tools.

    Split -> List -> Difference

    Tres simple
  • 0
    @just8littleBit coffeescript and emacs

    It’s way nicer than I sounds, I promise
  • 0
    @IntrusionCM the thing is I didn’t know that’s the difference I was looking for ;)
  • 1
    @benbot
    Are you the last unicorn still on coffeescript? 😮
  • 0
    If you are going to use vim or emacs, you should invest in learning what code quality tools are available for the technologies you work on. The tools most people use these days would warn about a name like this in coffeescript, and they'd do it after almost zero configuration beyond: "install coffescript support module".

    If you don't want to bother with that type of configuration, try out some different tools that do more for you out of the box and take less know-how to configure.
  • 0
    @shoop

    This is only good advice in specific circumstances. Many paradigms have conventions that encourage expressive and verbose naming. In that context, this is bad advice. In the (probably less common) case where shorter names are favored by convention, shorter names are good advice.

    Either way, short names are not a tool meant to help you avoid misspelling.

    In coffeescript, this is not a convention. For the most part, you should use whole English words to name things.
  • 0
  • 0
    🤓
Add Comment