Skip to content
Peeyush Agarwal edited this page Jun 5, 2014 · 3 revisions

Ruby

We will try to use Github's Ruby Styleguide for writing Ruby code.

Documentation

We will try to use TomDoc for code documentation.

Javascript

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.

Clone this wiki locally