sathify / CCSS

CSS architecture for web applications
http://sathify.github.io/CCSS/
MIT License
168 stars 20 forks source link

Naming conventions #8

Closed iamskok closed 9 years ago

iamskok commented 9 years ago

What naming conventions do you use for functions, placeholders and mixins ?

sathify commented 9 years ago

@Skoks you brought up a good point. These are the three mixin file examples in the repo for bem, icons and animations. Didn't really formalize it but start with lowercase and camelcase the second if it has one. In general, I would avoid using - to separate names.

iamskok commented 9 years ago

@sathify Thanks for your answer. That will be a good adding to your article, because there are often times, when placeholders, mixins and functions are longer than 1 word.

What about naming long file names ? Do you use the same methodology ?

sathify commented 9 years ago

@Skoks will add it. It shouldn't really matter in the file naming case: you can user use camelcase or - to separate out names.

iamskok commented 9 years ago

Is there any reason behind using delimiters for variable names instead of camelCase ?

@sathify Thank you! :+1:

sathify commented 9 years ago

Nothing really! The repo naming convention had delimiters which I then refactored.