The Lounge is rated PG. If you're about to post something you wouldn't want your
kid sister to read then don't post it. No flame wars, no abusive conduct, no programming
questions and please don't post ads.
I see the same thing in C# and C++ production apps. People copy/paste code all over the place instead of creating a single method. The logic for having done this is "someone might change the function and break us".
I hate it. It's not the language, it's stupid-ass scardey-pants "programmers" that should go dig ditches instead.
Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson
You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
This sounds remarkably similar to my job over the last couple of years. Since my team has been reduced to 5 from 17, all of us have assumed the responsibility for other people's wretched crap code. I've become remarkably better than I used to be at doing this. There is even a certain level of satisfaction with fixing a problem without succumbing to the urge to rewrite the great steaming pile whole thing.
When I return to working on my own towering edifice of magnificence stuff, I have to be careful that I don't use the godawful approaches practices from the other folks' code.