~/talk

Clean Code Revisited in the Age of AI

slides:none on file

Argues that many Clean Code rules still matter but some reverse with LLMs: small one-line helpers increase hallucination because token proximity in the attention matrix decays exponentially, while single-purpose functions lower entropy and help generated unit tests. Comments become chain-of-thought scaffolding and commented-out code resurrects ghosts. Recommends a single context principle (keep related declarations together) and using mutation testing plus the CRAP index to force AI to produce covered, lower-complexity code. Warns of the lost in the middle effect for long files.

AI-written summary · about

  1. 0:00Introduction to Clean Code
  2. 1:07Book's legacy and impact
  3. 3:56Why Clean Code still matters today
  4. 4:38Function arguments rules revisited
  5. 6:01Function size and AI attention
  6. 8:26Single responsibility principle
  7. 10:09Comments and AI behavior
  8. 11:52High-quality code vs low-quality code
  9. 13:56Commented out code dangers
  10. 15:21Vertical formatting and LLM focus
  11. 18:08Command query separation
  12. 19:53Law of Demeter for LLMs
  13. 21:59Avoiding duplication with AI
  14. 23:46New rule: Single context principle
  15. 26:54Clean Code book updates
  16. 27:57Practical advice for AI-friendly code
  17. 28:59Testing and AI-generated code
  18. 30:45Forcing AI to write clean code
  19. 32:09Conclusion and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.