Re:Show HN: Coffee Filter, useful coffeescript functions for...
by Qerub on Friday November 16, 2012 @04:27PM
(#4795945)
Why are all the function names in snake_case instead of camelCase?
[ Parent
| on HN ]
Re:Show HN: Coffee Filter, useful coffeescript functions for...
by mgeraci on Friday November 16, 2012 @04:38PM
(#4795992)
That's a holdover of the project from which I extracted these, reachably. We decided to use snake case across html css and javascript to keep things standard - feel free to judge that decision.
Given that people will most likely be using this in more traditionally camel cased situations, I think I will go through and change that this weekend. Thanks for pointing that out!
Re:Show HN: Coffee Filter, useful coffeescript functions for...
by benatkin on Friday November 16, 2012 @05:34PM
(#4796231)
Please keep the snake_case. Think of all the things that CoffeeScript borrowed from ruby while omitting the snake_case. We aren't that far from being able to write most frontend code with snake_case. All it would take is a Backbone fork and a jQuery wrapper to get us most of the way there!