Cross-language Object-Oriented Mechanics
- Mechanics
- How it works in Perl
- Target audience
- Don't understand OO
- New to Perl
- Engineers, not Scientists
- Ignoring some data
- Basics
- State: remembered information
- Example with pure functions and mulitple args and returns
- Provide the state to the constructor, and mutating that
- Perl data structures
- State: remembered information
- OO stuff
- Used the packages example
- Example with Python
- Show two different intefaces to get to the hash/dict implementint class/package
- Objects and Object Orientiation
- The Lingo
- Pseudo code for Perl and JavaScript
- Object.setProttypeOf( obj, class )
- Python:
- Perl shows
bless
- Should not use
bless
outside classes - Scope resolution operation, method invocation operator
- Inheritance
- Use some approach for creating object to create superclases
- Runtime typing
- Moose and Moo
- Roles are composition, not inheritance
- Declarative code is has problems, but maintablility is not one
Presentation is available or from Evan's git repo.
We had 13 people attending this month. As always, we'd like to thank Hostgator, LLC for providing the meeting space and food for the group.