15 Nov, 2015
14 commits
-
By returning early the flow is hoped to be a bit clearer.
-
Based on https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals This handles a few of the cases.
-
Based on https://github.com/bbatsov/ruby-style-guide#single-line-blocks
-
Should make it less confusing what belongs where
-
This gains a bit of consistency and ease of updating these values, at the cost of a bit of readability. I find this new version perfectly readable, personally.
-
This unfolds a bit of nesting, hoping the new version is plenty readable
12 Nov, 2015
1 commit
04 Nov, 2015
25 commits
-
Humans tend to be easily confused by the unless/else construct, so banning it.
-
This allows code to be copy/pasted into the console for easy experimentation and spelunking.
-
To me these all now read trivially as they are quite simple. Thoughts, comments?