-
Notifications
You must be signed in to change notification settings - Fork 3
Style Guide
Peeyush Agarwal edited this page Jun 5, 2014
·
3 revisions
We will try to use Github's Ruby Styleguide for writing Ruby code.
We will try to use TomDoc for code documentation.
We will try to use Unobtrusive JavaScript. We will try to prefix classes and ids with js- when touching the DOM with JavaScript.
Example: <div class="js-open-tab">Blah!!</div>
This way, we know to look for any JavaScript touching .js-open-tab, which should only be a simple search away. And, now JavaScript and CSS won't share selectors. Since we're separating our content and presentation, we might as well separate our behavior all the way too.
We will try to use camelCase for naming convention in Javascript.