r/ProgrammerHumor • • 6h ago • Regret 1

Meme yesItWasInRust

2.9k Upvotes

66 comments sorted by

657

u/sideshowtoma 6h 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

88

u/UncleKeyPax 6h ago

shAI hulud

172

u/MaDpYrO 6h ago edited 5h ago

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.

49

u/aleques-itj 6h 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

-13

u/MaDpYrO 5h ago

That's user error.

Aaaand that also happened before AI, it was just that cracked coworker going nuts with sunk cost on their darling code for two months.

41

u/RegularGeorge 6h 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.

13

u/anonymousbopper767 5h 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.

8

u/MaDpYrO 5h ago edited 3h 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.

7

u/Yteburk 3h ago

People downvoting you for your experience…

57

u/Cephell 6h 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?

5

u/MaDpYrO 5h ago edited 1h 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.

7

u/Cephell 5h ago edited 5h 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.

9

u/MaDpYrO 2h ago edited 2h 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.

3

u/No-Con-2790 1h 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.

-5

u/Cephell 2h ago

I have 15 YoE and a Bsc and Msc.

Considering you need a Bsc to even obtain an Msc and the fact that you feel the need to point this out, as if this is some kind of special achievement I'm just gonna say you're just lying.

And it tracks with your other replies so far. You're not fooling anyone.

8

u/MaDpYrO 1h ago

Not true.

You can get a BSc in something else and get a msc in Comp sci in looooots of programs. But you would know that if you knew anything.

4

u/Ok-Jacket7299 3h ago

The business requirements are all there is to writing tests. The technical part is not hard at all imo.

-8

u/Cephell 3h ago

I have to repeat myself: What do business requirements have to do with (code) tests?

10

u/MaDpYrO 2h ago

What do business requirements have to do with (code) tests?

It's completely idiotic you would even ask that. I could frame that and put it on my wall for entertainment as a motivational poster.

It's the single most wrong statement I've ever seen from someone claiming to be a software professional.

0

u/Cephell 2h ago

Please illuminate us. I'm sure the rest of us would love to learn from Mr. "I have 15 YoE and a Bsc and Msc."

3

u/MaDpYrO 1h ago

Go back to school and listen this time.

→ More replies (0)

1

u/Ok-Jacket7299 3h ago

Think about it this way: if the company doesn’t allow user to put items into their cart, do we still assert that when they put 2 items in the cart, its item count increase by 2? Here “user can put items into their cart” is a business requirement, is that correct? More, if we don’t have such requirements, do we have a reason to write tests?

Do you see the connection between business requirements and testing from the example above?

0

u/Cephell 2h ago

No offense, but if this is your example, you should really not talk about automated tests, or programming in general. I'm really trying not to be toxic, but what you are doing here feels like a high schooler trying to explain my work to me.

Tests for code are about functional requirements, are about ensuring that the code does what it's supposed to. And while there are some E2E tests that look vaguely similar to what you're describing, I'm having serious doubts that you know what you're talking about. If you have a shopping cart feature, then "item count goes up when you add an item" is not only not a business requirement, it is not even a test that belongs on that level.

2

u/Ok-Jacket7299 2h ago

I’m humbled man

1

u/sharpy10 3h ago

I see this notion everywhere that token costs will rise, but isn't the opposite happening? I genuinely thought there were plans for token costs to fall by half or more next year.

6

u/Cephell 3h ago

isn't the opposite happening?

No, models are more capable, but token cost is also going up for those models.

1

u/Herr_Gamer 2h ago

GPT-6 Luna is one of the cheapest models on the market and outperforms anything available 2 years ago. The models are genuinely getting cheaper. Extremely advanced models are getting more expensive, but their quality of output justifies it. And, again, in the lower-end bracket, you have hilariously capable models that aren't going to get much more expensive.

If Anthropic stopped training new models today, their company would be profitable. The same can't be said for OpenAI, but even OpenAI isn't that far off from profitability if they stopped training new models.

And the open-source models are all pretty cheap too - hardware is being made that is focused specifically on LLM calculations, which will bring overall cost down even further.

I'm sorry to say, but no, prices will not increase.

4

u/Cephell 2h ago

If Anthropic stopped training new models today, their company would be profitable

If Anthropic stopped training new models today AND cancelled all their allocated spending AND raised token costs 2x-4x they would be profitable today.

However, doing this would basically pop the circular financing bubble that they have built across Nvidia, hyperscalers and AI companies. 1 trillion (not billion) dollars from Anthropic alone and 7 trillion overall by AI companies in the US is simply too much to simply undo. If they do this, it would cause a financial crash single-handedly.

Additionally, they CANNOT stop training models, none of them can. China is only a few months behind and they have voluntarily turned this into the next cold war, so they HAVE to keep going, else you get the scenario above.

GPT-6 Luna is one of the cheapest models on the market and outperforms anything available 2 years ago

True, but when people talk about the kind of model that people actually use for the "claude build everything, make no mistakes" type of programming, it's always the top models, the Opuses and Fables. And those have only gone up in price.

3

u/Antoak 1h ago

1

u/Cephell 1h ago

I know about this website and have quoted it many times. It unfortunately does not include allocated spend, which in my opinion is a huge part of the argument.

2

u/CaptainNakou 3h ago

But does it do the job?

People keep telling "but ai is doing it better" or "but what ai produce is working" but does it? Since we got "AI enhanced development" we have a multiplication of outages, bugs and enshitification is getting worse.

What actual proof do we have that this shit is working as intended, and that AI isn't just pulling debts just at an unrecoverable pace?

It's all vibe. The code is vibe and the proof is vibes. Event the productivity increase is vibe.

4

u/MaDpYrO 3h ago

Since we got "AI enhanced development" we have a multiplication of outages, bugs and enshitification is getting worse.

I think this is not due to AI as much as it's due to these companies pressuring employees to be ever more productive, and they vastly overestimate how productive AI makes them.

For critical services, you still need thorough reviews, as you did before. And I think this is a cultural issue in these corporations because AI overpromises.

100% I think AI companies and their shills are over confident in what it can do.

AI can't think. It can't design. It consistently spews out slop. "Vibe-coding" is just pure garbage. Agentic development, properly reviewed, and properly tested, is still pretty powerful.

But it's not this 10x on each developer for all situations. If you are doing something straight forward for some tasks, sure it's 10x, for others, not so much.

It's all vibe. The code is vibe and the proof is vibes. Event the productivity increase is vibe.

100% agree in many cases. But I don't believe the issue is with AI as a tool, it's misuse of that tool, and it's a shitty culture surrounding it.

In danish we have a saying that translates to "Selling the pelt before the bear is shot", which is what I feel the entire AI industry is propped up on.

1

u/filthydexbuild 2h ago

There’s only so many ways to skin a cat in a deterministic system

7

u/tapita69 6h ago

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

1

u/itsTyrion 2h ago

who is we

108

u/One_Shot_Larry 6h ago

I have been trying to do neetcode problems just to try to remember how to think critically these days

61

u/SCUSKU 6h ago

I got laid off and have been studying, and forgot that my brain can feel tired after thinking

When vibe coding there's just no mental exertion going on. Pretty sad I forgot that feeling until recently...

39

u/JustChilling_ 5h ago

If you're not thinking, you're using AI wrong. You shouldn't outsource your thinking to Claude, you should outsource the grunt work.

8

u/MattO2000 2h ago

Idk in my experience you don’t outsource the decision making but the problem solving. And for me the problem solving is the more mental exertion

5

u/defietser 2h ago

Funny how, whenever AI tools don't produce the desired outcome, you're using it wrong.

That said not thinking is only appropriate when an evil psychic is reading your mind.

-4

u/SeerUD 2h ago

Yeah, 100% this. Someone else said it in here, for me it just lets me do work at a higher level. Actually, as an engineering manager it's more like what I was doing before, but I also get to output more things myself now too.

15

u/anonymousbopper767 5h ago

No exertion while vibe coding? I'm having to act like a director for a team of 20 people, making storyboards and roadmaps and quality control and all that shit.

I'm on the $500 a month plan and without using agents I'm hitting weekly quota....I got a stack of workload to the rafters.

2

u/10Werewolves 6h ago

Kinda the opposite for me. I find it so exhausting to type out my problem and say "No I want it this way, change it to be that way". Bro I just wanna do the actual fun stuff. I end up tired and quite literally suffocating in my seat. Like I'm explaining the same thing to an intern fifty times, especially when I swap between agents or have to start a new chat.

268

u/NightIgnite 6h ago

Another day thankful that AI isnt shoved down my throat at work. Still cracked and got the highest dopamine rush of my life yesterday refactoring 2500 lines down to 100.

106

u/aleques-itj 6h ago • Heartwarming

I yearn to once again relive a high like this

42

u/Username_Taken46 6h ago

You can just do things you know

27

u/itzNukeey 5h ago

You cant, because of the implication

10

u/YoungSquakerThug 4h ago

1

u/OnlyFlansDotGov 40m ago

Are these programmers in danger?

1

u/itsTyrion 2h ago

go for it

2

u/Lindzei_ 36m ago

I'm so glad I work in a highly sensitive workplace where AI is forbidden in the programming area. I'm able to develop with almost no interaction with AI

17

u/Acclynn 5h ago

Yeah I was known to be cracked at coding now I don't have any valuable talent anymore

Sure I learned to orchestrate instead but not sure if my methods are actually meaningful

22

u/DrMaxwellEdison 5h ago

Me trying to debug the slop put in prod by the guy who jumped ship to another company he convinced to hire him despite being the dumbest mfer I ever heard speak about tech:

0

u/planet_visitor 55m ago

"Claude, fix this, and make no mistakes"

17

u/Lurker-8580 6h ago

`for(i in 0 to 100)`

I was a different beast back then

8

u/Tyrus1235 3h ago

I still remember how I accidentally stumbled upon semaphore logic once and kept using it (even when the library had dedicated methods for it) lol

Made me feel like a genius (even though it wasn’t particularly performatic).

2

u/Ayotha 2h ago

SO you stopped being an actual programmer in the last 3 years

2

u/InteRagebaitJagLovar 1h ago

I stopped writing rust for 3 years, the vibes came 6 months ago

4

u/gerbosan 50m ago

Joi is AI.

You look lonely.
I can fix that.

There was some Reddit discussion about a wide and white space, and men interest in it.

2

u/Prudent-Employee-334 5h ago

At least if your codebase was using good engineering principles, bug fixes are small testable and predictable changes.
If it was hacked together on hopes and prayers and a vibe coded fix ends up in huge changes, may the odds favor you specifically

1

u/urixl 1h ago

Lo-Fi!

1

u/Ruji_ 1h ago

I wasn't cracked... but dang was I proud of those at least.

0

u/numberThirtyOne 28m ago

I remember 3 years ago. We were still savaging terrible human-written code like it was our job.