2 ms·
> LLMs can tell you what the code does but not why the developer chose to do it that way. Do LLMs not take comments into consideration? (Serious question - I'm
by stronglikedan 7mo ago
> LLMs can tell you what the code does but not why the developer chose to do it that way.
Do LLMs not take comments into consideration? (Serious question - I'm just getting into this stuff)
- dr_hooo 7mo agoThey do (it's just text), if they are there...
- bigmadshoe 7mo agoThey do. Think of it like a very intelligent but somewhat unreliable engineer you can hire to look at your code. They have no context about the codebase beyond what’s written in the source code, or any docs you give them. What I meant was the docs might provide explanations about the problems the codebase solves, design decisions, the abstractions chosen, etc that wouldn’t live in a particular source file. Any discussion someone has with an LLM about the codebase will lack this context in the explanations given if docs don’t exist.