Re: [rspec-users] modelling roles and responsibilities

2011-12-09 Thread Nikolay Sturm
* David Chelimsky [2011-12-07]: > Nikolay - just because they're shareable doesn't mean they have to be > shared :) As Pat suggests, you can use them to specify a subset of a > single object's API. That said, one goal of thinking of roles is code > that is easy to extend thanks to polymorphism. You

Re: [rspec-users] modelling roles and responsibilities

2011-12-07 Thread David Chelimsky
On Dec 7, 2011, at 4:07 AM, Pat Maddox wrote: > On Dec 7, 2011, at 1:57 AM, Nikolay Sturm wrote: > >> * David Chelimsky [2011-12-07]: reading "Growing Object-Oriented Software, guided by tests", I came across the distinction of class, role and responsibility. While classes ar

Re: [rspec-users] modelling roles and responsibilities

2011-12-07 Thread Pat Maddox
On Dec 7, 2011, at 1:57 AM, Nikolay Sturm wrote: > * David Chelimsky [2011-12-07]: >>> reading "Growing Object-Oriented Software, guided by tests", I came >>> across the distinction of class, role and responsibility. >>> >>> While classes are classes and responsibilities could be mapped to public

Re: [rspec-users] modelling roles and responsibilities

2011-12-07 Thread Nikolay Sturm
* David Chelimsky [2011-12-07]: > > reading "Growing Object-Oriented Software, guided by tests", I came > > across the distinction of class, role and responsibility. > > > > While classes are classes and responsibilities could be mapped to public > > methods, I wonder how to specify roles in my spe

Re: [rspec-users] modelling roles and responsibilities

2011-12-06 Thread David Chelimsky
On Dec 6, 2011, at 2:30 PM, Nikolay Sturm wrote: > Hi, > > reading "Growing Object-Oriented Software, guided by tests", I came > across the distinction of class, role and responsibility. > > While classes are classes and responsibilities could be mapped to public > methods, I wonder how to speci