5 Improving the design of actions


In this chapter

  • Discover how eliminating implicit inputs and outputs can enhance reusability.
  • Learn to improve the design of our code by pulling things apart.

In the last chapter, we learned how eliminating all implicit inputs and outputs can convert an action into a calculation. However, you can’t eliminate all of them. You need some actions. In this chapter, we see how even eliminating some of the inputs and outputs can improve the design of actions.

Aligning design with business requirements

Choosing a better level of abstraction that matches usage

The refactoring from actions to calculations that we did ...

Get Grokking Simplicity now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.