Starting on the formal journey into Ruby!
I’ll be starting with Ruby Cookbook today (it’s evening right now..). I will be discussing Ruby code, Constructs, Positives and Negatives as I encounter them. So expect lot of Ruby (and may be rails)...
View ArticleBuilding Strings in Ruby
If efficiency is important to you, don’t build a new string when you can append items onto an existing string. Constructs like str << ‘a’ + ‘b’ or str << “#{var1} #{var2}” create new...
View ArticleRuby require error in loading gems
Long time that I coded in Ruby so thought lets replenish the love. I started reading Graph APIs from Facebook to get some idea of what capabilities they provide with. Graph APIs are immensely powerful...
View ArticleModifying built-in classes
Inheritance is a powerful idea in object oriented programming. This lets you add new enhancements to existing classes. Well, not exactly. You have to create a new data type derived from the existing...
View ArticleRubular
Writing correct Regular Expressions have always been a tough game for me. Just came across this nice site called Rubular where you can make and test your regular expressions (and may be with practice...
View Article