View on GitHub

guides

Abstraction layers

Background

Having too little abstraction layers cause the whole code to be one-off, not reusable, and not able to adhere to the ‘single responsibility rule’.

Having too many causes unnecessary code to be written - at the same time this code is usually boilerplate, and quick to write - making this a much smaller problem than having too little layers.

Rules

How to test