Å·±¦ÓéÀÖ

Clean Code: A Handbook of Agile Software Craftsmanship (Robert C. Martin Series)
Rate it:
Kindle Notes & Highlights
14%
Flag icon
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.
15%
Flag icon
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
15%
Flag icon
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.
16%
Flag icon
Master programmers think of systems as stories to be told rather than programs to be written.
16%
Flag icon
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.