2 ms·
> Often short dense code with complex types is just really hard to read for your overage joe programmer. I think people make the mistake of measuring how long
by lmm 6y ago
> Often short dense code with complex types is just really hard to read for your overage joe programmer.
I think people make the mistake of measuring how long it takes you to read x lines, when really you need to measure how long it takes to read x functionality.
There've been times when I replaced a 200 line class with 4 lines of Scala. Those lines were very much the kind of complexly-typed code that people attack Scala for. It took time and effort to understand what they did. But they were still a lot more maintainable than a 200 line class.
- mrmonkeyman 6y agoThere is a middle way here. 4 terse lines still sucks. Make it 10-15 readable lines please.