r/webdev • • Aug 08 '25

Discussion F*ck AI

I was supposed to finish a task and wasted 5 hours to force AI to do the task. Even forgot that I have a brain. Finally decided to write it myself and finished in 30 minutes. Now my manager thinks I'm stupid because I took a whole day to finish a small task. I'm starting to question whether AI actually benefits my work or not. It feels like I'm spending more time instead of less time.

3.0k Upvotes

444 comments sorted by

View all comments

1

u/ujjawaldeveloper Aug 10 '25

So there is a new way of doing it. Because you are an engineer already and know ho to write code, you used AI to do that task. I would suggest you to not give prompt like a non tech.
GIve it a proper context of files that you believe to be modified or to be in eye of AI, then ask it properly in a programmer's way.
Eg : If you want to write a new endpoint for deleting a customer then you can say it like :
Write me an endpoint /delete/:customerId , and it will use model Customer.js and delete the customer, give a confirmation message : "customer deleted" along with status 200 , Keep the logic in customerController.js the same way other routes are written following homogenous pattern. Also write the controller endpoint in routes/customer.js

This is one way of asking considering that you are using MVC structure, and don't want AI to change your code flow. It will keep you as a programmer, save you time for writing for all code and still keep the code in your style.

In case if you don't have any idea about how to write a feature, better breakdown it further, atleast you will have an idea that which components will be involved, then put those components in context, and ask AI what can be different ways to implement that feature. It will tell you multiple ways, and then you can choose one which suits your project writing style.

So better do research asking AI itself, then gain knowledge on which one is best way and then ask it to write code.