4 ms·
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
by Mirioron 7y ago
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.
- lonelappde 7y agoRelying 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.
- Mirioron 7y agoPeople 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.
- hising 7y agoJetBrains 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.html https://www.jetbrains.com/help/idea/analyzing-duplicates.htm...
- hising 7y agoMisunderstood the question (I just realized now ...). However. The tool in JetBrains is good at finding duplicates ...