29 May '12, 10am

Builder Objects - { | one, step, back

Sometimes you get good ideas from other languages. I’ve had fun with this little package over the past few days. The Groovy language was the big buzz at the No Fluff, Just Stuff conference (see NoFluff2004 ) a few weeks ago. So I’ve been looking at some groovy stuff recently (and I did a Groovy presentation at our local Java group), and I stumbled across the builder library that comes with Groovy. "What a cool idea" I thought and saw that it would be easy to implement in Ruby. So here is the result. The basic idea is that you create a builder object and then send it messages. It responds to the messages by building up a data structure based on those messages. Ack, it’s easy to see it in action than to describe it. For example, the following code … builder = Builder::XmlMarkup.new("", 2) puts builder.person { name("jim") phone("555-1234", "local"=>"yes") address("Cincinnati...

Full article: http://onestepback.org/index.cgi/Tech/Ruby/BuilderObjects...

Tweets

Smart Pebble Robots Will Let You Duplicate Obje...

spectrum.ieee.org 28 May '12, 2pm

Imagine that you could toss an object such as a wrench into a container filled with tiny robots and, within seconds, the r...

I'll be back!

brainspl.at 01 Jun '12, 11am

New blog from our friend Pat Gaylor

New blog from our friend Pat Gaylor

greenbuildermag.com 31 May '12, 8pm

The real answer is that there is no exact answer. Green products mean different things to different people. And not all pr...

A Red-Knot Celebrity Is Back in Town: To the excitement of bird conservationists, one of the oldest known and lo...

A Red-Knot Celebrity Is Back in Town: To the ex...

green.blogs.nytimes.com 29 May '12, 8pm

Patricia M. González B95, a red knot, is thought to be at least 19 years old and to have logged more than 350,000 miles. O...

Singapore’s biggest beer festival is back with even more beers, bands and laughter!

Singapore’s biggest beer festival is back with ...

makansutra.com 29 May '12, 9am

The fourth installation of the Beerfest Asia will be the biggest ever Beerfest Asia returns for its fourth year and will o...

We hit our first one million electric kilometer...

betterplace.com 30 May '12, 7am

Better Place Logs One Million Electric Kilometers May 30, 2012 Continues to Invest in the Network as May Deliveries in Isr...

#SEO #Q&A: SEO Chat Forums - What is the future...

forums.seochat.com 27 May '12, 7pm

Quote: Originally Posted by eaglehdr What should an inexperienced SEO (who had been working as a link builder for a year f...

French luxury brands fight back against fakes

French luxury brands fight back against fakes

luxuo.com 30 May '12, 6pm

French luxury brands from Chanel to Vuitton on Wednesday launch a campaign with several European countries to fight back a...

'We will win back Hougang in a future election'...

todayonline.com 27 May '12, 2am

"I called a by-election in Hougang constituency because the Workers' Party (WP) expelled the previous Member of Parliament...

Five Questions A Good Link Builder Should Be Able To Answer

Five Questions A Good Link Builder Should Be Ab...

searchenginewatch.com 23 May '12, 1pm

Now that we've seen entire link building related companies vanish due to Pandas and Penguins and other search quality impr...