One of the most impressive abilities of LLMs is code generation. It can boost the efficiency and speed of coding, help bring ideas to life quickly, and improve overall code quality far more easily than before.
However, many have pointed out—and I’ve personally experienced—that unguided code generation might look appealing initially, but over time, the real cost could actually become even higher than without AI. Common issues include:
- Bad software architecture
- Monolithic structures that are hard to maintain
- Code duplication across the project
- Code that’s hard to read or understand (sometimes overcomplicated)
- No clear architecture (more patchwork than well-structured software)
- Lack of input validation and other vulnerabilities
Even more risks may arise with code generation. However, many can be avoided by steering clear of common mistakes and building a governance framework, rather than relying solely on the AI code assistant and the base foundation model (fine-tuned models don’t necessarily produce perfect code, either).
Below are some of the most common mistakes made in AI-powered software development (in no particular order).
Note that your specific enterprise policies and industry best practices will differ, so here we’ll focus on the general problems many face with AI and code generation.
I’ve used many code generation tools, but I mostly got stuck with Cline (previously Claude-Dev). It’s a real alternative to commercial products like Copilot and Cursor, and in my opinion, it’s even better because of its agent-like capabilities.
Problem #1: Using an Outdated Model
Sometimes you set the model in the configuration and then forget about it... which leads to working with outdated models that do not include the latest changes in programming languages and frameworks, which can lead to producing code that is as outdated as the model itself.
Always ensure you’re using the latest model.
Here’s an example of the latest OpenRouter configuration:
Top comments (0)