News for hackers. Stuff that matters.
Re:Ask HN: Inherited the worst code and tech team I have eve... by fny on Saturday September 17, 2022 @10:34PM (#32883877)
> this code generates more than 20 million dollars a year of revenue

From a business perspective, nothing is broken. In fact, they laid a golden goose.

> team is 3 people, quite junior. One backend, one front, one iOS/android. Resistance to change is huge.

My mistake, they didn't lay a golden goose--they built a money printer. The ROI here is insane.

> productivity is abysmal which is understandable. The mess is just too huge to be able to build anything.

But you just told me they built a $20M revenue product with 3 bozos. That sounds unbelievably productive.

> This business unit has a pretty aggressive roadmap as management and HQ has no real understanding of these blockers

You should consider quitting your job.

As far as the business is concerned, there are no problems... because well... they have a money printer, and your team seems not to care enough to advocate for change. Business people don't give a damn about code quality. They give a damn about value. If 2003 style PHP code does that, so be it. Forget a rewrite, why waste time and effort doing simple refactoring? To them, even that has negative financial value.

From their perspective, you're not being paid to make code easy to work with, you're being paid to ship product in a rats nest. Maybe you could make a business case for why its valuable to use source control, dependency management, a framework, routing outside of nginx, and so on... but it doesn't sound like any of that mattered on the road to $20M a year, so it will be very difficult to convince them otherwise especially if your teammates resist.

This, again, is why you should consider leaving.

Some developers don't mind spaghetti, cowboy coding. You do. Don't subject yourself to a work environment and work style that's incompatible with you, especially when your teammates don't care either. I guarantee you will hate your job.

Re:Ask HN: Inherited the worst code and tech team I have eve... by rendall on Sunday September 18, 2022 @08:02AM (#32886812)
In my opinion OP should seriously consider this advice.

I really mean nothing patronizing here, but I suspect OP does not have the corporate experience to handle this situation. This is a corporate equivalent of a double-black diamond downhill route. OP was hired by people who have little understanding of tech and already came in with guns blazing. I might almost wonder if OP's a sacrificial lamb.

But, the tech advice of not doing a rewrite, making tests, soothing any hurt feelings, creating local instances will help. Make the everyday coding experiences of the tech team nicer. Source control, local instances, and unit/integration/E2E tests are a gimme.

The old rule of thumb applies: pick only 2 of speed, cost or quality. You cannot have 3.

Re:Ask HN: Inherited the worst code and tech team I have eve... by snapetom on Sunday September 18, 2022 @01:39PM (#32889562)
> I suspect OP does not have the corporate experience to handle this situation.

I agree with this. OP doesn't say, but reading between the lines, corporate at best doesn't understand the ramifications, but corporate doesn't care about the ramifications.

They're getting 20 million in revenue from 3 cheap devs. Things are going great, according to corporate. They're not going to learn, and OP is going to get blamed when things can't get done.

I just quit because I was placed in a similar situation. The CEO, who does have a CS background albeit ancient, insisted there was nothing wrong with the tech stack that couldn't be solved by vertically scaling and then horizontally scaling. We were at the limits of the former and the architecture made many important parts impossible for the later, but that's another discussion.

The problem wasn't tech scaling, it was process scaling. We really couldn't divide work easily because there were often conflicts. People would join, see the horrible code, then leave. We specifically had to hire off-shore junior devs who didn't know any better and snowball them. I felt the last part was unethical and didn't want to be part of it any longer.

OP is not doing any favors for themselves, and especially not for the junior devs on the team. This job is going to set back the career for the junior devs. They're wasting their time on ancient methods and technologies.

Re:Ask HN: Inherited the worst code and tech team I have eve... by vba616 on Sunday September 18, 2022 @02:26PM (#32890035)
>snowball them

Could you define this phrase and what English dialect it's from?

Re:Ask HN: Inherited the worst code and tech team I have eve... by snapetom on Sunday September 18, 2022 @03:46PM (#32890807)
> what English dialect it's from?

I assume American English.

Prior to the sexual slang made popular by the movie Clerks, snowballing in the context I used basically means to blindside or con someone.

One definition on Urban Dictionary:

"A situation where a criminal has found themselves in possession of an easy target and proceeds to rob them and leave them mortally wounded for fun, a synonym for getting iced."

There's also snowballing meaning a problem getting bigger and bigger when unaddressed. I'm probably using it in an older, not-exactly-mainstream way.

Re:Ask HN: Inherited the worst code and tech team I have eve... by vba616 on Wednesday September 21, 2022 @02:14AM (#32921373)
In my dialect, which is some sort of American English, trying to snow someone means trying to BS or con them.

Blindsiding someone means taking them unawares - hitting them when they aren't looking, physically or metaphorically.

A speedball has cocaine in it, which is sometimes known as snow.

"Iced" can mean killed, but the Urban Dictionary definition is oddly specific

I agree about "snowballing" meaning increasing in size or momentum, but it doesn't have to refer to a problem.

Re:Ask HN: Inherited the worst code and tech team I have eve... by justsomehnguy on Sunday September 18, 2022 @06:28PM (#32892088)
Quite literally. I assume you never got a snowball in you eyes?
Re:Ask HN: Inherited the worst code and tech team I have eve... by unity1001 on Sunday September 18, 2022 @10:57AM (#32888064)
> OP does not have the corporate experience to handle this situation

Even before that, s/he doesn't even seem to understand any measure of business. $20m/year with 3 people is BIG. Any disturbance to whatever makes that happen will hurt the business greatly. When a full rewrite shakes the boat and causes a few millions of revenue loss or the loss of potential market share or opportunities, they will rightly fire him.

Best route would be to improve things without hurting anything. It doesn't matter things are 'properly done'. It matters whether the organization survives and prospers. What's 'proper' is redefined every 3-5 years, most of the time without objective basis anyway. So no need to hurt the business to force the current software paradigm.

Re:Ask HN: Inherited the worst code and tech team I have eve... by mgkimsal on Sunday September 18, 2022 @12:51PM (#32889082)
Is the entirety of the whole company just 3 people? It doesn't sound like it. That 3 person team is just 'tech' it seems - there may be 5-10 managers/sales/support/etc people. And... $20m is revenue, not profit. If the cost of their sales is, say, $15m... and there's 15 people working at the company, that's quite healthy, but it's not some money-printing goldmine at this stage.
Re:Ask HN: Inherited the worst code and tech team I have eve... by unity1001 on Sunday September 18, 2022 @02:18PM (#32889940)
> Is the entirety of the whole company just 3 people?

From what is told in the summary, it seems like the software stack and these 3 people constitute the core of the business that is going on. The business may be something totally different. But it seems to be running on that software.

> And... $20m is revenue

Even if they have lower margins than what you yourself imagined, $20 m revenue/year is still a gigantic amount. You can improve upon whetever margin or inefficiency in the process and increase the net profit - optimize vendors, costs, sales pipeline.

The difficulty in modern Internet business is getting to some place at which you can command $20 m revenue from any market. Finding the customers and the users. Not the margins.

Re:Ask HN: Inherited the worst code and tech team I have eve... by sofrimiento on Tuesday September 20, 2022 @03:33AM (#32908783)
I’ve worked at a $100 million revenue online company that didn’t make any profit. OP says money is tight after covid, so seems like it the business is connected to a (physical) market that was affected by the pandemic. He says there is an extensive roadmap by a management team that are not familiar with the technical details, so it seems like the technology is not the core business.

It’s not difficult getting to a high revenue fueled by aggressive and expensive acquisition using money from investors who gets dazzled by growth numbers, but if your customer lifetime value is low and you’re not a pure SAAS business which means margins won’t automatically improve with scale, turning that company profitable can prove very difficult.

Re:Ask HN: Inherited the worst code and tech team I have eve... by hef19898 on Sunday September 18, 2022 @08:01AM (#32886808)
Additional reason to switch jobs: It is perfectly working for now, as far as the company is concerned, the three man team is doing a tremendous job, and the team conviced itself of the same. Now they have to ship additional stuff, and think they are perfectly able to do so. You are there to make sure they ship, most likely they wont, because things work until they don't anymore. When they don't, and the team isn't shipping, guess who gets the blame? The one team member, the one thing that changed. And after that, the mess will only grow.

Edit: Typos. I suffer severe typing legasteny more often than not...

Re:Ask HN: Inherited the worst code and tech team I have eve... by iforgotpassword on Sunday September 18, 2022 @02:37AM (#32885019)
Best answer. If the money is ok, and the environment not too toxic/stressful, you might just see it as a challenge to secretly improve a codebase without anybody noticing, while still delivering what the higher-ups want to see. Or maybe just scratch the first part and try to see how much further you can push that turd with every coding crime imaginable. One-up the juniors in ugly hack Olympics. Ship a feature and put it on your CV before leaving.

Otherwise, walk away immediately.

Re:Ask HN: Inherited the worst code and tech team I have eve... by unity1001 on Sunday September 18, 2022 @10:59AM (#32888085)
> a challenge to secretly improve a codebase without anybody noticing

That is how it should be done in any case anyway. Improvements should get slowly rolled out without disturbing the users and the business.

Re:Ask HN: Inherited the worst code and tech team I have eve... by marcosdumay on Sunday September 18, 2022 @01:06PM (#32889244)
> That is how it should be done in any case anyway.

Not exactly. IT management should be always telling people stuff like "did you notice that the integration with XYZ that never worked well stopped failing?" or "did you notice that we delivered those few last features at record time?" and explaining why.

Re:Ask HN: Inherited the worst code and tech team I have eve... by unity1001 on Sunday September 18, 2022 @02:15PM (#32889913)
That is assuming that things are failing. $20m/year with 3 people does not look like anything is failing to me.
Re:Ask HN: Inherited the worst code and tech team I have eve... by marcosdumay on Sunday September 18, 2022 @03:22PM (#32890608)
That is assuming things are improving. If you aren't improving anything, then yeah, you don't have anything to say.
Re:Ask HN: Inherited the worst code and tech team I have eve... by threatripper on Sunday September 18, 2022 @06:10AM (#32886131)
This is very insightful. I learned it kind of the hard way. The business world is a mess. Requirements are a mess and always changing. This leads to messy code that requires a lot of time to clean up. You don't have time for that as long as there is always more customer wishes and projects coming in. As long as the business keeps working there's always something of top priority coming in. The pain starts growing but the steaming pile of code just doesn't collapse. It just kind of keeps on working while you are adding more and more code. Sure, the pain is big and progress is quite slow but what's the alternative?

My advice would be to listen to the developers, to understand them and the business. To understand what they really need. What a viable path forward would be. A complete rewrite, a second system for new developments, many more developers or something. Or maybe it is the optimum solution right now because the whole company is so messy and your job is not to change the company structure. Then you maybe you could support them by slowly enhancing their skill set and accept what you can't change. Doesn't sound like fun? Then leave soon, staying won't do you any good.

Re:Ask HN: Inherited the worst code and tech team I have eve... by Merad on Sunday September 18, 2022 @09:31AM (#32887399)
This 100%. This line is an immediate nail in the coffin:

> This business unit has a pretty aggressive roadmap as management and HQ has no real understanding of these blockers. And post COVID, budget is really tight.

I've been at a company not unlike this... several MLOC of VB WinForms that was total spaghetti, but a highly successful app that brought in a lot of revenue. In our case the majority of the dev team was in agreement that the situation wasn't sustainable, and at first (meaning when I joined the company) we had engineering leadership who mostly agreed. They brought in several rounds of consultants to evaluate the code base and announced plans for a major modernization effort. But the consultants largely agreed with the dev team that the code was in such bad shape that it effectively needed a rewrite. At one point we did a prioritization and t-shirt sizing exercise and came up with _30 man years_ worth of items in the "critical tech debt" bucket. Apparently engineering leadership was not aligned with the C level suite about how much money they were willing to spend on this thing, because within the next year there was 100% turnover of management in the engineering org. A couple of (talented!) people who had been hired for the modernization effort left first, then the other engineers who knew the code base well followed. Last I heard the company was limping along relying on Eastern European and Indian contractors to keep the lights on.

In short OP, you can probably get some wins; maybe some major process improvements like using source control, maybe more minor things like introducing patterns or frameworks so that net new code isn't a total mess. But there is zero chance that you're to do anything like a rewrite or major refactoring without leadership understanding that they're in an unsustainable situation and a willingness from them to invest time and money to fix it.

Re:Ask HN: Inherited the worst code and tech team I have eve... by ryandrake on Sunday September 18, 2022 @12:29PM (#32888867)
Seems so many of us have been hired at one of these companies. Same here. No source control. No bug tracker. No tests. There was no formal system for producing builds--releases to customers were simply copied from the workstation of whichever engineer could build it successfully today. There were so many bugs and crashes, it was hard to even get through basic customer use cases. There was no spec. There was no product roadmap or plan. Sales would sell something, then run downstairs and say "We just sold XYZ, you need to implement XYZ in the software blob somewhere!"

The CEO/Founder wouldn't even consider a refactoring or cleanup session, let alone a full or partial rewrite. Only features drive sales, and we've sold so many things we don't have, so all he wanted was feature cram. Every so often, a VIP customer complained about some major use case that simply didn't work, so only in those cases was bug fixing permitted. And in those cases, the VIP customer would get a custom bespoke build made with the bug fixed. I was hired because the last person of my seniority could not cram features in fast enough and gave up in disgust.

They only got source control because I came in on a weekend, unpaid, to do it. I lasted a little over a year. Bootstrapped founder (and sole shareholder) eventually sold the company for ~$150M. Sometimes it seems there is no justice in the world :)

Re:Ask HN: Inherited the worst code and tech team I have eve... by atoav on Sunday September 18, 2022 @04:02AM (#32885466)
This is why we as a software world need some minimum standards for stuff that deals with sensitive information of users.

Don't get me wrong, if it works it works, but the question is for how long and who will suffer when it doesn't?

Also from a business perspective: If I were the CEO of that company I'd probably like to know that there is something built on sand and a huge technological dept. It is a cashcow now, but I'd like to ensure it still can be one in the future. And for this some level of maintenance would be expected.

Same thing for reliabilty. If as a CEO I knew the entire functioning of the thing that brings the cash hinges on one developer remembering whether index_john-final.php or index_peter-final-final.php is the latest code I would probably have a hard time sleeping.

That means the minimum OP should do is explain the situation neutrally and your point of view is certainly something he should weave into this. In the end the higher ups need to know this, and what they decide to do is their thing, but OP needs to make them aware of why this could potentially endanger the service in the future. If they then decide to take that risk — so be it.

Re:Ask HN: Inherited the worst code and tech team I have eve... by Scarblac on Sunday September 18, 2022 @03:02AM (#32885163)
It wasn't necessarily written by those 3 devs. They're just the current team. Granted, they probably have been that for a long time because of the resistance to change, but the brightest minds are probably long gone.
Re:Ask HN: Inherited the worst code and tech team I have eve... by stormbrew on Sunday September 18, 2022 @02:37AM (#32885023)
I'd bet it's B2B and has an expensive sales division that top management believes (tbh maybe even rightly) is the real revenue driver.
Re:Ask HN: Inherited the worst code and tech team I have eve... by hcks on Sunday September 18, 2022 @08:38AM (#32887038)
Good answer.

Some developpers seem to think that their jobs is to engineer nice and beautiful systems. It's not.

As a developper, you're getting paid (fyi the minimum so you don't leave the company) in order to maximise total shareholders' returns. That's it.

The business doesn't care if the codebase is garbage, with massive technical debt, nor if you struggle working with it. That's literally not even a problem as long as it is concerned.

Re:Ask HN: Inherited the worst code and tech team I have eve... by yjftsjthsd-h on Sunday September 18, 2022 @09:45AM (#32887513)
Nice and beautiful systems aren't the job, but a system that will continue working in the future while still allowing people to keep adding features and that won't suffer massive security breaches really is. It sounds like the current system is one bad feature implementation away from hosing the database, one hardware fault away from no longer existing, and one interested hacker away from a complete compromise.
Re:Ask HN: Inherited the worst code and tech team I have eve... by hcks on Monday September 19, 2022 @08:41AM (#32897552)
You are right and obviously good engineering practices are not incompatible with the company’s interests.

I was more reacting to OPs attitude, where he asks how to fix everything without even being clear if he is managing the team or officially in charge of the product.

I may be mistaken but the impression I have is that the management is perfectly happy with a bad system and expects the engineers to simply go along. This is then a management decision. It may blow up later and sink the business (or not, it can just hold for the lifetime of the product).

As far as OP is concerned, this situation would mean that he should probably leave the ship now. (As staying would probably result in 1. No marketable skill development (being stuck with a garbage codebase) 2. Burn-out has he takes on the Herculean task of cleaning it up. 3. Be blamed if something bad happens.

Re:Ask HN: Inherited the worst code and tech team I have eve... by vborovikov on Sunday September 18, 2022 @05:14PM (#32891574)
Usually nothing changes for me as a developer if shareholders get bigger returns on their investments. So I don't really care.

What I care about is the code quality because good code makes my job easier. I inherited the code, not the business.

Re:Ask HN: Inherited the worst code and tech team I have eve... by hcks on Monday September 19, 2022 @08:47AM (#32897609)
Well it is the management’s job to make your work aligned with the company’s best interests.

It is possible that you’re already doing what you’re getting paid for. In that case you shouldn’t go out of your way to increase the company’s profits (and nobody expects you to).

(In my original post I didn’t say that as a developer you should code thinking of quarterly results, I just stated the obvious that you are employed for the shareholders to get money back)

Re:Ask HN: Inherited the worst code and tech team I have eve... by tomohawk on Sunday September 18, 2022 @08:18AM (#32886918)
So there was a physicist, an engineer, and a business guy, and they were discussing God.

The physicist said that God must be a physicist, because He had to know about matter and energy and so on.

The engineer said that God must be an engineer, because He had to do something useful with the matter and energy - turning chaos into order.

And the business guy asked, "Where do you think all that chaos was coming from?"

Re:Ask HN: Inherited the worst code and tech team I have eve... by jogjayr on Sunday September 18, 2022 @11:55AM (#32888578)
Only 3 developers maintaining a horrible codebase is a massive business risk. In this market, they could easily leave for better jobs within months of each other. Especially if they're junior and not company lifers. They money printer will print money until one day, it suddenly doesn't.
Re:Ask HN: Inherited the worst code and tech team I have eve... by msluyter on Sunday September 18, 2022 @12:59PM (#32889171)
Exactly. I often think of scenarios such as this in evolutionary terms. Imagine a doppelgänger competitor in this space, exactly the same, except they're pretty content with their crappy tech ecosystem and focus on delivering features (albeit, more slowly than they might with a more modern system.) And so...

1. You focus on the advice here, adding tests (which IMHO is actually pretty difficult on a legacy poorly architected/documented system), source control, refactoring, etc.... with any time remaining in the schedule devoted to adding features.

2. Your doppelgänger chugs along and releases several more features than you do, giving them a market edge.

What happens next I suppose depends upon what difference those extra features make. If the delta is small, you may be able to pull out ahead, in the long run. But if it's large, then your company may start to lose revenue / customers. Then, the screws will likely tighten even harder, and you'll be forced to sideline refactoring efforts and double down on delivering features. And then those refactoring/cleanup efforts will bit rot and you'll find yourself back roughly where you started, except now you're behind your competitor.

There's a quote I can't seem to find atm that summarizes this. It was something along the lines of "With php our product is already up and gaining market share meanwhile our competitor is still futzing with their rails configurations." (If you know the actual quote I'd love to see it.))

Re:Ask HN: Inherited the worst code and tech team I have eve... by mgkimsal on Sunday September 18, 2022 @12:48PM (#32889053)
> But you just told me they built a $20M revenue product with 3 bozos. That sounds unbelievably productive.

This doesn't indicate how profitability, and seems to ignore that management/owners might have had something to do with it. A well-connected industry player is better poised to start/found/build/grow a company to that level than someone with 0 experience.

And... yes... quitting to something which matches the OPs expectations will likely be better all around than trying to 'fix' something people aren't asking to be fixed (it seems).

Re:Ask HN: Inherited the worst code and tech team I have eve... by ncmncm on Sunday September 18, 2022 @01:03AM (#32884575)
$20M revenue is not the same as $20M profit.
Re:Ask HN: Inherited the worst code and tech team I have eve... by ivlad on Sunday September 18, 2022 @03:00AM (#32885146)
It’s not the same, but if those 20M is primarily generated by the software, then it’s those 3 ppl, who contribute to the top line. The rest, like sales, marketing, are irrelevant: fire them and the product will keep generating revenue off the existing customer base. It will stop doing so, however, if the product brakes. So, the post above is right to an extent, this is the golden goose. ))
Re:Ask HN: Inherited the worst code and tech team I have eve... by ncmncm on Sunday September 18, 2022 @04:02AM (#32885467)
Unless the revenue is for products ordered on the site and shipped to paying customers. Believe it or don't, this is still done at some sites that are not Amazon.
Re:Ask HN: Inherited the worst code and tech team I have eve... by mattmanser on Monday September 19, 2022 @10:36AM (#32898911)
Not if they're spending $19m in google ads to make $20m in revenue.
Re:Ask HN: Inherited the worst code and tech team I have eve... by hnfong on Sunday September 18, 2022 @01:57AM (#32884809)
> team is 3 people, quite junior.

Even at FAANG salaries this wouldn't be that much compared with $20M

Re:Ask HN: Inherited the worst code and tech team I have eve... by colinmhayes on Sunday September 18, 2022 @02:45AM (#32885066)
You don't know what the costs are though. The site could have huge costs of content acquisition or any number of reasons to not be making anywhere near $20 million profit.
Re:Ask HN: Inherited the worst code and tech team I have eve... by OJFord on Sunday September 18, 2022 @03:03AM (#32885169)
Revenue isn't the same as Earnings Before Salaries either.

E.g. maybe it's an e-wholesaler or widget reseller, bought $19M goods and sold $20M. Or maybe it was much slower than expected, they actually bought $25M goods and are burning 500k/month on warehousing. Or whatever.

Re:Ask HN: Inherited the worst code and tech team I have eve... by jtsiskin on Sunday September 18, 2022 @02:54AM (#32885117)
Yes, but the parent is saying this could be an e-commerce website, or construction company, etc. But having an iOS app feels unnecessary for most of these businesses
Re:Ask HN: Inherited the worst code and tech team I have eve... by zem on Monday September 19, 2022 @02:19AM (#32894885)
a lot of field operations these days are done on phone or tablet apps, so I can totally see an ios developer being vital for internal processes
Re:Ask HN: Inherited the worst code and tech team I have eve... by k8sToGo on Sunday September 18, 2022 @02:53AM (#32885106)
The engineering team might be 3 people but not the whole company.
Re:Ask HN: Inherited the worst code and tech team I have eve... by snapetom on Sunday September 18, 2022 @01:42PM (#32889584)
Assuming profitability is even a problem, if $20M in revenue is coming from just 3 devs, the driving cost of the company isn't the tech. It's other parts of the company. That would be be another red flag against the leadership.
Re:Ask HN: Inherited the worst code and tech team I have eve... by eru on Sunday September 18, 2022 @05:29AM (#32885909)
>> team is 3 people, quite junior. One backend, one front, one iOS/android. Resistance to change is huge.

> My mistake, they didn't lay a golden goose--they built a money printer. The ROI here is insane.

We can not make that conclusion. Presumably the business still needs salespeople, support, etc.

Re:Ask HN: Inherited the worst code and tech team I have eve... by eru on Sunday September 18, 2022 @09:03AM (#32887198)
P.S. I am not saying that ROI is bad, either. Just that we can't say very much either way.
Re:Ask HN: Inherited the worst code and tech team I have eve... by Aeolun on Sunday September 18, 2022 @05:06AM (#32885781)
I think the thing is that the codebase after 5 years of development was already capable of making 19M/year, and the past 7 extra years have just added 1M/year. The next year of development will not add any more because the thing is collapsing under it’s own weight.
Re:Ask HN: Inherited the worst code and tech team I have eve... by throwaway5371 on Sunday September 18, 2022 @05:18AM (#32885857)
so it will just be 20 mil a year with 3 jr devs

sounds ok?

Re:Ask HN: Inherited the worst code and tech team I have eve... by Aeolun on Sunday September 18, 2022 @06:00AM (#32886084)
Only in absolute terms. Kind a feels like a missed chance if you actually have a 100M market.
Re:Ask HN: Inherited the worst code and tech team I have eve... by kilroy123 on Sunday September 18, 2022 @05:36AM (#32885944)
That's what I was thinking as well. Run for you hills.

It's likely a losing up hill battle.

Re:Ask HN: Inherited the worst code and tech team I have eve... by dmje on Sunday September 18, 2022 @03:48AM (#32885405)
Great answer. Developers are gunna hate it
Re:Ask HN: Inherited the worst code and tech team I have eve... by zcombynator on Monday September 19, 2022 @11:08AM (#32899396)
THIS. A million times this. The world is about solving real user problems. And obviously this code solves a huge 20M USD problem. And the code is obviously so good, that even 3 "bozos" (to use your language) can manage and maintain in for decades. This is the holy grail. I wouldn't change a thing and instead ask: how can you make this generate 40M USD a year? This is how you will add real value to the company, and management will love you.
Re:Ask HN: Inherited the worst code and tech team I have eve... by Southclaws on Monday September 19, 2022 @11:33AM (#32899729)
If the mess generates $20m a year, that's great and I agree with you!

If the mess generated $20m last year and it's projected to generate $20m next year, that's a problem.

If the second case is true, I believe it's somewhat the responsibility of the OP to sell solving this long-term problem to the _rest of_ business. If they hired him as an expert in that area, they should listen to him.

If that fails, leave.

Re:Ask HN: Inherited the worst code and tech team I have eve... by noobermin on Sunday September 18, 2022 @03:12PM (#32890489)
Sheesh, I had to look this far to find this comment, half of the top comments were discussing how much testing OP should do and what manner he should approach the act of refactoring things while ignoring that the "monster" generates a boat load of money for the company. I love hacker news a lot but people seriously need to get out of their developer box and look at the big picture.
Re:Ask HN: Inherited the worst code and tech team I have eve... by fuzzfactor on Sunday September 18, 2022 @09:22PM (#32893217)
Smells like executive stupidity to me.

There is some consensus that you can't fix stupid.

Even if you are very talented at repairing airplane engines in flight.

Re:Ask HN: Inherited the worst code and tech team I have eve... by mikewarot on Sunday September 18, 2022 @08:03AM (#32886825)
The profit at all costs, just make the next quarter's numbers (so we get our bonus), attitude is what leads to disasters like Twitter.

Their pursuit of profits above all else have likely gotten people killed. They represent a clear and present danger to US National Security.

Re:Ask HN: Inherited the worst code and tech team I have eve... by Flankk on Sunday September 18, 2022 @02:01AM (#32884834)
This is the sanest answer. No amount of leadership is going to help an incompetent team. A codebase with massive technical debt, tight coupling, and accidental complexity will be hard to improve incrementally. Impossible without competent engineers.
Re:Ask HN: Inherited the worst code and tech team I have eve... by rocqua on Sunday September 18, 2022 @02:35AM (#32885007)
I agree it's the sane answer. But I don't think these engineers are incompetent. They lacked direction, accidentally followed worst practices, and _still_ came out on top. I would say they are good engineers but perhaps bad project managers / architects.
Re:Ask HN: Inherited the worst code and tech team I have eve... by OJFord on Sunday September 18, 2022 @03:05AM (#32885183)
You don't not use source control because nobody directed you to and you 'accidentally' .. what, forgot about it?

You don't use it because you haven't heard of it; = not competent.

Re:Ask HN: Inherited the worst code and tech team I have eve... by majikandy on Sunday September 18, 2022 @06:38PM (#32892145)
If someone incompetent can make me $20mil a year in revenue, bring on incompetence!
Re:Ask HN: Inherited the worst code and tech team I have eve... by Aeolun on Sunday September 18, 2022 @05:09AM (#32885797)
I find it hard to imagine you’d never heard of source control by now. You’d have to have been living under a rock for the past 15 years.
Re:Ask HN: Inherited the worst code and tech team I have eve... by OJFord on Sunday September 18, 2022 @09:40AM (#32887455)
Or be a bona fide 'script kiddy', learnt some WordPress PHP or whatever and got a job as 'webmaster' or something straight out of school (UK-sense, I specifically mean no university), no formal CS/software eng. training, never properly an intern/junior trained by people who know what they're doing.

I'm sure it happens. And then you get the next job with 5y PHP experience or whatever, employer doesn't mind no formal training (not that I'm saying they should in general - but if they're non-technical hiring someone to 'do it', or first hire to build the team or whatever, then they probably should as a reasonable proxy!), rinse and repeat.

Re:Ask HN: Inherited the worst code and tech team I have eve... by unity1001 on Sunday September 18, 2022 @11:10AM (#32888164)
If such a team of 3 people comprised of script kiddies and 5y PHP coders are going to create a $20m/year product, you can be sure that they will take precedence over anyone who was 'properly' educated in cs when it comes to hiring.

> I'm sure it happens

Yeah it does happen. While using the Internet, quite frequently, you are looking at such products developed by such teams, making millions of dollars a year. Even as the good engineering that is being done at FAANG is now being questioned over profitability, with even Google talking about 'inefficiency'.

Re:Ask HN: Inherited the worst code and tech team I have eve... by OJFord on Sunday September 18, 2022 @02:53PM (#32890316)
The shitty software probably isn't the product. It could be some sales/inventory management tool or whatever, that before they got some 'script kiddies' in was just some forms in Microsoft Access (is that what it's called.. the forms on top of database tool we had to learn in ICT at school) orwwhatever.

I think many people here are reacting to $20M forgetting not everything's a SaaS/in the business of selling software (but mostly still has some (in-house) software somewhere).

Re:Ask HN: Inherited the worst code and tech team I have eve... by unity1001 on Sunday September 18, 2022 @03:13PM (#32890503)
> The shitty software probably isn't the product

The shitty software is what sells the product, from the description. Even if the shitty software is a sales/inventory management tool or 'whatever', from the description it is obvious that it is vital to whatever business they are doing.

It doesn't matter whether it was built with Microsoft Access and Excel files. If its contributing a major part of that $20m /year, its not shitty, its golden.

Anyone who understands the trials of modern business, including any tech lead who had to deal with even merely stakeholders and low-level business decisions would prefer to have a $20 m/year sh*t before a well-crafted, 'properly built' architecture. The difficult thing is getting to that $20 m/year. The difficulty of rearchitecting or maintaining things pale in comparison to that.

> I think many people here are reacting to $20M forgetting not everything's a SaaS/in the business of selling software (but mostly still has some (in-house) software somewhere).

Everyone is aware of that. Many are also aware that getting to $20m/year in WHATEVER form is more difficult than architecting a 'great' stack & infra.

Re:Ask HN: Inherited the worst code and tech team I have eve... by OJFord on Sunday September 18, 2022 @05:31PM (#32891677)
Well, I don't agree. You'd struggle to do it without any software at all these days, but you can certainly do it without anything written in-house.

My point about Access (or Excel or whatever as you say) was that that would be the very early days of something starting to happen in-house, that wouldn't even be the hypothetical 'script kiddies'.

Re:Ask HN: Inherited the worst code and tech team I have eve... by unity1001 on Sunday September 18, 2022 @10:26PM (#32893597)
> but you can certainly do it without anything written in-house

Nope. Not really. Your average SV startup idea in which the end users will do some simple, but catchy things with your app - yeah, go all no-code if you want to get it started.

But, in real business, in which there are inventories, sales, vendors, shipping companies, deliveries, contracts, quotas, FIFO and LIFO queues and all kinds of weird stuff, things don't work that way. You may end up having to code something specific in order to be able to work with just one vendor or a big customer even. They may even be using Excel. You do it without blinking because millions of dollars of ongoing revenue depend on such stuff.

Re:Ask HN: Inherited the worst code and tech team I have eve... by hef19898 on Sunday September 18, 2022 @08:17AM (#32886915)
Or been drinking to much of the "move fast and brake things" koolaid for all of the 5 days of your career.
Re:Ask HN: Inherited the worst code and tech team I have eve... by hef19898 on Sunday September 18, 2022 @08:14AM (#32886901)
Not a developer, but I was onvolved, and are again involved, in some crucial dev projects on which the future success of my employer depends. Any developer who deploys to production without testing, or worse, develops directly in production is by every definition at least incompetent. If not an incompetent wannabe rockstar ninja cowboy without even realizing it. And those devs are dangerous.
Re:Ask HN: Inherited the worst code and tech team I have eve... by vba616 on Sunday September 18, 2022 @02:29PM (#32890063)
Therefore...the people mucking about with production should not be called developers! Problem solved, next?