Re:Bootstrap 3.0 Upcoming changes
by jpdevereaux on Wednesday December 19, 2012 @11:31AM
(#4943308)
For a while the dash-ing annoyed me until I realized that it makes selecting/changing part of a variable name easier (at least in vim). Can't imagine that's the reasoning behind it but it does work out well.
Vim wasn't the exact reason, but text selection is a huge part of it. Readability and text selection are huge.
Thanks, that's good to know.
I suppose it doesn't make _too_ much of a difference considering I prefer to use hyphens in my css classes anyway, but this just seemed like a somewhat useless change that will end up breaking a lot of customization's..
Re:Bootstrap 3.0 Upcoming changes
by ubersoldat2k7 on Wednesday December 19, 2012 @12:21PM
(#4943574)
Although not always, you'll end up mixing CSS with JavaScript. In this case when naming CSS with dashes it's easier to differentiate from my JavaScript names, i.e. $("#myDiv") vs $("#my-div").
On a side note, I'm curious as to why they decided to refactor their variable names to include dashes instead of just sticking with camel casing. Personally, I find camel casing to be much more readable.