Should I fire someone who unnecessarily wrote 500 lines of code?
quora.com
quora.com
Edit: I lost my train of thought. I meant to say, imagine how your code looks today to someone as good as you but with 10 years more experiences than you.
[1] If the developer only spent a couple of hours writing it, they wouldn't have wasted too much time, so why should anyone be talking about firing them?
https://pastebin.com/myYsRUjq was in the original question
" It was basically that we needed 3 instances of the same functionality, each instance differing by the value of two variables. The coder could not see this and made function1 for instance1,function2 for instance2 and so on with function1 and function2 being mostly similar."
There are "Programmers" who do not know about basic elements of the language they use. For years.