Re:Prefer duplication over the wrong abstraction
by thinkloop on Saturday July 09, 2016 @12:57PM
(#12062192)
This would not be a candidate for duplication tho, because the underlying intent is also logically the same. Author is talking about things that coincidentally happen to have similar code at the moment, but are fundamentally and logically unrelated, having a high likelihood of diverging in the near future.
Re:Prefer duplication over the wrong abstraction
by bluejekyll on Saturday July 09, 2016 @01:04PM
(#12062242)
I understand the intent. I still believe the advice is dangerous if improperly applied.
Re:Prefer duplication over the wrong abstraction
by therealjumbo on Saturday July 09, 2016 @01:42PM
(#12062433)
That's true for all advice, especially in software development.
Re:Prefer duplication over the wrong abstraction
by new_hackers on Saturday July 09, 2016 @01:48PM
(#12062463)
"Brush your teeth" is dangerous advice if improperly applied.
One example might be not using an abstraction for accessing filesystem resources in a web based service. You might end up duplicating a ton of code that improperly takes a string from a request without sanitizing it and then have a massive security problem all over your code.