5 ms·
> This was me trying to get better at using the LLM while coding And now you've learned that LLMs can't count lines. Next time, try asking it to "fix the erro
by senko 1y ago
> This was me trying to get better at using the LLM while coding
And now you've learned that LLMs can't count lines. Next time, try asking it to "fix the error in function XYZ" or copy/paste the line in question, and see if you get better results.
> reinforces this idea that the LLM isn't actually thinking at all.
Of course it's not thinking, how could it? It's just a (rather big) equation.
- throwdbaaway 1y agoAs shared by Simon in https://news.ycombinator.com/item?id=44176523 https://news.ycombinator.com/item?id=44176523, a better agent will prepend the line numbers as a workaround, e.g. Claude Code: 54 def dicts_to_table_string( 55 headings: List[str], dicts: List[Dict[str, str]] 56 ) -> List[str]: 57 max_lengths = [len(h) for h in headings] 58 59 # Compute maximum length for each column 60 for d in dicts:
- emp17344 1y agoThat’s not what he’s saying there. There’s a separate tool that adds line numbers before feeding the prompt into the LLM. It’s not the LLM doing it itself.
- throwdbaaway 1y agoI just learnt the `nl -ba` trick from Codex. Claude Code is most likely doing the same.
- IshKebab 1y ago> It's just a (rather big) equation. So are you.
- aitchnyu 1y agoIn Aider, I would add a comment `fix this ai!` and Aider adds the context and updates the code. Wish it were more seamless though.