SLAP — Single Level of Abstraction Principle

By | March 1, 2020

Single Level of Abstraction Principle

Each code line in the method should have the same level of abstraction. We should not mix high-level with low-level details in one method.

Bestseller dnia w księgarni Złote Myśli

Advantages

  • More readability.
  • Easier to understand

Disadvantages

  • More classes and method.

All posts from mini project: Learn SOLID and OOP principles:

Sources

Main image

Materials

Leave a Reply

Your email address will not be published. Required fields are marked *