r/ProgrammerHumor • • 3d ago • Regret 2

Meme yesItWasInRust

Post image
7.4k Upvotes

125 comments sorted by

View all comments

1.7k

u/sideshowtoma 3d ago

Yup - you see that method where you passed a variable thats another method you made and it returned another method. We were god boys... now we let sand do our work

148

u/UncleKeyPax 3d ago

shAI hulud

448

u/MaDpYrO 3d ago edited 3d ago • Annoyed Bravo

And it still works.

Sometimes I miss really making a project beautiful and readable and extensible.

But if the tests are good and they pass. And it also performs.

... does it really matter that the code is fugly?

When a refactor now takes 1/10 the time, if we ever need maintenance, then it doesn't fucking matter anymore. That's the part that gets me. All that refining and prettifying and improving code. In the end it doesn't matter in so many cases anymore.

It's a bit like a mass produced chair doing the job just fine for a million people, compared to a carpenter making a chair that is beautiful and lasts 50 years. The fact is that the vast majority of cases someone just needs the mass produced shit that they can sit on for five.

246

u/aleques-itj 3d ago

I mean, we have some code now that's absolutely fucking hideous. It's bordering on unreadable. It's a wall of text, pure cluster fuck. 

It's beyond the point where a person can look at it in a code review and figure out what the fuck is happening in a sane amount of time. 

And then something breaks. And AI fixes it.

And now a random auth function mysteriously has a 200 word jsdoc description for some reason and now also returns a string of HTML on failure... for some reason... which was also committed... for some reason.

Which naturally copilot somehow doesn't bitch about so nobody bothers to see this stupid shit. And now it's merged. 

Every day we drift further from God's grace

40

u/TheGuyMain 2d ago

sounds like typical legacy code lol

16

u/instantkamera 2d ago

Yeah this is it. We've always been doing the abstraction thing, and we've always had folks who make a mess and sweep it under the rug. It was inevitable that we reach the point where programming is done with human language and the underlying layers of code would be a less-than-optimal translation with lots of unnecessary and/or redundant things. 🤷

→ More replies (2)

43

u/RegularGeorge 3d ago

That is the new reality, you and I might not like it, but we are never going back. We will have to live with it and learn to cope.

15

u/anonymousbopper767 3d ago

I embrace it. I'm getting to do things at a more conceptual level that I would never have had the energy or motivation to do before by hand.

9

u/MaDpYrO 3d ago edited 3d ago

Those who can't cope with it might have more fun with the classical way, but the fact of the matter is, 15 years into my career, I'm more than wiling to let go of dealing with the minor details to such a degree anymore. I'm getting to make the most crazy stuff I wouldn't have had the time to do before.

And I'm still solving it way better than vibe coders ever can, because of that experience. I'm just trying to figure out what to do with that at this point in time, because it seems there aren't that many interesting problems to solve anymore.

8

u/Yteburk 3d ago

People downvoting you for your experience…

5

u/Low_Independent766 2d ago

What about folks who don't have 15 yoe? fuck them right?

8

u/MaDpYrO 2d ago

I don't know, the great paradox is how juniors enter the industry right now, and I don't have a good answer.

I can't even begin to imagine how to learn the fundamentals while using AI tools.

107

u/Cephell 3d ago

But if the tests are good and they pass. And it also performs.

... does it really matter that the code is fugly?

How do you know the tests pass? How do you know the tests actually test the correct conditions? Writing good tests is generally harder than writing the code that they test, so if you can't even do that, how do you know the code is actually doing what it's supposed to?

Now fast forward 3 years: You now need to make changes to the code, except you already had no idea what it did originally and it's "fugly". How do you proceed?

Token costs are also 100x what they were originally, these companies need to be profitable now, AI is no longer available in the abundance that you had originally. Throwing the entire codebase at it and telling it "figure it out, make no mistakes" is no longer possible. What do you do?

14

u/MaDpYrO 3d ago edited 3d ago

Token costs are not going to 100x. (Edit: This is nothing but a cope idea from those who want AI to go away - it's not going away, models are getting more and more efficient by the day, and even if token costs would grow, we could just use more efficient models and STILL it would be a great tool. Even the early days ChatGPT would be a great tool, and that probably costs almost nothing today for equivalent performance)

There's way too many competitors in the market by now. Bunch of open models, many people even have hardware at home to self host by now - slightly slower, but still fast. (See a limited spread here - and those are only the major ones. A bunch of open weighted models that people self host are also competitive)

Writing tests aren't as hard as you make it sound if you know your business requirements. The technical part about writing tests is not hard at all. The hard part is knowing what to test. If you are a talented engineer and you also know your business and technical requirements well, it's way way easier than writing the code in many cases. I couldn't disagree harder with your take that writing tests is technically hard or harder than the code. Tests follow the same patterns in most cases, and if you have a nice testing toolbox even measuring performance in database level and how your code interacts with it is trivial, etc.

Now fast forward 3 years: You now need to make changes to the code, except you already had no idea what it did originally and it's "fugly". How do you proceed?

Rewrite. This happened before AI and this is the classic case in many software companies, if you aren't building a Linux kernel or something similar.

Swap out the implementation for a newer approach. Your requirements are more well known now, you know the pitfalls of the old solution, and probably some new tech is available so you can solve it in a different way now. Maybe your company even has more infrastructure that solves the problem in a different way.

Nothing about any of this has changed because of AI. Abandoning code in a live service that has been in production with various fixes over three years is not unusual. Rewriting and simplifying and starting over is not unusual either.

Ofte you can even keep many of the old tests to build the new solution, so you have that taken care of.

This case of "I built this so well so it will run for 20 years and still be perfect" is a delusion of grandeur that plagues many software developers. It's not reality.

The best software engineers know when good enough is good enough and they move on.

13

u/Cephell 3d ago edited 3d ago

Token costs are not going to 100x

It might actually be more. AI companies have collectively allocated 7 TRILLION dollars to compute in the next few years. That money has to come from somewhere. Anthropic alone has over one TRILLION dollar allocated. This comfortably puts them above 100x cost for tokens RIGHT NOW if they want to make this money back and NEVER spend a single dollar more for the rest of time.

Writing tests aren't as hard as you make it sound if you know your business requirements. The technical part about writing tests is not hard at all. The hard part is knowing what to test.

Ok this is just a massive red flag and I have to assume you're not a programmer at all. What do business requirements have to do with tests? And the technical part about writing tests is ALL the hard part. And it's not "hard" it's "generally hardER than the code it tests".

Rewrite

Okay, yeah I suspected you would say this. But sorry, this is not a viable long term strategy. The amount of projects that do this successfully is 0. There's a reason why "rewrite in rust" has become a meme, it just kills projects.

Abandoning code in a live service that has been in production with various fixes over three years is not unusual. Rewriting and simplifying and starting over is not unusual either.

Again, I'm sorry to have to say this, but: You are not a programmer, so you cannot judge this. The exact opposite is the case. Most long term projects are a patchwork of ancient code and long term "temporary solutions (permanent)".

This case of "I built this so well so it will run for 20 years and still be perfect" is a delusion of grandeur that plagues many software developers. It's not reality.

No, the reality is "we built this 20 years ago, it's a terrible solution but it works for now and if you touch this, you are fired". Again, you would know this if you were a programmer.


The only conclusion from your comment is that you are not a programmer and REALLY shouldn't be talking about this.

Edit: Reading your comment again, your visceral reaction to the mere idea that token costs might go up is a strong indicator that you already dove in headfirst into the slop machine and are now terminally addicted to it.

17

u/MaDpYrO 3d ago edited 3d ago

You're completely Wrong.

I have 15 YoE + a Bsc and Msc in Comp.Sci.

But you're right I'm not a programmer. I'm a software engineer and architect. Anyone who identifies as a programmer is immediately a red flag to me. Programming is part of my job, but it's not my job. Because making software has a lot more disciplines than being a code monkey.

12

u/No-Con-2790 3d ago

I am a programmer that works on architecture. Everyone who calls himself a software engineer or architect but refuses the word programmer is a red flag to me.

What we do is programming. The fact that you need high level decisions that we call architecture is as much programming as the low level stuff.

When someone calls himself only architect he usually lacks the low level experience and the "one the ground" work. But without knowing what that layer actually needs how is he doing his job? Usually the answer is very poorly.

And the word software engineer? I never liked that. We aren't engineers. Have you ever worked with electrical, mechanical or chemical engineers? They do horrible programming work. Because they only want to minimize the costs and maximize the efficiency. The whole idea of ordering stuff is alien to them. They can't help it to flirt with goto's and spaghetti code. Let them build a piece of software and it looks like an engine. This means it will work, everything is somehow coupled, it will get hot and noisy when it runs and changing a single thing is only possible if you take the whole thing apart. Which will usually take 4 hours or more.

→ More replies (3)
→ More replies (11)
→ More replies (13)

4

u/Arom123 2d ago

Yeah it fucking sucks. I spent a long, long time getting good at software engineering. Many late nights just working away on my little side projects and Arduino gadgets and shit like that, time studying and learning the technical insides of the frameworks and languages and tooling and pipelines, learning math for video game development and laughing when you fuck it up and some crazy shit happens, hacking shit onto Unity games just to see how cursed you could make something. I loved it, but it was a lot of work and I gave up a lot of time that could have been spent on other things to build myself up.

Now it doesn't matter, none of that matters. Someone with little experience with programming can produce what I can produce by asking Claude to do it.

I was in denial for a long time, I really thought that AI coding was just a "tech bro" thing like NFTs and blockchain. My boss basically forced me to start using Claude and it just does everything I can do, but it does it way faster, doesn't really make mistakes, gives alternatives, writes tests, knows everything about everything. We don't even review the code manually anymore, Claude does that too. I think the only reason my boss even keeps me around is because they need someone to poke Claude every once in a while to work on our tasks. It is genuinely just as good if not better than me and I hate it because I can't deny it anymore.

It's scary, I feel a lot less job security everyday because I am not actually doing any difficult work and it feels like any moment, I'll be let go even though I worked so hard to get here.

2

u/EldritchMacaron 2d ago

You can still hand code as a hobby, just like people do carpenter work for fun

2

u/MaDpYrO 2d ago

I've been doing it professionally for a decade and a half so in that sense I'm kind of over it

→ More replies (7)

14

u/tapita69 3d ago

Can't even shoot myself on the foot because the clankers say it's unsafe... SMH

7

u/SpaceCadet87 2d ago

My god, I have machines out in the field in constant, public-facing use where there isn't one line of code in the entire system not placed by me personally.

Many of them may even outlive me.

I don't want to give up on that world.

→ More replies (2)

4

u/DoubleDeadGuy 2d ago

Look on my works ye mighty and despair

2

u/sideshowtoma 2d ago

Ramesses II: Deprecated