SOLID

Dependency Inversion Principle

Dependency Inversion Principle is fifth and last principle from SOLID acronym. The definition states two things. First: high-level modules should not depend on low-level modules. Both should depend on abstractions (e.g. interfaces). Second: abstractions should not depend on details. Details (concrete implementations) should depend on abstractions. In real-life this principle can be compare to devices […]

Dependency Inversion Principle Read More »

Open Close Principle

Open Close Principle is second principle from SOLID acronym. Definition: Software entities (classes, modules, functions, etc.) should be open for extension, but closed for modification. That means if program needs to be changed it should be done without modification of existing code. When it is needed to change behavior of our program, it should be

Open Close Principle Read More »

Scroll to Top