Re:JavaScript from 2001 on India's largest private bank site
by skrebbel on Tuesday March 16, 2021 @07:05AM
(#26475206)
I think the scientific term is "boring, maintainable code that junior overengineers won't touch with a stick"
[ Parent
| on HN ]
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?
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.