More on this book
Community
Kindle Notes & Highlights
Read between
November 16, 2018 - March 9, 2019
The ideal number of arguments for a function is zero (niladic). Next comes one (monadic), followed closely by two (dyadic). Three arguments (triadic) should be avoided where possible. More than three (polyadic) requires very special justification—and then shouldn’t be used anyway.
OO languages because this is intended to act as an output argument. In other words, it would be better for appendFooter to be invoked as
In general output arguments should be avoided. If your function must change the state of something, have it change the state of its owning object.
Master programmers think of systems as stories to be told rather than programs to be written.
But never forget that your real goal is to tell the story of the system, and that the functions you write need to fit cleanly together into a clear and precise language to help you with that telling.