linked

Trailing Conditionals Considered Harmful Unless Used Sparingly ⇝

  Wynn Netherland • 2015-03-08

Thoughtful post about trailing conditionals in Ruby from Jerod and how to make code readable, scannable, and obvious.

Code is read much more often than it is written, so we need to optimize for readability over writeability. Trailing conditionals tend to do the opposite.

Reminds me of a sign I used to see in a front yard on my daily commute when I lived in the Houston area. It read: GARAGE SALE when flashing.

Linked from: http://jerodsanto.net/2015/03/trailing-conditionals-considered-harmful/

Wynn Netherland
Wynn Netherland

Engineering Director at Adobe Creative Cloud, team builder, DFW GraphQL meetup organizer, platform nerd, author, and Jesus follower.