On Thu, Feb 25, 2016 at 8:21 AM, Graham Ashton <[email protected]> wrote:

> On Thu, 25 Feb 2016, at 07:26 AM, Peter Morris wrote:
> > This discussion started when the need for a 'guard if' was removed
> because
> > we ensured that the object we return behaves the same in all experienced
> > cases. Injecting new differences to the interface would seem to be moving
> > away from that ideal.
>
> It sounds as though what you’re saying is that you just don’t like duck
> typing. Is that a reasonable interpretation, or am I misunderstanding?
>
> For clarity, here’s how wikipedia describe duck typing:
>
> "In duck typing, a programmer is only concerned with ensuring that objects
> behave as demanded of them in a given context, rather than ensuring that
> they are of a specific class.”
>
> That’s how I think of it (“in a given context” being the key bit).
>


So in fact, #save erroring is what you want? MissingBasket has been taken
to the wrong context?

Very comfortable with that m'self.

Subclassing is when you want the entire kitchen sink, rather than just one
of the taps.

-- 
Thanks and Regards,

Francis

07764 225 942

"So when targets seem stupid, arbitrary and unfair it's because they *are*.
The only way to improve is to look at the whole system people are operating
with, the basic tools, their training, how much initiative they are
allowed, are you measuring the right things (more about that later) and
then you can improve. But it's the *system* you improve, not the people you
beat into performing even worse." Unicorns in the mist
<https://leanpub.com/unicorns>

CV http://www.pharmarketeer.com/francis.html

Lean Teams Consultancy

-- 
You received this message because you are subscribed to the Google Groups 
"North West Ruby User Group (NWRUG)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send an email to [email protected].
Visit this group at https://groups.google.com/group/nwrug-members.
For more options, visit https://groups.google.com/d/optout.

Reply via email to