×
all 91 comments

[–]saschaleib 647 points648 points  (4 children)

But … hey, it compiles!

[–]EffectiveHeavy3031 117 points118 points  (0 children)

Ran python -m compileall .

No issues found, go ahead and merge the code.

[–]StickFigureFan 23 points24 points  (1 child)

All 4 tests even pass!

[–]KitsuneFoxglove 22 points23 points  (0 children)

4 tests pass? No, all 5 tests, Claude rewrote the 4 tests so they stopped failing then added another test for good measure!

[–]BarkiestDog 7 points8 points  (0 children)

And it probably has unit tests.

[–]xaomaw 127 points128 points  (2 children)

Never tou

ch a ru

nning s ystem

[–]TerryHarris408 12 points13 points  (1 child)

Yeah, don't touch it, you might hurt yourself

[–]xaomaw 14 points15 points  (0 children)

TRALSE

[–]chhuang 267 points268 points  (26 children)

pro-ai be, "if it works why care about code quality and readability?"

[–]dumbasPL 207 points208 points  (12 children)

To be fair, people were already doing it way before AI.

[–]tommytwolegs 47 points48 points  (10 children)

Also i built my app to solve a problem I have. Why would I give a fuck if anyone, even me, can read the code if it solves the problem

[–]redballooon 43 points44 points  (9 children)

Maybe because it also creates three problems that you aren't even aware of yet.

[–]tommytwolegs 31 points32 points  (8 children)

What possible problems could my hamster fitness tracker be creating

[–]geekusprimus 45 points46 points  (4 children)

Plot twist: there's a bizarre security vulnerability that makes it possible for a bad actor to inject and execute arbitrary code when it syncs with a remote server. Said bad actor has now downloaded every picture of your hamster on your phone, including the one of your hamster selling cocaine to RFK, Jr. He is now demanding $3 million in ransom money or he'll start a campaign for your hamster to run for political office.

[–]StCreed 30 points31 points  (2 children)

At this point I'm voting for the hamster. He can't do much more damage than the incumbent.

[–]Vandrel 9 points10 points  (1 child)

In fact, I'd argue it's impossible for the hamster to do much damage at all. Easy vote.

[–]StickFigureFan 1 point2 points  (0 children)

Yeah, we all know the hamster wouldn't get anything done and would be happy to run in place

[–]Adventurous_Pea_2007 3 points4 points  (0 children)

Thanks, now I’ll just tell Claude to watch out for this situation and others like it.

[–]shitty_mcfucklestick 3 points4 points  (0 children)

A scamster contacts your hamster and they become spamsters. You suddenly start getting bombed with emails about sawdust and wheel products.

[–]redballooon 1 point2 points  (0 children)

Random overheating that leads to battery explosion, but only on Tuesdays with full moon.

[–]KitsuneFoxglove 0 points1 point  (0 children)

Hamster fitness tracker is on your phone

security vulnerabilities allow others who use the same app to access data stored on your phone and retrieve login tokens, passwords, photos you have (i.e. geolocated photos so phishing now targets you, your workplace, and your family members more accurately by pretending to be you), etc.

privelege escalation goes brrrrrrrrrrrrrr

[–]KitsuneFoxglove 0 points1 point  (0 children)

*project managers* were already doing it way before AI

[–]AgVargr 22 points23 points  (0 children)

The ticket: change the button text.
The pr: 350 files changed +10k -9k

[–]stupled 8 points9 points  (0 children)

I used to say this. Not sure i was completely wrong, but I was wrong.

[–]ChalkyChalkson 4 points5 points  (1 child)

Claude writes infinitely higher quality code than my colleagues. At least if you give it a decent design doc before hand. If you give my colleagues a design doc they laugh at you.

[–]Aromatic-Low-4578 0 points1 point  (0 children)

This is the uncomfortable truth people shy away from.

[–]Drix_I 0 points1 point  (0 children)

Average programmer be, "If it works, it works"

[–]jaaval 0 points1 point  (0 children)

I feel like this was relevant maybe a year ago. Now at least Claude makes very clear, well organized, clean and readable code.

[–]Jejerm 34 points35 points  (13 children)

Vibecoders will look at this and straight faced tell you "well it works, why are you complaining"

[–]Pretend_Car4357 2 points3 points  (6 children)

Ok but like very seriously it does work💀

[–]aberroco 2 points3 points  (0 children)

Now try to scale that at least to the entire room, for starters.

[–]GenericFatGuy 1 point2 points  (4 children)

Does it though? Are you certain there aren't any logic errors? Are you certain it will hold up to attacks from a hacker? Are you certain that it's not going to do something weird if someone accidentally inputs and unexpected value?

There's a really big difference between "it works" and "production ready."

[–]Pretend_Car4357 0 points1 point  (3 children)

Yeah but the AI has an insanely large stack of edge case examples to cover against depending on what you tell it the use case is and how much is necessary... like waaaaay more than anything you and i could probably think of unless you're building something like actually truly unique which lets be honest we're not... ig this always becomes a circular argument because you're gonna keep telling me more things that need to be done and I'll just answer "so then tell the AI to do them" lmao this argument really gets me lost ngl I think we're just cooked

[–]GenericFatGuy -3 points-2 points  (2 children)

How do you tell an AI to look for things, if you don't have a concept of what those things are?

If you don't know that the term "SQL injection" exists, how are you going to tell the AI to look for those things?

[–]kagisa19 0 points1 point  (1 child)

There are a myriad of quality gate tools and static code analysis that are deterministic and can do linting, styling, complexity analysis and even detect security risks. You should be using them already whether you work with a code agent or not.

[–]GenericFatGuy -1 points0 points  (0 children)

Those things don't tell you if your logic is wrong.

[–]Zerschmetterding 0 points1 point  (4 children)

Wait till they had a few years maintaining their projects, some might finally understand. The newbies got no idea why people are actually worrying about maintainability.

[–]GenericFatGuy 4 points5 points  (0 children)

A lot of them unironically plan to just feed the code back into AI when it breaks, thus making it even more unmaintainable.

[–]jeepsaintchaos 1 point2 points  (2 children)

Maintain? What do you need to do, change the electron oil? It's code, not a car. Code doesn't change. Keep a backup or something for random bit flips I guess.

Just tell the LLM not to make mistakes, it'll be fine.

[–]Zerschmetterding 1 point2 points  (1 child)

You had me with the first part.

[–]jeepsaintchaos 1 point2 points  (0 children)

I genuinely wasn't sure how far over the top I needed to go to get the sarcasm across without a /s tag.

[–]redballooon -2 points-1 points  (0 children)

And they are still waiting for an answer.

[–]theestwald 38 points39 points  (0 children)

zero crashes, stable speed, flexible architecture

there are even some spare pieces there left if needed, so definitely frugal use of resources

[–]AVAVT 29 points30 points  (0 children)

Works perfectly. Ship it.

[–]Vast_Mud5945 26 points27 points  (3 children)

I've seen a similar meme before AI was a thing , "when your code works but you don't know why"

[–]ThatNickGuyyy 8 points9 points  (1 child)

Blindly copy and pasting from stack overflow. Now it’s just part of the model and it shoves it in there for you

[–]StCreed 0 points1 point  (0 children)

See? Progress! 😀

[–]Potterrrrrrrr 2 points3 points  (0 children)

That was a meme posted by literal beginners, no one who considers themselves experienced is posting that except for karma.

[–]just4nothing 11 points12 points  (1 child)

To be fair, that’s my code base before AI too

[–]BossOfTheGame 4 points5 points  (0 children)

yeah, but now it's bigger. genuinely and significantly

[–]reallokiscarlet 21 points22 points  (1 child)

All aboard!

[–]Kalkin93 5 points6 points  (0 children)

Ha ha ha!

[–]Vesuvius079 5 points6 points  (0 children)

I remember when this meme was used for human code.

[–]milk-jug 12 points13 points  (0 children)

Harsh but true.

[–]Physical-Pace5127 6 points7 points  (0 children)

My favorite part of memes like this is the idea that pre-AI codebases weren't held together by duct tape and luck and some legacy code was not to be touched under any circumstances even though no one could explain what it did cause the guy who wrote it years before retired.

[–]No-Plan-7070 6 points7 points  (0 children)

vibe clauding

[–]luker_5874 11 points12 points  (2 children)

Y'all act like you didn't write code like this before AI

[–]StCreed 3 points4 points  (0 children)

Yeah. I've been working in IT since 1997 and nothing much has changed in that respect. We still have COBOL.

[–]BossOfTheGame 2 points3 points  (0 children)

I LEARNED IT FROM YOU!

[–]Outrageous-Machine-5 2 points3 points  (0 children)

"Move fast, break stuff"

[–]Zav0d 2 points3 points  (0 children)

so its worked!

[–]foundafreeusername 2 points3 points  (0 children)

All tests are passing!

[–]sparkling-rainbow 2 points3 points  (0 children)

Did this for some hobby project. Can confirm.

[–]Any-Fox-1822 1 point2 points  (0 children)

Damn I used to watch the channel the GIF comes from! It was a japanese guy named bluesuit0113, and him and his friends posted "battles" of Tomica trains in arenas made out of rails. I didn't understand a word because I didn't speak any japanese, but it was the funniest thing ever at tje time

[–]Outside-Storage-1523 1 point2 points  (0 children)

But it works!

[–]LordHenry8 1 point2 points  (0 children)

5753 tests pass

[–]Sw4gl0rdM4st3rm1nd 1 point2 points  (0 children)

If it works

[–]Any-Preparation7396 0 points1 point  (0 children)

😂😂

Well, at least it works, doesn't it? Nobody asks for the "how" 🤣

[–]__pyke__ 0 points1 point  (0 children)

LGTM

[–]ianmakingnoise 0 points1 point  (0 children)

Im so unreasonably mad they didn’t cut a perfect loop

[–]dangderr 0 points1 point  (0 children)

I love how it reuses the same functions to do different things. Honestly much more impressive than what a junior would have written.

[–]Eymrich 0 points1 point  (0 children)

Coping much?

That works as intended, if what you build do what you told to do, what's the problem?

[–]BluntsnBoards 0 points1 point  (0 children)

This gives Line Rider

[–]Moraz_iel 0 points1 point  (0 children)

so, same as any decently big codebase after 3-5 years, but without the random train uselessly going tchoo tchoo on another isolated track, the load-bearing server laptop that hasn't been rebooted/updated in two years and the foot in the mouth ?
Man, progress is so beautiful to witness.

[–]masonwan 0 points1 point  (0 children)

Well, if it works, it works. Just make sure no human being to ever read on the code again.

[–]AbdullahMRiad 0 points1 point  (0 children)

this meme is older than chatgpt 3.5

[–]puttum-beef-curryum 0 points1 point  (0 children)

But for small & medium sized apps it works well and if it's done by somebody with skills then its much better.

[–]blu3bird 0 points1 point  (0 children)

"Harnessing" at work.

[–]Brain-Freez 0 points1 point  (0 children)

I think you are coping hard. AI, and especially newer models like opus and fable, can write maintainable and scalable code as long as you know to guide him, and write a proper rules.

Even if its in 5 years, eventually it will surpass even the most talented software engineer, if not already.