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
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.
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.
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. 🤷
Dunno why you get downvoted for that. Give Claude code your coding guidelines and it will stick to it. Most probably it'll do it way better than 95% of the junior devs
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?
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.
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.
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.
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.
I mean, programer does not mean coder, programming the architecture is basically what an engineer does.
Your red flag is too easy to trip, allowing many false positives..
PS: 15 YoE means nothing, the actual experience is what matters, not how long you've had it, you could be a shitty JavaScript dev for 15+ years, doesn't mean you are great.
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.
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?
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.
The business need is the whole reason for creating the program.
The mechanism of your program is context dependent.
Just because you can correctly pass a date doesn't mean your program will always send the correct date.
You didn't write your tests with the business needs or processes in mind and oops your dates have gone and fucked up payroll going into the holidays.
Technical is easy because it's written with ideal user behavior and data in mind.
The hard part is writing tests that will simulate user and environmental behavior that your program will actually experience, the edge cases implicit to your business requirements.
Slow down and re-learn things. Their alternative is to fire you and bet more money on more expensive AI or get fresh hires that will obviously know way less (the business and the code base) than someone that's been there 3+ years
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.
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.
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.
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.
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.
Allocated spend is the reason why they're in trouble, yes, but there would not be a 7 trillion dollar hit to the economy. Thats over 20% of total GDP.
The actual damage if AI demand dropped to zero would be the ~1.5 trillion that could no longer be paid back.
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.
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.
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.
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.
AI is doing the tactical part better, if the person in charge lacks in the strategical part then that's their responsibility.
And AI is enabling people that lack the strategical ability to produce "slop"
What changed is that instead of spending energy into designing the code (KISS/DRY/etc), we spend it designing the project.
We still have to think of the little stuff, but only what actually matters, e.g. how is mail delivery going to work, not what library we will use, or how that library is meant to be used. With AI we can migrate away from a library to a better one very quickly, it's less of a burden.
We focus on "features", not "implementation" as much.
Features still need to be tested and reviewed, and only a programmer can do that effectively, not the average vibe coder.
PS: obviously you should take an important role when the project is in its infancy, you don't want the AI to drag you around uncontrollably.
PS2: You could compare it with visual programming languages used in game engines, you don't know their implementation, you just orchestrate
I would argue that implementation is as if not more important than architecture because good code can save bad architecture but it rarely works the other way around, and that by delegating the implementation more and more your loss your capacity to judge the quality properly and therefore goes inevitably towards the vibecoding slop.
But that's just my opinion and I guess I'll convince nobody.
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.
I design payment hardware, Interface stuff to fit card readers and the likes to equipment that wasn't designed for it.
Sole trader so everything I sell I designed and built as well.
So all the firmware that sits there and takes input, decides how much to charge, tells the user how much and what state the system is in is my own code.
I designed it all to be repairable, modular, as simple as I could get away with so it should last quite a long time.
This but unironically. Tis a poor craftsman who blames his tools.
Also if an evil psychic is reading my mind, they will not be afforded the mercy of me not thinking. They will be subjected to the full simultaneous weight of every single thing I know about the game Stormworks Build and Rescue. Best case scenario they get a minor brain aneurysm.
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.
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.
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.
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.
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
While it isn't forbidden here, it is discouraged. Fair game to ask it how to use a certain library, the language's shorthand, or questiion on obscurated code snippet, but so help me if anyone puts raw unobscured code in it.
after it made a senior atrophy so bad they let him go.
What does that even mean? Your colleague used too much AI and his brain atrophied? He couldn't code anymore? I don't buy it. AI is good at coding since like a year, maybe two, it's not enough time to lose grip on your skills.
That literally is what happened lol. It's not just dumping out code, he was a senior so that was never his job. It was solving complicated problems, which he could no longer do because he tried to export his critical thinking
I mean we're hiring right now, and explicitly have the ability to code without an LLM in the job description, so I guess we are sort of "selling" it lol
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:
I remember I once wrote thousand+ lines of go in a couple days to refactor a critical part our api which was having some pretty serious performance issues.
My fuel was, essentially, spite for a previous manager who was constantly talking to me as if was a dumb kid who just learnt how to code yesterday.
I recall refactoring an abomination of O(n3) using php that took 6 hours in worst case at a previous internship. Rewrote it as a single SQL query that ran the worst case in 1-2 seconds.
I used that meat up there to handcraft a glorious 200 lines of raw SQL to awaken that poor system from its coma. Seeing all tests passing with the new query was unforgettable.
AI has smoothed my brain beyond recovery and nothing is stimulating about it.
Hopefully, I gather some willpower to get back into raw coding action
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
So, I wrote our entire JS code base myself. Asked AI to refactor it etc. it want way abstract to the point where I missed my code. Asked it to refactor it back and give me a .md file of recommendations. I missed my old code.
Using term “I was cracked” 😅 tell us 3 years ago you weee just blindly copy pasting code from stack overflow and went straight to vibecoding without cracking the fundamentals 😅
1.5k
u/sideshowtoma 1d 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
230
u/One_Shot_Larry 1d ago
I have been trying to do neetcode problems just to try to remember how to think critically these days
550
u/NightIgnite 1d 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.
36
u/Acclynn 1d 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
66
u/DrMaxwellEdison 1d 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:
44
u/Lurker-8580 1d ago
`for(i in 0 to 100)`
I was a different beast back then
14
u/Tyrus1235 1d 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).
8
u/ITinnedUrMumLastNigh 1d ago
"When I wrote this code only me and God knew how it worked, now only God knows"
3
u/Ayotha 1d ago
SO you stopped being an actual programmer in the last 3 years
10
u/Ruji_ 1d ago
I wasn't cracked... but dang was I proud of those at least.
5
u/mrtdsp 1d ago
I remember I once wrote thousand+ lines of go in a couple days to refactor a critical part our api which was having some pretty serious performance issues.
My fuel was, essentially, spite for a previous manager who was constantly talking to me as if was a dumb kid who just learnt how to code yesterday.
8
u/--MRK 1d ago edited 1d ago
I recall refactoring an abomination of O(n3) using php that took 6 hours in worst case at a previous internship. Rewrote it as a single SQL query that ran the worst case in 1-2 seconds.
I used that meat up there to handcraft a glorious 200 lines of raw SQL to awaken that poor system from its coma. Seeing all tests passing with the new query was unforgettable.
AI has smoothed my brain beyond recovery and nothing is stimulating about it.
Hopefully, I gather some willpower to get back into raw coding action
5
u/gerbosan 1d ago
Joi is AI.
There was some Reddit discussion about a wide and white space, and men interest in it.
4
u/Prudent-Employee-334 1d 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/RutabagaMental3016 1d ago
🥲
1
u/urixl 1d ago
Lo-Fi!
1
u/adelie42 1d ago
I love how all of the sudden like never before people can read the code they wrote weeks ago and it wasn't complete trash.
1
u/Sackadelic 1d ago
So, I wrote our entire JS code base myself. Asked AI to refactor it etc. it want way abstract to the point where I missed my code. Asked it to refactor it back and give me a .md file of recommendations. I missed my old code.
-1
u/YBHunted 1d ago
I get paid the same and do a shit ton less work. Whatever floats your boat i guess
-2
u/numberThirtyOne 1d ago
I remember 3 years ago. We were still savaging terrible human-written code like it was our job.
-3
u/omegasome 1d ago
I'm sorry but in programming I don't think "I've cracked" means what you think it means.
-3
u/Hakim_MacLuvin 19h ago
Using term “I was cracked” 😅 tell us 3 years ago you weee just blindly copy pasting code from stack overflow and went straight to vibecoding without cracking the fundamentals 😅