Side-effect-free functions

Side-effects are in direct opposition to encapsulation, yet all too often they are the most useful tools.

Unlike imperative programming, FP avoids side-effects. This pattern is yet another example of how a well-crafted object-oriented design converges upon a functional style.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset