In the first part, I tried to cover the basics of code blocks. Now, we’re going to talk about : Code blocks and scope A code block is a closure Oh no… not another definition of a closure? Yes, but I promise I will be quick. First, to understand what a closure is we have […]
First of all, those who read this in a feed reader should click on the link to see the new face lift that happened to this blog. Personally, I love it. I’d like to hear your comments on that. A lot of people asked me : “What is a Fleebie?” or “Who is Fleebie?”. I […]
A while back, I wrote an introduction on code blocks. So if you’re not sure what they are, you should read it first. Something I find interesting with code blocks is that they create the illusion of being executed at the moment they are written. It’s easy to get fooled, because when you look at […]
Understanding the “chain” In my last article, I explained where the various elements of an object were located. Now it’s time to understand what happens at run time when you write the following : obj.my_instance_method Ahh… A method call! Ruby knows what to do in this situation. Remember that inside “obj” resides a reference to […]
A few days ago, Peter Cooper of rubyinside.com gave me an interview about Ruby Fleebie as well as the last project I worked on, Ecstatik! All in all, it was a great day for me. I hope that those who discovered Ruby Fleebie after reading the interview will enjoy the articles and will stay with […]
So far I’ve talked about how everything was an object in ruby, even classes. I also wrote an article explaining what were the most important steps to follow when trying to understand ruby classes and objects. This wasn’t a bad idea, but it was a rather simplistic view. I think we’re ready to dive into […]
Recently, Dan and I have been busy working on a rails application. We put it online a few days ago and now we’re slowly getting at the publicizing phase.
It’s never good when a programmer stare at your code for 2-3 minutes trying to understand some mad one-liners.
It’s not a secret, putting business logic inside a view is a bad idea. Views should only contain HTML and presentation logic.
Ruby is known to be slow, even compared to other interpreted languages like python. It’s sad, but it’s true. Does it bother you?