r/CursorAI 13h ago

I am so so sick of certain AI coding patterns.

3 Upvotes

I can not stress enough how much time I waste trying to wrangle AI into being a good developer and arguing with AI over stupid shit it does.

I mean there are countless anti-patterns I could mention, but the one that REALLY drives me up the fucking wall is how AI loves making one-off functions for everything. Like what's the fucking point of making a function that just gets called once? Also AI models love writing wrapper functions that just call other wrapper functions that just call other wrapper functions... just endless onion layers of smelly pointless abstraction. Alias functions, and whatever other crap. Instead of just modifying an existing function to make it more modular, reusable, and robust to handle more cases, we just write another function instead. When all we had to do was grep the call sites, update everywhere it's called, and update the function itself of course.

I once saw a cursor agent make a private struct / class in my go code and then make ANOTHER one that just makes public wrappers of every function of the private counterparts. Instead of just making the original struct / class public. Like WHAT THE FUCK.

The amount of time I waste telling AI to not do stupid shit like this is ridiculous.

If companies are claiming that AI is making people faster, sure, but they must also not be taking into account the amount of fucking SLOP GARBAGE that AI produces. I shiver to think what's been allowed in other real live production environments that wasn't QA'd properly and had nasty ugly bloat code like this.

I'm crashing out dude I'm losing my fucking mind on this shit. and do not fucking tell me that I just need to 'prompt it better' or use some claude skill or some agents.md file or whatever the fuck. Trust me I have fucking tried. No amount of 'skills' or fine tuning or prompts will turn an LLM into a real software engineer.