News for hackers. Stuff that matters.
Re:Goodbye, Clean Code by jammygit on Saturday January 11, 2020 @11:12PM (#22024420)
I find that every 1000 lines of code I write, my productivity goes down a bit more. Without refactoring, my code just gets really coupled and it gets harder to change. Your position is that the time cost of refactoring is less than that of speed up benefits?
Re:Goodbye, Clean Code by dx034 on Monday January 13, 2020 @05:53AM (#22033372)
If you duplicate and don't try to generalize wherever possible, these links won't hit you as hard. Changes to one module are much less likely to cause bad behavior in others compared to code where as much logic as possible is generalized and shared between functions.