July 2nd, 2008 | 3 Comments »
Other blogs about Ruby or Rails have already touched some of the tips I’m going to show, but it never hurts to remind you these small recipes aimed at Ruby novices:
Daca esti nou pe aici, nu uita sa te abonezi la feedul meu RSS . Iti multumesc pentru vizita!
in Rails, Ruby, Tips and Tricks |
May 29th, 2008 | 1 Comment »
To my shame as a rubyist, it was only a couple of hours ago that I found out, while reading Ruby Inside about mod_rails and the wonders it does for the Rails community.
in English, Rails, Tutorials |
January 16th, 2008 | 1 Comment »
Got myself a sleepless night recently and killed some time reading the Rubyisms in Rails book. The chapter about Iterators was particularly pleasant, reminding me the beauty of Ruby’s Enumerable class - feels so Lisp-ish and Scheme-ish to write stuff like col.select{..}.collect{..}.join(”, “)
For the curious, here’s a cool excerpt from the book, with Enumerable’s most […]
in Rails, Ruby |
November 7th, 2007 | 1 Comment »
Last time I discussed Ruby and metaprogramming, I was trying to stay DRY (Don’t Repeat Yourself) while coding some very similar-looking methods. The solution, then was to use class_eval to dynamically add methods into the current class, the way attr_accessor and it’s peers already do.
Today I was having a similar, yet more difficult problem: the […]
in Rails, Ruby, Tips and Tricks |
September 8th, 2007 | 10 Comments »
Ruby is so powerful it scares me. I’m far from even grasping how powerful it is. Whenever I discover something cool to do with it, I have the urge to tell it to the world.
First, here’s the context:
I’m currently working my way through building a Rails browser game in the style of these ones. For […]
in Ruby, Tips and Tricks |
August 19th, 2007 | No Comments »
Here’s the quick story: I was hoping to win the Romanian lottery (6 winning numbers out of 49). On the website, they were having the list of the winning numbers from 1998 to now. So I copy-pasted them all into a text file, and wrote a quick and dirty script to count their appearances and […]
in Ruby, Tutorials |
April 4th, 2007 | 20 Comments »
Challenged by a commenter on my website, I spent the last half an hour coding a tiny application that updates your Yahoo Messenger status with your latest Twitter status. It’s Windows only (I’m a Mac user myself, and twitterific does a good job for it).
The reason why it’s a Ruby script and not a self […]
in Ruby |
April 3rd, 2007 | No Comments »
You can’t call yourself a programmer if you never used Grep (or diff, or wget, or regular expressions for the matter). I couldn’t call myself a programmer till the fourth year of college, btw..
Still, grep has a pretty big manual page, and being a casual grep user I never see the need to memorize […]
in Ruby, Tutorials |