Quantcast
Channel: What I learned today ? » Ruby
Browsing all 5 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

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 Article



Image may be NSFW.
Clik here to view.

Building 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 Article

Image may be NSFW.
Clik here to view.

Ruby 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 Article

Image may be NSFW.
Clik here to view.

Modifying 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 Article

Image may be NSFW.
Clik here to view.

Rubular

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

Browsing all 5 articles
Browse latest View live




Latest Images