Skip to content

Commit a08942a

Browse files
authored
Update solid.md
1 parent 4ebd65e commit a08942a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

book/solid.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
SOLID
22
=====
33

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.
55

66
These stand for:
77

@@ -19,8 +19,7 @@ Gather together the things that change for the same reasons. Separate those thin
1919

2020
## Open-closed
2121

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 (
2423
protected and public methods).
2524

2625
## Liskov substitution
@@ -36,7 +35,7 @@ For more see [a good set of answers at StackOverflow](http://stackoverflow.com/q
3635
## Interface segregation
3736

3837
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.
4039

4140
## Dependency inversion
4241

0 commit comments

Comments
 (0)