Re:Object-oriented Programming with ANSI-C (1993) [pdf]
by rramadass on Thursday June 22, 2023 @09:27AM
(#36431845)
You might find Program Development in Java: Abstraction, Specification, and Object-Oriented Design by Barbara Liskov with John Guttag interesting.
Re:Object-oriented Programming with ANSI-C (1993) [pdf]
by DarkNova6 on Thursday June 22, 2023 @11:59AM
(#36434203)
I am always a sucker for good book recommendations. Thank you!
Re:Object-oriented Programming with ANSI-C (1993) [pdf]
by rramadass on Thursday June 22, 2023 @12:57PM
(#36435191)
The book is by the great Barbara Liskov herself (https://en.wikipedia.org/wiki/Barbara_Liskov) the pioneer of Abstract Data Types, Subtyping, OOD etc. It is basically a rewrite of their classic text Abstraction and Specification in Program Development (1986) with the example language now being Java. It is not a popular cookbook but a fundamental programming concepts book which needs serious study. I highly recommend it.
At least for business applications, you want to keep your behaviour and state separate. And people following OOP dogmatically will (ab)use encapsulation for use-cases where your data should be transparent.
Contrast this to interfaces, which are essentially composable specifications on code-level (and I absolutely love that Java uses interfaces to describe anonymous classes due to the power it gives you for documentation and specification).