News for hackers. Stuff that matters.
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"
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.

Re:JavaScript from 2001 on India's largest private bank site by jfrunyon on Friday March 19, 2021 @05:13PM (#26518189)
Now 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.