Section 9.7/9.8

6 views
Skip to first unread message

Pierre Arnaud

unread,
Dec 22, 2025, 2:49:21 PM (3 days ago) Dec 22
to software-d...@googlegroups.com
I would argue that a public method should be deep, and that internal implementation methods should be broken up to make the code as easy as possible to read.

In my experience, I tend to extract small chunks of code (which would require a comment to make their goal explicit) into functions with a self-describing name. And if done right, this makes the code easier to reason about, letting the reader dig into the details gradually, based on their need to understand the underlying details.

Pierre

Envoyé de mon iPhone
Reply all
Reply to author
Forward
0 new messages