News for hackers. Stuff that matters.
Re:Linear code is more readable by pstuart on Friday September 15, 2023 @02:13AM (#37519148)
Exactly. Start with the straight-ahead linear approach and factor out once it's unwieldy.

Same thing for copy pasta funcs -- the first copy is fine, the second one may be too, but after that consider extracting to a parameterized func (a permutation of the Go Proverb "A little copying is better than a little dependency.")

There are no comments on this comment yet.