Naming and syntax conventions

The Infinum Rails Team uses the community guidelines for naming and syntax conventions. Please read them.

We use a Ruby style-checking analyzer called Rubocop to preserve syntax consistency in our applications. It's packaged as a Ruby gem and comes with a CLI to check style consistency. Although that's nice, we prefer to use it as a plugin for our favorite editors to get real time in-editor warnings just as we're writing code. Whether you're using Vim, Atom or Sublime, please check that it's properly installed after you've run our installation scripts.

Rubocop is highly configurable, and we deviate only slightly from the suggested guidelines. Our configuration can be found here.

developers = %w(Lucas John Tommy)

instead of

developers = ['Lucas', 'John', 'Tommy']

We find it OK to write string arrays the second way for two reasons:

developers = %w(Lucas John Tommy Herman\ Zvonimir)