01 Aug '12, 1pm

A new design pattern explained in Ruby:

August 1, 2012 Tagged: object algebra academic wankery expression problem ruby object-oriented programming strategy pattern abstract factory Comments (View) Expressing the problem Object-oriented languages are good at adding new data; functional languages are good at adding new behavior. Can we find a happy medium? The answer: Sorta. First I’ll explain what I’m talking about, with examples. At the bottom of this article I’ll talk about the lambda calculus. Oh and before that I’ll talk about something relevant to normal Ruby programming, in case that’s something you’re still into. The problem But first let’s start even simpler: we are going to represent addition in Ruby. class Literal def initialize(n) @n = n end def evaluate @n end end class Addition def initialize(a, b) @a = a @b = b end def evaluate @a.evaluate + @b.evaluate end end No magic going on here. We can evaluat...

Full article: http://robots.thoughtbot.com/post/28483242467/expressing-...

Tweets

Check out: "Reclaimed Design - GreenBuilder"(

Check out: "Reclaimed Design - GreenBuilder"(

greenbuildermag.com 01 Aug '12, 11am

When the owners of this 1,005 square foot weekend lake cabin explained their dream to builder Don Ferrier, they told him t...

Time to streamline thermal management design an...

eetimes.com 01 Aug '12, 2pm

It may be hard to believe in today’s multi-tasked business environment, but there appears to be a “disconnect” between the...

Ruby Constructs: Class, Module and Mixin

rubyflow.com 31 Jul '12, 10pm

Ruby Constructs: Class, Module and Mixin Posted by mattetti on July 31, 2012 — 0 comments I wrote an overview of some of t...

The Social Media Phenomenon Explained

searchenginejournal.com 29 Jul '12, 9pm

Over the last few years, social media has reached its noodly tentacles into the business world and taken hold. It’s moved ...

The New iPhone Connector Problem: Cars!

The New iPhone Connector Problem: Cars!

vernonchan.com 29 Jul '12, 4am

of the 19-pin connectors surfaced about a week or so ago. According to the rumour, this change was done so that the headph...

Ruby with MongoDB for Web Development

rubyflow.com 30 Jul '12, 6am

Ruby with MongoDB for Web Development Posted by IndianGuru on July 30, 2012 — 0 comments The article "Ruby with MongoDB fo...

Information Dissemination: Is India Creating a ...

Taking a cue from its first indigenous aircraft carrier programme, India is now envisaging construction of its largest war...

The differences between dup and clone in Ruby

rubyflow.com 30 Jul '12, 12am

The differences between dup and clone in Ruby Posted by mattetti on July 29, 2012 — 0 comments I just wrote a quick explan...

“@rethinkmodular: Greenbuilding and #environmen...

’s project case studies provide in-depth, data-rich reports on sustainable design and green-building performance. With our...

FPGA Design: - Introducing seven new instructor...

xilinx.com 02 Aug '12, 4pm

This two-day course introduces you to software design and development for the Xilinx Zynq™ Extensible Processing Platform ...

Basically, this isn't going to be my problem wh...

electronicdesign.com 05 Aug '12, 9am

Over the past couple of years, I’ve written annual columns about the future of technology. This year, I’ve decided to pull...