3 ms·
I would add - Object Oriented Software Construction (2nd. Bertrand Meyer) I would recommend Eiffel if you want to elevate OO design. The issue with the GOF bo
by haxeny1 11y ago
I would add
- Object Oriented Software Construction (2nd. Bertrand Meyer)
I would recommend Eiffel if you want to elevate OO design. The issue with the GOF book that I have is that there is a slant towards composition as opposed to inheritance. When done right inheritance does result in compact code. Multiple inheritance cannot be avoided (Scala proves this by trying to bring in traits). Repeated inheritance actually helps reduce the code size as one could inherit the same method twice to implement a doubly linked list from a single linked list.
Note: In functional paradigm (Haskell) composition over inheritance makes sense, though in object oriented languages choosing an approach that has a compositional bias can impose some constraints that could be avoided otherwise.
- porker 11y ago> Object Oriented Software Construction (2nd. Bertrand Meyer) That was the first programming book I ever bought! Sad to say it's sat unread on the shelf for 13 years...