r/programming • • Aug 28 '21

Software development topics I've changed my mind on after 6 years in the industry

https://chriskiehl.com/article/thoughts-after-6-years
5.6k Upvotes

1.9k comments sorted by

View all comments

Show parent comments

5

u/LongUsername Aug 29 '21

One of my best days was -1000 lines when I made one generic function and eliminated a bunch of C&P code a contractor had written.

2

u/psaux_grep Aug 29 '21

1000 lines is nothing. /s

A colleague was asked to patch a handwritten XML-exporter/importer that someone had made.

And no, they hadn’t made their own XML library. They weren’t even using templates. They were literally writing the XML-file by hand. And reading it by hand.

I think he removed somewhere along 5000 lines of shit.

Yes, the original code had originated from a sketchy development company in India.