POODR Book Club Chapter 7

Hosted By
Jim R.

Details
In this chapter, Metz continues the discussion of sharing behavior using Ruby modules. Similar to classical inheritance, modules inject their methods into an object’s lookup path to extend behavior. Modules also serve as a tidy abstraction of roles and duck types.
Below are a few questions to get our conversation started around Chapter 7. Feel free to answer any one of these and reply with a helpful comment on someone else’s post as well.
- How would you describe the relationship between roles and modules based on the chapter's explanation?
- In what situations would you choose to use a module instead of inheritance for sharing behavior?
- Any other thoughts or questions you have on this chapter?

Mad-Railers
See more events
Online event
This event has passed
POODR Book Club Chapter 7