I have literally never seen a large-scale open source project or JS style guide that uses snake_case.
The DOM is camelCase. jQuery is camelCase. Node APIs are camelCase. Why on earth do Zurb think their library is any different?
Really? Why on earth would you care? What if they were to indent their code with 3 spaces? Would that be "insane", too? What if they don't like putting in unnecessary braces around one line "if" statements? Insane?
It's a (very common) stylistic choice. It's hardly insane.
I don't care what their code looks like internally. I do care about the public interface to it.
Whoa there buddy! Put the gun down...
Whoa buddy! Put down the gun...
On a serious note... is this trolling or are people seriously complaining about camel-case vs snake-case?
I'm open to change and debate, but it should be approached carefully.
cACertificate*
Talk about slavish consistency.Citation?
Seriously, does someone need to crawl every Javascript project on Github and compile statistics on naming styles before they can make an obviously true statement like this? The fact that camelCase is the norm in the language and browser environment is obvious to anyone who has written even a modest amount of JS.
notQuantified != falseto avoid type coercion here
You mean... like this? http://sideeffect.kr/popularconvention/#javascript
Unfortuantely there's no stat there for camelCase for Javascript.
hideImage vs hide_image: 424 vs 50
toggleItem vs toggle_item: 1022 vs 52
clickElement vs click_element: 3469 vs 368
Coding conventions by statistics :)
https://github.com/search?q=searchPage+extension%3Ajs&type=C...
Well, it's sure as hell not window.set_timeout, window.clear_interval, window.on_load, etc.
JavaScript.
Constructors use PascalCase; variables and methods use camelCase.
So, it's OK to call it JavaScript! :-)