Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

    Lack of reuse
    AI-generated code sometimes lacks modularity, making it difficult to apply the same approach elsewhere in the application.

    Example: Not realising that a UI component is already implemented elsewhere, and therefore creating duplicate code.

    Example: Use of inline CSS styles instead of CSS classes and variables
This is the big one I hit for sure. I think it's a problem with agentic RAG, where it only knows the files it's looked in and not the overall structure or where to look for things, so it just recreates them.


yep. noticed this too. but I think this is due to short context LLMs have. now my tools, mostly browser LLMs copy-paste code, are analysing small sub-problem at time. once LLMs will see whole repository + history of that repository, likely they will write abstractions that can be reused




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: