3 ms·
As a non-ruby developer, I find the initial example indeed much more readable.
by nov21b 4y ago
As a non-ruby developer, I find the initial example indeed much more readable.
- mekster 4y agoThat's why LOC doesn't mean anything and I find the latter way more readable except for the fact ruby puts "if" behind for a single liner which isn't really comfortable reading.