Summary of — Clean Code by Robert C Martin — Part 3: Functions

Small!

Blocks and Indenting

Do One Thing

Section within Functions

One level of Abstraction per function

Reading code from Top to Bottom: The Stepdown Rule

Switch Statements

Use descriptive names:

Function arguments

Common Monadic forms

Flag Arguments

Dyadic functions

Triads

Argument Objects

Have no side effects

Output Arguments

Practice try/catch

Conclusion

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store