2 ms·
Sure, but excessively dense code has its own drawbacks. Does anyone like reading regexes?
by emodendroket 9y ago
Sure, but excessively dense code has its own drawbacks. Does anyone like reading regexes?
- orangecat 9y agoCompared to the equivalent handwritten state machine, yes.
- lmm 9y agoI don't think dense code has drawbacks; people measure in lines of code because they implicitly assume all lines are equal, but that's completely wrong. Reading the same logic when it's 20 lines is much, much easier than reading the same logic when it's 100 lines, because whether you can fit it on a single screen or not makes a huge difference to whether you can comprehend it.
- emodendroket 9y agoNever worked in Perl, I take it
- lmm 9y agoI've worked in/with Perl. Perl is unpleasant because it's inconsistent, not because it's dense - if you want the extreme examples, compare Perl with something like APL.