willzeng / WikiNets

[deprecated] see cograph
https://github.com/willzeng/cograph
GNU General Public License v3.0
30 stars 11 forks source link

Create Definitive Style Guide #149

Open vpontis opened 10 years ago

vpontis commented 10 years ago

HTML id/class should be lowercase-and-hyphenated CoffeeScript variables should be CamelCase etc.

Garbash commented 10 years ago

@ydaniv

vpontis commented 10 years ago

@backens, for now can we use lower case and hyphens for all HTML/CSS ids and classes. I think that is the standard most places on the web.

vpontis commented 10 years ago

Also, why do we have $ in front of a lot of variables in CoffeeScript such as in TopBarCreate.coffee. We have @$nodeWrapper but why not just have @nodeWrapper. The dollar-sign does not do anything special in CoffeeScript when not used as a shortcut for jQuery. @backens @willzeng