[LRUG] A question on DRYness on testing methods that get / set state

Tom Stuart tom at therye.org
Wed Nov 23 07:34:29 PST 2011


On 23 Nov 2011, at 15:08, Sam Livingston-Gray wrote:

> On Nov 23, 2011, at 12:04 AM, Tom Stuart <tom at therye.org> wrote:
>> This is the paragraph where I restrain myself from launching into a diatribe about how we should always think thrice before using attr_* because of implications for encapsulation.
>> 
>> Cheers,
>> 
>> Other Tom
> 
> Search for James Ladd's "east-facing code" -- i did a small learning project using the approach and it's quite the eye-opener. Haven't been able to apply it to day job, though. For more on the topic see also @addcasts ep ...#4, I think?
> 
> --
> (Sent from phone; please excuse brevity.)

Thanks for the tip, Sam. This is exactly what I'm driving at. The article in question is available at http://jamesladdcode.com/?p=12, and I heartily recommend it.

Be warned: it contains Java. Get over it. ;)

Cheers,

Other Tom

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20111123/80aa88d8/attachment.html>


More information about the Chat mailing list