News for hackers. Stuff that matters.
Re:Bootstrap 2.3 Released by fat on Friday February 08, 2013 @02:53AM (#5186796)
fwiw, we generally just try to do what the language does:

border-radius <- css dashes

document.createElement <- js camel (except constants, etc.)

etc…

Re:Bootstrap 2.3 Released by mullr on Friday February 08, 2013 @04:16AM (#5187004)
This is the correct rationale, and should be used to end every argument about naming conventions.
Re:Bootstrap 2.3 Released by rschmitty on Friday February 08, 2013 @05:54AM (#5187218)
what about the programmers who made javascript and css? I'm sure they flame each other!
Re:Bootstrap 2.3 Released by rgo on Friday February 08, 2013 @03:52AM (#5186944)
I personally prefer using the exact oposite to the language. That way my code or customizations are set apart visually:

   obj.getSomethingById()  <-- theirs

   obj.redraw_panel()   <-- mine
Non-native English speakers sometimes prefer to name variables in their native language for the same reason.
Re:Bootstrap 2.3 Released by joesb on Friday February 08, 2013 @07:10AM (#5187417)
English is not my native language but I hate code with non-English variable names.
Re:Bootstrap 2.3 Released by Sandman on Friday February 08, 2013 @04:25AM (#5187025)
Why is it important that your code is visually set apart from the rest of the language?
Re:Bootstrap 2.3 Released by RobAley on Friday February 08, 2013 @05:32AM (#5187164)
When someone, particularly a beginner, is reading the code and come across, say, an unfamiliar function name, then they know straight away whether to look for it in the language docs or a definition somewhere else in the code. Not essential, but handy.
Re:Bootstrap 2.3 Released by joesb on Friday February 08, 2013 @07:06AM (#5187408)
I guess that only works for really simple project. Once you bring in third party libraries, your own common library, your own multiple layers of abstraction, this naming convention means almost nothing. It pays the price of annoying programmers who are already familiar with the code for not-so useful short term benefit of the very early beginner.
Re:Bootstrap 2.3 Released by Sandman on Friday February 08, 2013 @06:18PM (#5190718)
Surely there are better ways to deal with this problem. Different languages have different solutions for this, but completely breaking the naming conventions doesn't seem like the way to go.
Re:Bootstrap 2.3 Released by thiderman on Friday February 08, 2013 @07:38AM (#5187521)
That's a really bad thing in my eyes. Why teach a beginner that consistency is something that does not exist?

Also, non-english variables are an abomination! I've worked with code with some finnish variables. Not only is it harder to grok, it's actively distracting.

Re:Bootstrap 2.3 Released by virtualwhys on Friday February 08, 2013 @09:30AM (#5188000)
this
Re:Bootstrap 2.3 Released by salmanapk on Friday February 08, 2013 @08:50AM (#5187802)
AFAIK CSS uses camelCase for variables.[1]

1: http://css-tricks.com/currentcolor/