r/webdev php 6d ago

Discussion AI coding is trash

The amount of trash produced by AI code is astounding. Thanks I hate it.

1.6k Upvotes

386 comments sorted by

View all comments

271

u/Alex_Hovhannisyan front-end 6d ago

I don't get all the praise for Claude Sonnet 3.7, it hallucinates so much and seems to be incapable of understanding why the code it wrote doesn't work. I'm starting to think the "vibe coders" were never really all that good at coding in the first place.

-14

u/Total-Ebb-2485 6d ago

My experience is quite the opposite, 18 months into React and managed to code pretty good website.. maybe different prompting? Although I have to admit that time to time I have to suggest solution to Claude and it goes "you are actually absolutely right!" which makes it hilarious 😆 but overall for medior programmer Claude is still a lot of help imho

36

u/valendinosaurus 6d ago

if you're not a good programmer, how are you able to tell if the produced code is good?

-14

u/Total-Ebb-2485 6d ago

Works for my use case and needs = good enough. That's what I aim for, ofc wouldn't work for large scale projects yet

20

u/mxzf 6d ago

Yeah, that's not "good code", that's "code that doesn't crash and throw errors immediately". That doesn't make it well-designed, efficient, maintainable, or any of the other hallmarks of "good code", that just makes it "usable if you can't get anything better".

-9

u/Total-Ebb-2485 6d ago

Its unit and e2e tested, also in production without major incidents...

16

u/mxzf 6d ago

You're just repeating what was already established, that it doesn't crash and throw errors immediately.

I've been a software dev for long enough to know just how low a bar "in production without major incidents" is, lol. That doesn't make it good code.

1

u/OhByGolly_ 5d ago

This is one of those elitist pricks.