Pierre Arnaud
unread,Dec 22, 2025, 2:49:21 PM (3 days ago) Dec 22Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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