You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: book/solid.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
SOLID
2
2
=====
3
3
4
-
SOLID is a set of principles that you should follow if you want to get pure object oriented code which is easy to test and extend.
4
+
SOLID is a set of principles that you should follow if you want to get code which is not fragile e.g. easy to change.
5
5
6
6
These stand for:
7
7
@@ -19,8 +19,7 @@ Gather together the things that change for the same reasons. Separate those thin
19
19
20
20
## Open-closed
21
21
22
-
A class or module (a set of related classes) should hide its implementation details (i.e. how exactly things are done)
23
-
but have a well defined interface that both allows its usage by other classes (public methods) and extension via inheritance (
22
+
A class or module (a set of related classes) should hide its implementation details (i.e. how exactly things are done) but have a well defined interface that both allows its usage by other classes (public methods) and extension via inheritance (
24
23
protected and public methods).
25
24
26
25
## Liskov substitution
@@ -36,7 +35,7 @@ For more see [a good set of answers at StackOverflow](http://stackoverflow.com/q
36
35
## Interface segregation
37
36
38
37
The principle points that an interface should not define more functionality that is actually used at the same time. It is like
39
-
single responsibiltiy but for interfaces. In other words: if an interface does too much, break it into multiple more focused interfaces.
38
+
single responsibiltiy but for interfaces. In other words: if an interface does differnt things, break it into multiple more focused interfaces.
0 commit comments