3 ms·
He said "[...] it is encouraged to think of it that way rather than calling functions." This is what Sandi Metz talks about when she speaks about message/respo
by cheshire_cat 10y ago
He said "[...] it is encouraged to think of it that way rather than calling functions."
This is what Sandi Metz talks about when she speaks about message/responsibility centric design vs data-centric design in OOP. The conceptual difference is said to lead to different designs. You don't start out your design by thinking about what data you hold but you think about which responsibilities/roles you have and create objects around those by thinking how they might talk to each other to reach their goals.
(I'm currently reading POODR by Sandi Metz, so this is still new to me, if I got anything wrong there then please feel free to correct me)
https://www.practicingruby.com/articles/responsibility-centric-vs-data-centric-design https://www.practicingruby.com/articles/responsibility-centr...
- hackits 10y agoAnother good book if you're interested in actors/behaviour decomposition instead of data decomposition is: Object Design: Roles, Responsibilities, and Collaborations and also https://www.amazon.com/Object-Thinking-Developer-Reference-David/dp/0735619654 https://www.amazon.com/Object-Thinking-Developer-Reference-D... Also David West Presentation https://www.youtube.com/watch?v=RdE-d_EhzmA https://www.youtube.com/watch?v=RdE-d_EhzmA