(no title)
shivawu | 1 year ago
My principle has always been: “is this part a isolated and intuitive subroutine that I can clearly name and when other people see it they’ll get it at first glance without pausing to think what this does (not to mention reading through the implemention)”. I’m surprised this has not been a common wisdom from many others.
andrewingram|1 year ago
Good abstractions often reduce LOC, but I prefer to think of that as a happy byproduct rather than the goal.
zahlman|1 year ago
I hold this principle as well.
And I commonly produce one-liner subroutines following it. For me, 15 lines has become disturbingly long.
galangalalgol|1 year ago
toasterlovin|1 year ago