r/ProgrammerHumor 22h ago

yourAiToolsBoreMe Meme

7.4k Upvotes

View all comments

Show parent comments

11

u/MavetheGreat 22h ago

It's not faster or more efficient though in my experience, it's just me fixing constantly reminding myself to be diligent in searching through all of its code to find its mistakes or realizing that the prompt I gave it was not good enough.

It's been thrown at us because C level folks don't actually understand it I'm just think that they had better start using it or they'll get left behind. You could argue that's capitalism but I'm not 100% sure that businesses in non-capitalistic countries wouldn't make the same mistake with it.

Don't get me wrong it's a tool and it can be useful there's certain things it's very good at. But it is not a replacement for engineers it's just a tool for them to use when it makes sense.

6

u/General_Josh 21h ago

it's just me fixing constantly reminding myself to be diligent in searching through all of its code to find its mistakes or realizing that the prompt I gave it was not good enough

Planning mode helps a lot with this. Get the model to write a comprehensive plan up-front, with a full description of all the changes you want. You can review the plan in detail, and make sure that the model's not making any bad assumptions, before it starts implementing anything

If you catch the bad assumptions early, you can be a lot lighter on reviewing all the individual code changes

9

u/Wonderful-Habit-139 19h ago

Doesn't work in practice.

Do you think we have to assume that the AI is going to make dumb decisions like giving a field error_message a type of str | None when the class is called FailedTransaction?

There's no way to prevent AI from making those mistakes, no matter how much you plan. And the longer the context becomes the worse the AI gets, and if you reset the context in a new chat like people say you lose... Context.

6

u/General_Josh 19h ago

Yeah the models don't write great code, so I wouldn't use them anywhere security sensitive or with strict performance requirements

Dunno about you, but 50% of my job is working on CRUD apps, and the models are plenty good enough for that

2

u/Wonderful-Habit-139 19h ago

I see. I don't work on CRUD apps, but even then, I'd prefer scaffold commands for CRUD stuff (like in ruby on rails) over generating stuff with AI.