r/AskProgramming • • 48m ago

Problems with AI coding agents...

Hello everyone, I have a question. I am a developer with 5 years of experience, and I’ve been using Claude Code for about a year now. While AI models have improved significantly, I still encounter many issues. For instance, the AI ​​often creates multiple nearly identical functions—instead of defining a single function that accepts parameters, it might generate three separate ones. Furthermore, function names often fail to accurately describe what the functions actually do. There are many such problems, and I simply don’t trust the AI ​​to work in an "agentic" mode—writing code on its own—without me constantly monitoring it. Ultimately, I find this process quite exhausting; it feels like I spend more time configuring the AI—setting up the coding rules it should follow—than actually writing code myself. I’m not sure if this is just my personal experience or a more widespread sentiment. Given that Anthropic’s models are capable of solving complex mathematical problems (even if those are specialized, lab-based versions rather than the ones we use), I find my own results rather underwhelming compared to what I see online—even though I’ve gone to great lengths to configure the environment, such as defining business logic, establishing coding standards, and providing documentation. What are your thoughts on this? Thanks!

3 Upvotes

21 comments sorted by

View all comments

3

u/Unusual_Age_1618 38m ago

Depending on the type of code it executes it might be preferable to have different simpler functions over a single complex one. One day you will have to change something on the function depending on one of the params. Next day another change because of another param. And you will end up with a big complex function that grew too much.

1

u/PianoConcertoNo2 34m ago

This is my thinking too.

Having a single function perform differently based on a parameter is a code smell, and Claude is right to push back.