News for hackers. Stuff that matters.
Re:Linear code is more readable by matsemann on Friday September 15, 2023 @02:05AM (#37519091)
If the function was truly linear having a long function wouldn't be so bad. But it actually isn't, the example contains multiple branches!

Will people bother testing all of them? Or will they write a single test, pass in a pizza and just glance at it actually working? My guess is the latter, as testing multiple branches from outside is often tedious, vs testing smaller specialized functions.

There are no comments on this comment yet.