News for hackers. Stuff that matters.
Re:Prefer duplication over the wrong abstraction by z3t4 on Saturday July 09, 2016 @03:40PM (#12062930)
The problem is that we like to take the path of least resistance. So we add a parameter to the function instead of splitting it into two different functions. Saving one hour now, that is much better spent on something else. But might waste thousands of man-hours in the future. From a business side though, you might not afford to the extra man-hour right now, but maybe if the product is successful you will afford the extra thousand man-hours in the future.

There are no comments on this comment yet.