Raindrop/CodeStyle: Difference between revisions

Jump to navigation Jump to search
(Created page with '== Code Style == Here are some style guidance for the Raindrop code. === JavaScript === All code should conform to the [http://www.jslint.com/lint.html JSLint] style. Big high…')
 
 
Line 10: Line 10:
* One var call per function.
* One var call per function.
* Always use braces around blocks.
* Always use braces around blocks.
* Prefer camelCase always instead of using_underscores. The back-end data model will have fields that have underscores, those are fine to reference. But for things that exist in just the front end code, camelCase is preferred, including in file names.


To validate your code, here are some options:
To validate your code, here are some options:
109

edits

Navigation menu