News for hackers. Stuff that matters.
Re:Goodbye, Clean Code by Mirioron on Saturday January 11, 2020 @08:29PM (#22023787)
I wonder if we could have IDE features that will make #2 less likely. Eg marking some lines of code that they're similar to lines of code elsewhere. And if you then change it in one place the IDE will remind you about the others.
Re:Goodbye, Clean Code by hising on Sunday January 12, 2020 @04:36AM (#22025381)
JetBrains has something like this in their tools. It pointed me in the right direction a couple of times when touching code that is similar to something elsewhere.

https://www.jetbrains.com/help/idea/analyzing-duplicates.htm...

Re:Goodbye, Clean Code by hising on Sunday January 12, 2020 @04:38AM (#22025389)
Misunderstood the question (I just realized now ...). However. The tool in JetBrains is good at finding duplicates ...
Re:Goodbye, Clean Code by lonelappde on Saturday January 11, 2020 @09:21PM (#22024015)
Relying on your IDE to maintain program semantics is terrible. IDE should help you write good code that you commit, not be a crutch for writing bad code.
Re:Goodbye, Clean Code by Mirioron on Sunday January 12, 2020 @03:35AM (#22025201)
People in the thread are arguing that it's not necessarily bad code though. Also, the point of the IDE would be to help you just not forget to change it.