28 Dec '13, 6pm

Design Patterns in the Wild: Null Object:

Design Patterns in the Wild: Null Object Josh Clayton November 01, 2011 ruby testing I knocked out a pretty decent refactoring of some of the internals of Factory Girl this past weekend. In one of my commits, I used the Null Object pattern to simplify some conditional logic that was spread across a class. What's the Null Object Pattern? The Null Object pattern describes the use of an object to define the concept of "null" behavior. Typically, a null object will implement a similar interface to a similar object but not actually do anything. In the instance of Factory Girl, there's a FactoryGirl::Factory object and a FactoryGirl::NullFactory object; both have a common interface by responding to the instance methods defined_traits , callbacks , attributes , compile , default_strategy , and class_name . These methods are the core of a FactoryGirl::Factory and it's important th...

Full article: http://robots.thoughtbot.com/design-patterns-in-the-wild-...

Tweets

I didn't even know Lol. How did he get that rolex?

twitter.com 31 Dec '13, 3pm

To bring you Twitter, we and our partners use cookies on our and other websites. Cookies help personalize Twitter content,...

"nerdcubed.co.u" -'s design. - Black Hat World ...

blackhatworld.com 29 Dec '13, 9pm

Hello , while I was searching through google for some random stuff I came accross this site : nerdcubed.co.uk .Seems like ...

TrailRunner - Running Wild Alaska

TrailRunner - Running Wild Alaska

trailrunnermag.com 08 Jan '14, 10pm

Endurance racers prepare for a wintery trail ultra across the Last Frontier Jill Homer training in Alaska. Courtesy: Jill ...