mokacoding

unit and acceptance testing, automation, productivity

Posts tagged "Refactoring"

How to split decision and action logic with the Swift type system

There is a subtle way to overload software components, by making them both take decision and act on them. We can simplify these bloated components by separating the responsibility of taking decisions from the one action on them. This will result in leaner and easier to maintain software, and is made simple by the Swift type system.

How to choose what to refactor

A way to identify the areas of code to refactor with the highest return of investment using the "focusing question" technique.