Welcome in this second post of this series. Just before I list the questions of this one, I want to mention 2 things: You can follow StackOverflow tagged Ruby questions on twitter using the user: sof_ruby Some ppl feel shy to ask or even to answer, my (little) experience in life taught me that If […]

I have participated heavily during the last 2 weeks in answering Ruby tagged questions on stackoverflow. That took place mainly after Ryan Bates tweet wishing to see more Ruby developers on stackoverflow. Since then I have enjoyed reading various kinds of questions that range in level from basic to professional ones and which cover various […]

I have almost finished working on a web app that will be used inside intranets by students willing to do their English language exams interactively. I have reached the point where I want the app to have as much as possible the look of a desktop one. So I started thinking that may be with […]

This is my first article in http://railsmagazine.com, it was published in issue 3, so basically I’m just republishing it here again. Observer and singleton are two common design patterns that a programmer should be familiar with, however what made me write about them, is that both are there out of the box for you to […]

Ruby 1.9 Encoding Fun

 Jul, 13 - 2009   4 comments   Ruby

Ruby 1.9 has a great support for encoding, this post covers that for a big deal, however with this support out of the box, things like this becomes easier, just note the source code is not limited to few types of encoding just like Ruby 1.8.

Please note that previous example could work also […]

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 […]

Delegation in Ruby

 Apr, 26 - 2009   7 comments   GrailsRuby

This is my first article in http://railsmagazine.com, it was published in issue 1, so basically I’m just republishing it here again. “Separate changeable parts from others that remain the same” and “composition is preferred to inheritance” are 2 common design principles when you start designing in OOP world. However and while the first seems to […]