Re:JavaScript from 2001 on India's largest private bank site
by jfrunyon on Tuesday March 16, 2021 @11:15AM
(#26477847)
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?
[ Parent
| on HN ]
Re:JavaScript from 2001 on India's largest private bank site
by skrebbel on Wednesday March 17, 2021 @04:30AM
(#26487962)
Yep. 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.