3 ms·
This is your idea of maintainable? Yikes. Tell me, how many places in the referenced snippet would need to be changed to, say, allow commas to be present in num
by jfrunyon 6y ago
This is your idea of maintainable? Yikes. Tell me, how many places in the referenced snippet would need to be changed to, say, allow commas to be present in numbers?
- skrebbel 6y agoYep. All the duplication is local and it's just a few lines. Duplication is never pretty, but when it's as local as here, it's pretty much harmless. Duplication that's not obviously duplication, that's a problem. This is not that. To answer your question, in 3 places, a few lines apart from one another.
- jfrunyon 6y agoNow what happens when there are 10 of these blocks? Embedded within or called by 10 other blocks that also have duplication? Duplication displays exponential growth.