This post originated from an RSS feed registered with Ruby Buzz
by Max Zone.
Original Post: What is two plus two?
Feed Title: dzone.com: ruby
Feed URL: http://feeds.dzone.com/dzone/ruby
Feed Description: dzone.com: fresh ruby and rails links for developers
Well, that depends on what language you're using! It's fun to say something is "as simple as 2 + 2", but as a developer I can tell you that 2 + 2 isn't as straightforward as you might think. Here's a breakdown of how a seemingly trivial computation can differ on a language-by-language basis.