Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I don’t like .this-is-correct{} because sometimes you have the same variable name in Javascript too, where dashes won’t work.


Dashes map more cleanly to existing CSS syntax, eg nth-child, background-color, etc. Much like camelCase looks more like Javascript than my_variable.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: