News for hackers. Stuff that matters.
Re:Using Claude Code to modernize a forgotten Linux kernel d... by jlei523 on Monday September 08, 2025 @05:00AM (#45166074)

  Also I wanted to add that LLMs (at least free ones) are pretty dumb sometimes and do not notice obvious thing. For example, when writing tests they generate lot of duplicated code and do not move it into a helper function, or do not combine tests using parametrization. I have to do it manually every time.
Do you prompt it to reduce duplicated code?
Re:Using Claude Code to modernize a forgotten Linux kernel d... by codedokode on Monday September 08, 2025 @09:20AM (#45167916)
I can prompt anything but I would prefer it not to make obvious mistakes from the start.
Re:Using Claude Code to modernize a forgotten Linux kernel d... by jlei523 on Monday September 08, 2025 @09:31AM (#45168033)
"Use DRY coding". 3 words can solve this problem. Maybe put it in the parent prompt.