Earlier quoted context omitted.
One thing I think people confuse with context is they see an LLM has say 400k context and think their codebase is way bigger than that, how can it possibly work. Well, do you hold a 10 million line codebase in your head at once? Of course not. You have an intuitive grasp of how the system is built and laid out, and some general names of things, and before you make a change, you might search through the codebase for s…
Yes, I do have a map of the code in my head of any code base I work on. I know where most of the files are of the main code paths and if you describe the symptoms of a bug I can often tell you the method or even the line that's probably causing it if it's a 'hot' path. Isn't that what we mean by 'learning' a codebase? I know my ability is supercharged compared to most devs, but most colleagues have it to some extent…
Ask HN: How are you LLM-coding in an established code base?
61–69 of 69 posts
Re: Ask HN: How are you LLM-coding in an established code base?
#62We use claude code, running it inside a docker container (the project was already set up so that all the dev tools and server setup is in docker, making this easy); the interface between claude code and a developer is effectively the file system. The docker container doesn't have git credentials, so claude code can see git history etc and do local git ops (e.g. git mv) but not actually push anything without a review.…
This is very similar to what I teach clients. However, my process involves more TDD. I use tests as guardrails to keep the AI from doing something silly and to prevent regressions.
Re: Ask HN: How are you LLM-coding in an established code base?
#63Re: Ask HN: How are you LLM-coding in an established code base?
#64Re: Ask HN: How are you LLM-coding in an established code base?
#65Our system is pretty well tested, so this helps a lot.
I know most people at my company use it, and with pretty good results(?)
Personally, I stoped voluntarily reviewing code and caring about quality of code that I’m not responsible for. The AI slop is real and reviewing it is counter-career, instead of pushing product forward and getting praised you spend it fighting with AI. I just accepted that this is how the products looks these days.
Re: Ask HN: How are you LLM-coding in an established code base?
#66Re: Ask HN: How are you LLM-coding in an established code base?
#67Earlier quoted context omitted.
We don't review it, we just say it.
So it's not something you thought about.
Re: Ask HN: How are you LLM-coding in an established code base?
#68Earlier quoted context omitted.
So it's not something you thought about.
We were open to it, but the actual results of LLM code generation are so uniformly poor that until there's substantive evidence of a change on that front, we're not willing to review on a case by case basis.
Re: Ask HN: How are you LLM-coding in an established code base?
#69Earlier quoted context omitted.
We were open to it, but the actual results of LLM code generation are so uniformly poor that until there's substantive evidence of a change on that front, we're not willing to review on a case by case basis.
Ah, I meant review the policy, not the cases.