Live data from Hacker News

Ask HN: I got duped into working on legacy code, should I leave?

news.ycombinator.com

121–126 of 126 posts

Re: Ask HN: I got duped into working on legacy code, should I leave?

#121
I think you could interpret the situation as your employer being dishonest (it sounds like it, and that is troubling) or you could say they have will to do things with tech like React or TS, which could be an opportunity for you.

This could be stating the obvious, but legacy code does not necessarily correlate to age. A really bad situation is where your team is actively writing legacy code: written today, needs to be replaced tomorrow.

I have been involved with a greenfield project which replaced a legacy system which was actively being used. My team's decision was to scrap the old and start from scratch. This resulted in a massive delay before we were able to start adding value for our users. While we spent over a year using (learning) newer tech to build a system from scratch, they were stuck using the old system. And of course the new release was buggy.

A much better approach would have been to incrementally introduce the new tech were possible until it replaces the entire system. I think the pattern is called strangler vine.

Working Effectively with Legacy Code by Michael Feathers is a classic. It might be helpful or get you more interested if you are not already familiar.

Re: Ask HN: I got duped into working on legacy code, should I leave?

#122
post #98

I worked on legacy code in my initial years. And when I say legacy, it was truly legacy. COBOL/JCL/REXX on a mainframe. I now develop web apps using NodeJS and occasionally build UI using Angular and get to evaluate some of the "shiny-est", "cutting-edge" code/frameworks. Do I think I wasted my initial years? NO. I worked on side projects which eventually helped me move to the tech I've always wanted to work on. Did…

Such an excellent post and advice. Working with legacy code makes you learn mistakes of your predecessors, and not to make them in the future.

Re: Ask HN: I got duped into working on legacy code, should I leave?

#123
I think you get a free "this job didn't work out" card every couple of years. If you really hate it, then find a new job. As a hiring manager, I would accept your story as a valid reason for leaving. If your resume has several months-long stints, then I'd start seeing red flags and get concerned. However, if your work history was previously stable and now you make a quick hop, I personally would not pass too much judgment here.

My advice:

1) if you can, do whatever you can to start porting to a new system with React/Typescript ASAP. Do it on the sly or something, maybe, but get it to the point where the higher ups are like "Oh, this isn't as big a deal as we thought it would be". Especially if you can do the transition in a piecemeal fashion. If you can single-handedly demonstrate the benefits of the new system and the ease of transition, then not only will you look good to the rest of the company, but that's a huge win to put on your resume and a great story to tell when you interview at future jobs.

2) Deal with the legacy system. It's also a huge plus to be able to go to an employer and say "I'm a React/Typescript expert, but I've also gone blind into a codebase and mastered it in X amount of time." Use your free time to write React/Typescript projects, especially (again) if you can transform those into new products at the office.

3) If you can't do #1 or #2 and you absolutely can't stand this job anymore, find a new one. Don't worry too much about the "i've only been here for a few months" thing. Sticking it out is almost never the right decision, in my experience.

4) IMO, happiness is paramount. Being miserable at work leads to being miserable when you're not at work, and life's too short to be miserable. Do whatever you can to make yourself happy, whether that means any of the options above or something else I haven't thought of yet.

Re: Ask HN: I got duped into working on legacy code, should I leave?

#124

I think the basic truth to work off of here is: "Shit got real." Yes, you can step away, in the figurative and literal sense. In many possible worlds this may even be the best plan, if you have no real agency over the code. And you got lied to. It'd hardly be the first time someone has been convinced that the work would be cooler than it is. But -- you also have to decide if this is an opportunity in disguise. Storie…

> Stories of folks who gradually build ownership over the creaky "legacy" codebase and polish it up with Sisyphean refactoring, until it shames the "rewrite", are out there, and they're real.

Never seen it in practice. Is this a real thing?

Re: Ask HN: I got duped into working on legacy code, should I leave?

#125

Earlier quoted context omitted.

It's difficult to be proud of anything I'm doing :). Whenever I propose a design for something, I'm told to do it the fastest way which is usually a bad hack. I'm amazed the code works at all. The stack traces are more than twenty deep sometimes. I can't stand to look at it for more than 20 minutes without a break. I need to be more careful next time I'm looking for a job

Welcome to the real world. If you want to write elegant code using the tools of your choice I suggest building your own product or service on your time. The business NEVER cares about tools, languages, or best practices. Expecting the business to value this stuff will cause you to burn out and be unhappy. They employ you to add value. So add value.

The problem is the business thinking he is buying value when he's really getting in debt.
Post reply on HN