Coding style guide

This style guide is a work in progress. We're just noting things down as they occur to us.

See also: Communications style guide, which includes guidelines for text appearing on the site.

Code layout

 * 2-space indents. Definitely not tabs.

Naming conventions

 * In general, follow Ruby/Rails conventions for variable naming and the like.
 * variables are generally named_like_this, with underscores separating words.

Ruby conventions

 * String interpolation: use "Hello, #{@user.username}" where possible instead of "Hello, " + @user.username

FactoryGirl for test data

 * Use FactoryGirl for test data, in preference to creating objects in your spec files.