too many other parts of the system. (Rigidity - Starr) 2. When you make a change, unexpected parts of the system break. (Fragility - Zerbrechlich) 3. It is hard to reuse in another application because it cannot be disentangled from the current application. (Immobility - Unbeweglich) Quelle: http://www.objectmentor.com/resources/articles/dip.pdf
rules. They are not laws. They are not perfect truths. They are statements on the order of “An apple a day keeps the doctor away.” This is a good principle, it is good advice, but it’s not a pure truth, nor is it a rule. “ ” Quelle: https://sites.google.com/site/unclebobconsultingllc/getting-a-solid-start
Segregation Principle ependency Inversion Principle S O L I D Eine Klasse sollte nur eine Verantwortlichkeit haben. Quelle: http://www.clean-code-developer.de/
Segregation Principle ependency Inversion Principle S O L I D Eine Klasse sollte offen für Erweiterungen, jedoch geschlossen für Modifikationen sein. Quelle: http://www.clean-code-developer.de/
Segregation Principle ependency Inversion Principle S O L I D Abgeleitete Klassen sollten sich so verhalten wie es von ihren Basistypen erwartet wird. Quelle: http://www.clean-code-developer.de/
Segregation Principle ependency Inversion Principle S O L I D Interfaces sollten nur die Funktionalität wiederspiegeln die ihre Klienten erwarten. Quelle: http://www.clean-code-developer.de/
Segregation Principle ependency Inversion Principle S O L I D High-Level Klassen sollen nicht von Low-Level Klassen abhängig sein, sondern beide von Abstraktionen. Abstraktionen sollen nicht von Details abhängig sein, sondern Details von Abstraktionen. Quelle: Wikipedia.org
base() {} public DbSet<StudentEntity> Students { get; set; } } public class IStudentContext { DbSet<StudentEntity> Students { get; set; } } Creation Inversion
base() {} public DbSet<StudentEntity> Students { get; set; } } public class IStudentContext { DbSet<StudentEntity> Students { get; set; } } Interface Inversion
much time worrying about efficiency in the wrong places and at the wrong times; premature optimization is the root of all evil (or at least most of it) in programming.“ Quelle: https://en.wikiquote.org/wiki/Donald_Knuth Donald Knuth