Live data from Hacker News

What's the worst codebase you've ever worked on?

news.ycombinator.com

71–72 of 72 posts

Re: What's the worst codebase you've ever worked on?

#71
The worst codebase I ever worked on was my first project ever lol and it was made by me! It was my first job and I was proud because I had spent a couple months teaching myself how to code and DS/Algs and got a full stack role.

I had to write a shared components library and yeah.. it went about as well as you can imagine. Thankfully the senior devs would tear my code apart and over the six or eight months I owned that project I learned a ton and made a v2 that was far better. From what I know it was used for another couple years since I left.

So yeah I’d say the worst code based I’ve worked on were my own code. The next project I was team lead on a login service. Again I had no idea what I was doing and someone gave me clean code and clean architecture books. Those changed my attitude a lot too.

It’s fun building code now, because any time I deal with old legacy code or so called spaghetti I understand why it’s that way and accept it. I write clean interface on top of it and within a couple months that old system is totally replaced by something that works well and is easy to test.

Re: What's the worst codebase you've ever worked on?

#72
I'm a bit late to answer but anyway: I worked with people who created electronic devices like payment terminals. They were knowledgeable with electricity and coding firmwares, but not with good programming practices.

They wanted to modernize their source code though. The result was a mixed mess of old C++ (pre-98), and assembly language. Like C++ classes with assembly language inside.

Also I had to teach them how to use Mercurial, thank god I didn't went with git (which I love) or it would have been way worse. I also wrote a lot of Python packages to handle the dependencies, clean code, and do everything to ease their job.

They were fun guys though and we had good times working together, I miss them somehow.

Post reply on HN