Skip to content

Instantly share code, notes, and snippets.

@r38y
Last active December 20, 2015 18:29
Show Gist options
  • Save r38y/6176722 to your computer and use it in GitHub Desktop.
Save r38y/6176722 to your computer and use it in GitHub Desktop.
Style Guide

Check out

The following are key points

Ruby / Rails

  • Only use unless if there is no else
  • Indent when as deep as case
  • Use single quotes unless there is string interpolation
  • Use the new hash syntax { key: 'value' }
  • No trailing white space. Configure your editor to get rid of it
  • Use soft-tabs with a two space indent
  • If you are at all worried about deploying code in a branch, deploy the branch first and make sure it works before merging into master
  • If assets change at all run rake assets:precompile locally and make sure it works and moves assets as expected
  • Use format: /html/ in routes if you are missing templates for weird formats
  • Prefer expect(thing).to over thing.should

SCSS

Git

Tools

Bauer

  • Use magazine stuff from twinit in the other apps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment