> Renamed all of the variables to use dashes instead of camelCase. I absolutely detest camelCase. It ranks down there with good-old Hungarian notation. So, I am now wondering, why this change? Are people finally coming to their senses?
just-testing-this JustTestingThis Hmm. I think it only matters to me that the author picks one and stays with it. But that means that all libraries he uses has to use the same one. Which is why languages tend to prefer one over the other. e.g. Java using CaMeLcAsE To have them mixed in one code base would be like a micro context switch.
Bootstrap 2.3 Released
51–60 of 118 posts
Re: Bootstrap 2.3 Released
#52Earlier quoted context omitted.
I don't want to start a flame war, but I was wondering if there is a rationale for prefering dash-case? I have a hard time not writing in camelCase by default now.
"I don't want to start a flame war, but I was wondering if there is a rationale for prefering dash-case?" No, there isn't. It's one of those typical things that novice programmers fret about. Consistency within a code base is much more important than which style is used exactly. Having the style be a compile parameter would make sense to me, not switching from one to the other.
I know this is a commonly held belief, and I held it too for a short while. But then, I was managing a project that ran on both Linux (lower_case_name libraries), Windows (CapitalizeEachWord), had components in Python (ClassesAreLikeThis but variables_like_this), Java (camelCaseIsAnAbomination) and even some VB6 (don't even remember the convention).
Utterly inconsistent. And it didn't make any difference to readability or maintainability, once people accepted that there actually is no single standard we can use.
In my opinion, it's one of these things like, e.g. significant whitespace or C brace style, that people believe make a difference because they have an example - in which the difference is often not attributable to the feature being discussed.
Re: Bootstrap 2.3 Released
#53Re: Bootstrap 2.3 Released
#54> Renamed all of the variables to use dashes instead of camelCase. I absolutely detest camelCase. It ranks down there with good-old Hungarian notation. So, I am now wondering, why this change? Are people finally coming to their senses?
just-testing-this JustTestingThis Hmm. I think it only matters to me that the author picks one and stays with it. But that means that all libraries he uses has to use the same one. Which is why languages tend to prefer one over the other. e.g. Java using CaMeLcAsE To have them mixed in one code base would be like a micro context switch.
Re: Bootstrap 2.3 Released
#55Man, I love bootstrap. Not only is it pretty well design from the front end and back end. The less files that are architected are awesome, I wouldn't have thought of it on my own. The guys built it for full customization for advance programmers and dead simple for beginners. Keep up the good work! The only disadvantage to this is that all startups are now 'lazy' and begin using bootstrap default theme colors and styl…
The only exceptions are "primary" buttons (which was blue by default but based on the link color the last time I checked), info which is pale blue, and code samples which are pink.
I'm not in the slightest way artistic, but I feel if those (incredibly easily overriden) usages hold you back from expressing yourself with color then you're probably best not to bother and so it's a net-win either way.
Re: Bootstrap 2.3 Released
#56I am using the 3.0 branch without problems. I don't know why they don't merge it.
If you're not having any problems you must be very lucky and/or are only using a subset of the tools they provide, it's not going to be a drop in update for most people, hence the 3.0 version.
Re: Bootstrap 2.3 Released
#57> Renamed all of the variables to use dashes instead of camelCase. I absolutely detest camelCase. It ranks down there with good-old Hungarian notation. So, I am now wondering, why this change? Are people finally coming to their senses?
Re: Bootstrap 2.3 Released
#58Not sure how I feel about the swearing on the page.
Why does it matter?
It's that their usage of profanity is lame. They're trying to be cool and funny, and it's very much neither of these. If they could actually managed the be humorous with profanity, then maybe I wouldn't mind it so much but this blog post really reeks of someone who is desperately trying to be funny and yet miserably fails.
Re: Bootstrap 2.3 Released
#59Earlier quoted context omitted.
Why is it important that your code is visually set apart from the rest of the language?
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
#60Earlier quoted context omitted.
fwiw, we generally just try to do what the language does: border-radius document.createElement etc…
I personally prefer using the exact oposite to the language. That way my code or customizations are set apart visually: obj.getSomethingById() Non-native English speakers sometimes prefer to name variables in their native language for the same reason.