Chapter 4
- Methods with no parameters are called niladic methods.
- Methods with only one parameter are called monadic methods.
- Methods with two parameters are called dyadic methods.
- Methods with three parameters are called triadic methods.
- Methods with more than three parameters are called polyadic methods.
- You should avoid duplicate code. It is not a productive way to program, can make programs unnecessarily large, and has the propensity to proliferate the same exception throughout your codebase.
- Functional programming is a software coding methodology that treats computations as the mathematical evaluation of computations that does not modify state.
- The advantages of functional programming include safe code in multithreaded applications and smaller, more meaningful methods that are easy to read and understand.
- Input and output can be a problem for functional programs as it relies on side-effects. Functional programming does not allow for side-effects...