Clean Code - Uncle Bob / Lesson 1
UnityCoinYouTube ↗
Caption notes
Robert C. Martin uses code that adds setup and teardown steps to a test page to explain why he values the maintainer’s reading experience. He likens refactoring to writing a news story: let the reader see what the code does first, with details available when needed. He also gives his own test for whether a function does one thing. If he can still extract another meaningful function, he keeps splitting the code and uses names to explain what the parts do.
Archived captions (transcription method unspecified) ↗Original passages · 2
allows the reader to escape earlya function does one thing if you cannot meaningfully extract another function from it