23 Jul '12, 6am

Design Patterns in the Wild: Null Object — giant robots smashing into other giant robots:

November 1, 2011 Tagged: ruby design patterns factory girl null object pattern Comments (View) Design Patterns in the Wild: Null Object 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 c...

Full article: http://robots.thoughtbot.com/post/12179019201/design-patt...

Tweets

Object#returning - Replacement #rails

apidock.com 23 Jul '12, 7am

to the block. This simplifies the process of constructing an object, performing work on the object, and then returning the...

Awesome: Object#returning #rails

apidock.com 23 Jul '12, 8am

to the block. This simplifies the process of constructing an object, performing work on the object, and then returning the...

A questionable use of Null Object pattern; a ty...

robots.thoughtbot.com 18 Jul '12, 2pm

April 11, 2012 Tagged: patterns refactoring null object Comments (View) Rails Refactoring Example: Introduce Null Object Y...

Slideshow: Rescue Robots Save the Day

Slideshow: Rescue Robots Save the Day

designnews.com 23 Jul '12, 10am

A different way of making rescue robots friendlier is designing them to look more like people, and making them big and str...

Novo Design 2012! #akitaonrails via @AkitaOnRails

Novo Design 2012! #akitaonrails via @AkitaOnRails

akitaonrails.com 22 Jul '12, 9am

Desde o dia 15 de julho decidi que já tinha passado da hora de mudar um pouco meu blog. Sinceramente faz tanto tempo que c...

Wild Shores of Singapore: How are Sentosa's seagrasses doing? by @wildsingapore (something for @Sentosa_Island)

Wild Shores of Singapore: How are Sentosa's sea...

wildshores.blogspot.com 23 Jul '12, 12am

Well before dawn, a tiny team headed out to find out how the seagrass meadows at Sentosa's natural shores are doing. How n...

Downloading podcasts from ThoughtBot. A talk ab...

robots.thoughtbot.com 20 Jul '12, 6am

Ben and Josh discuss FactoryGirl: using it, its development progress, and features. What it’s like to run an open source p...

Meet RubyLearning's Blog Authors and Rubyists *...

rubylearning.com 04 Aug '12, 2am

How Does One Use Design Patterns In Ruby? This guest post is by Chee Yeo , a 32-year-old Ruby Rails sometimes IPhone progr...

[Event] August 03rd, 2012 - Psychology of Promo...

whatshappening.sg 30 Jul '12, 4pm

You are about to learn strategies that the general public will never know about on – How to get your boss to recognise you...

Is Go an object oriented language?

rubyflow.com 25 Jul '12, 12pm

Is Go an object oriented language? Posted by nu7hatch on July 25, 2012 — 0 comments Hi folks! For those of you interested ...