▲ | Zanfa 5 days ago | ||||||||||||||||||||||||||||||||||
LLMs would also need to use historic commits as context, rather than just the current state of the codebase in isolation. Most codebases I've worked with go through migrations from a legacy pattern A to a newer and better pattern B, used across different parts of the codebase. Rarely can these migrations be done in a single go, so both patterns tend to stick around for a while as old code is revisited. Like the HTTP example, even if LLMs pick up a pattern to follow (which they often don't), it's a coin flip whether they pick the right one or not. | |||||||||||||||||||||||||||||||||||
▲ | dwd 5 days ago | parent | next [-] | ||||||||||||||||||||||||||||||||||
This... I once worked on a massive codebase that had survived multiple acquisitions, renames and mergers over a 20 year period. By the time I left it had finally passed into the hands of a Fortune 500 global company. You would often find code that matched an API call you required that was last updated in the mid-2000s, but there was a good chance that it was not the most recent code for that task, but still existed as it was needed for some bespoke function a single client used. There could also be similar API calls with no documentation, and you had to pick the one that returned the data fields that you wanted. | |||||||||||||||||||||||||||||||||||
▲ | antihero 5 days ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||
You can craft a nice CLAUDE.md saying write code like this bit, avoid writing code like this legacy bit etc. | |||||||||||||||||||||||||||||||||||
▲ | manmal 5 days ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||
Better to tell them exactly how this and that is done, with some examples. | |||||||||||||||||||||||||||||||||||
▲ | croes 5 days ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||
But that kind of awareness is what vibe coder often lack. Many didn’t code (much) before. | |||||||||||||||||||||||||||||||||||
▲ | anshumankmr 5 days ago | parent | prev [-] | ||||||||||||||||||||||||||||||||||
That would assume a commit message is implemented correctly, and isn't like "Updated this file" or "Bugfix" | |||||||||||||||||||||||||||||||||||
|