by iaskwhy · 14y ago · 0 comments
css:
margin-left, border-bottom (hyphenate)
javascript:
getElementById, documentNode (lower camel case)
ruby:
each_index, has_key? (underscore)I guess that section is more about ‘keep everything the same’ rather than ‘we must specifically use hyphens’ :)
Cheers, H
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 :)