Scala is my next choice

 Jul, 12 - 2009   31 comments   Scala

I have done Pascal, C, C++, Java, PHP, Ruby, Groovy and recently Scala, which I found it to be a unique language compared to anything else I have ever worked with. My journey with this language started after the Twitter’s Ruby vs Scala debate. Now and after few months of work with this language I […]

Ruby Currying

 May, 24 - 2009   8 comments   Functional ProgrammingRuby

Update: This post was updated to show the difference between Currying and Partial Functions. Currying is a concept in Functional Programming that’s enabled by Higher-order functions. It’s best described as: the ability to take a function that accepts n parameters and turns it into a composition of n functions each of them take 1 parameter. […]

Ruby is known to support the functional paradigm. This article is going to walk you through the Functional Programming page on WikiPedia, to revise the general concepts of functional programming and to explain how Ruby supports them. According to wikipedia, a functional programming can be described as follows: In computer science, functional programming is a […]