Fork at claudiob/style on GitHub

Coding guidelines

What holds in any language. What holds in Ruby. What holds in Rails.

Encrypt personal data

Don’t store your customers’ phone, email, last name, street in plain text.

Code optimistically

Never write a method nobody calls. Never rescue an error nobody has incurred.

Tell, don’t ask through

Call methods only on yourself and what you hold, not on what others hand back.

Unchained melody

Two calls on the same object in one expression are the tell: the second is unneeded.

Say it short

Between two versions carrying the same meaning, always pick the shorter name.

Write good English

Don’t Titleize. It’s ZIP not Zip. It’s license not licence. Respect the apostrophes.

Sharpen your tests

Full coverage and not one line more. Never test code you don’t own.

Communicate through git

Small commits. The why in the body. Linear history.