3 ms·
The greatest difficulty with code is not in writing it but in reading it.
by marcinzm 7y ago
The greatest difficulty with code is not in writing it but in reading it.
- dragonwriter 7y ago<result> if/unless <condition> is pretty common in natural language for good reason. I find it far more readable than prefix, block-form if for the simple case of one-line results with no alternative branch.,
- matthewmacleod 7y agoAgreed. Particularly useful for for constructs like: def do_stuff() return unless stuff_enabled? ... end