Re^2: Which is best book to start learning Object Oriented Perl?
by davido (Cardinal) on Apr 26, 2018 at 23:43 UTC
|
Well, that depends. The concepts discussed are useful, even if only to understand there's this big world of possibility out there, and available if needed. I still find myself using pre-Moose style object oriented code at work. But even in a Moose world, one can become more flexible in how they think of their design if they have more understanding of the lower level concepts. ...and more understanding of the higher level concepts. I guess in the end, there's no end to improving familiarity with useful concepts. :)
| [reply] |
|
While I agree with both your posts, I would add that chromatic's book explains how to do it the modern way (Moose), but does not say very much about object orientation in general. Damian's book, while somewhat obsolete in terms of the technology used, says much more about object orientation in general, its principles and why. In that sense, Damian's book comes closer to teaching object orientation.
| [reply] |
|
chromatic's book explains how to do it the modern way (Moose), but does not say very much about object orientation in general.
Sure, that's not the point of the chapter. Even so, I like to think that principles such as "favor composition over inheritance", "take advantage of encapsulation", and "define your interfaces well" come across clearly. Then there's the Advanced Perl OO section which goes into LSP, DRY, and even immutability (which is present, though not made explicit, in almost all of the examples in the code and the rest of the book).
I thought about adding SOLID or at least Open-Closed, but couldn't find the right way to work it in in further detail.
| [reply] |
|
|
|
You are absolutely correct. I really tried to follow-up in my post by adding other resources that were more about the theory and application of Object Oriented design. But unfortunately I couldn't come up with just one or two comprehensive resources. Even as I try now to list out a few that stand out for me I realize that there are simply too many, and although the Design Patterns gang of four book stands out, it is not an intro, or even a comprehensive explanation of OO. Someone newer to the concepts probably has a better recollection of the thing that really flicked the light bulb on.
| [reply] |
|
| [reply] |
|
| [reply] |
|
| [reply] |
|