Chapter 6Good Code
Good software code doesn’t just compile; it communicates. It talks to you as a developer here and now and to future you, who will be maintaining this code. It is comprehensible to your team and to anyone who will look at it externally.
It always chooses reliable and testable over clever, and it prefers to take an extra step or ten if needed to make its intent and outcome clear.
It’s code that thinks about scale, about living in a forest as well as being a single tree, and about being run a million times at once as well as once.
It’s code that believes in being broken down into sensible units instead of massive single implementations.
It’s code that exposes carefully considered and easily consumed APIs without sharing unnecessary ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access