Re:Show HN: I decided to document and share my high-level CS...
by bung on Monday March 12, 2012 @11:44AM
(#3693931)
I recently brought this up with my own team after updating a 4-language piece on a project. It was originally pieced together at different times and was inconsistent. However, I was testing the waters with them trying to sell them on underscores.
We've all been using dashes in CSS for so long, but nowadays I personally feel like I'm writing so much JS that I'm longing for underscores.
Downsides: 1. You have to press shift a lot more when writing css 2. ???
Upsides: 1. You can use the "same_name" in CSS and JS 2. You can double-click easily
Feel free to expand on this, we haven't made the change, it's just something that crossed my mind recently :)
Re:Show HN: I decided to document and share my high-level CS...
by MatthewPhillips on Monday March 12, 2012 @12:19PM
(#3694118)
Underscores in JavaScript are non-standard too.
I guess that section is more about ‘keep everything the same’ rather than ‘we must specifically use hyphens’ :)
Cheers, H