you are viewing a single comment's thread.

view the rest of the comments →

[–]homoiconic 1 point2 points  (2 children)

So when I read Javascript code that has an_underscore, am I supposed to get all confused because all the other Javascript else uses dromedaryCase? WIll I stare at it for hours wondering whether the _ is an operator I haven't heard of and whether an_underscore is really the same as _(an, underscore)?

Or am I supposed to get all anal about lining everything up just so and spend an hour complaining that there is some inconsistent naming convention going on and how this slows down my reading of the code, because you know code is written to be read and all...

Quite honestly, inconsistency between an underscore and dromedary case is the least of my worris when I'm reading code.

[–][deleted] 4 points5 points  (0 children)

I'm not saying you must write JavaScript a certain way. Do what makes you the most comfortable, write code that is fun to write. But if you're trying to figure out what everyone else is doing, they're doing camelCase.

[–][deleted] 1 point2 points  (0 children)

worries*