News for hackers. Stuff that matters.
Re:Negative Two-Thousand Lines of Code by 8n4vidtmkvmk on Thursday June 26, 2025 @12:55AM (#44384293)
I've been getting stricter about not letting that stuff into the codebase. They always say they'll clean it up later but they never do.
Re:Negative Two-Thousand Lines of Code by Sharlin on Thursday June 26, 2025 @04:24AM (#44385348)
To paraphrase a Python saying, “master is where bad code goes to die”.
Re:Negative Two-Thousand Lines of Code by motorest on Friday June 27, 2025 @02:00AM (#44394039)
> They always say they'll clean it up later but they never do.

Are you sure there's anything needing cleaning up?

Re:Negative Two-Thousand Lines of Code by hdjrudni on Friday June 27, 2025 @08:07PM (#44401401)
The duplicated code that needs updating in 50 places every time a bug or new feature comes in? Yes, I'm sure.
Re:Negative Two-Thousand Lines of Code by motorest on Saturday June 28, 2025 @01:17AM (#44402445)
> The duplicated code that needs updating in 50 places every time a bug or new feature comes in? Yes, I'm sure.

If you're talking about duplicate code showing up in 50 places then your problem is not code duplication but incompetent developers not being able to maintain a project.

If instead you're talking about code with a passing resemblance showing up in 2 or 3 places then odds are you're actually looking at more maintainable code straight in the eye and you're not able to understand how that makes the project more maintainable.