Skip to content

Commit fa5f27d

Browse files
authored
Fix semantic mistake
The original phrase "As stated in the Gang of Four..." is semantically incorrect. - The "Gang of Four" is a group of authors: Erich Gamma, Richard Helm, Ralph Johnson and John Vlissides. - They wrote a famous book: Design Patterns. - Here, Ryan McDermott is referring to the software-design principle "you should prefer composition over inheritance." - This principle was stated in the book, Design Patterns. - It was not stated in the Gang of Four -- the authors themselves.
1 parent 11b7271 commit fa5f27d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1579,7 +1579,7 @@ let car = new Car()
15791579
**[⬆ back to top](#table-of-contents)**
15801580

15811581
### Prefer composition over inheritance
1582-
As stated famously in the [Gang of Four](https://en.wikipedia.org/wiki/Design_Patterns),
1582+
As stated famously in [*Design Patterns*](https://en.wikipedia.org/wiki/Design_Patterns) by the Gang of Four,
15831583
you should prefer composition over inheritance where you can. There are lots of
15841584
good reasons to use inheritance and lots of good reasons to use composition.
15851585
The main point for this maxim is that if your mind instinctively goes for

0 commit comments

Comments
 (0)