2 ms·
It blows my mind that anyone would consider your refactoring more readable. I don't think the example in OP suffers from readability issues at all, nor did the
by bidirectional 5y ago
It blows my mind that anyone would consider your refactoring more readable. I don't think the example in OP suffers from readability issues at all, nor did the article suggest that. If anything it was just good, simple, 'clever' code.
- 29athrowaway 5y agoNamed boolean expressions, when used properly, make the effort of reading the actual expression optional.