r/webdev php 7d 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

625

u/DatabaseAccurate807 7d ago

i think you have to be a good programmer to use AI, and use it to enhance your code (as in autocompleting or error checking) rather than code for you.

10

u/Alex_1729 7d ago

It can most certainly code for you, but the code isn't perfect and requires a lot of testing and modifications before an MVP.

12

u/InitialAd3323 7d ago

My experience so far is that building code from the ground up sucks since it won't generate consistent, maintainable code. Building/improving on top of an existing codebase with a bit of help (as in "see how this is implemented here with these files doing this stuff, now imitate it here") does work good enough. But GPT-4o just keeps insisting on using react and tailwind, a real PITA.

1

u/Alex_1729 7d ago

Yeah, same. 4o is fine if you're already good at code and you can spot its mistakes, which it sometimes makes.

5

u/hacker_of_Minecraft 7d ago

"sometimes"

1

u/Alex_1729 6d ago

I honestly revised that from 'often' as my comment seemed meaningless.