Quantcast
Channel: lifecoding.com Blog » Ruby
Browsing all 10 articles
Browse latest View live

Objects from Scratch

Look ma, I made my own object! It doesn’t handle state that well, but at least it can be passed messages and told to do things. def make_number(x) lambda do |op, *y| if op == '+' make_number(x + y[0])...

View Article



Getting to Done

Tonight’s presentation on higher order procedures is now listed on the Presentations page to your right. I’ll be adding some practice exercises later, but feel free to check out what I have already.

View Article

nyc.rb In The House!

Last night’s meeting was a smashing success. We had our largest turnout ever with what I think was 28 people. My presentation went very well, with only a few minor corrections coming from the...

View Article

Ruby Makes It Easy

Oh ruby, you make my job so simple. I need a class method you’re lacking, and you just let me add it to you. class Array def map_with_index(procedure=null) result = [] if block_given? each_with_index...

View Article

Ruby Reminder: Array Subtraction

Just a reminder when working with arrays of objects generated with Active Record. [Model.find(1), Model.find(2), Model.find(3)] - [Model.find(1)] != [Model.find(2), Model.find(3)] This does not behave...

View Article


Use Session Sparingly (or The Benefits of Flash)

As tempting as it is to use it for everything, the rails session should be used sparingly. In reading through the code for my current project, I noticed that we are using the session for storing return...

View Article

CRUD Presentation

The slides from my CRUD Presentation to nyc.rb are now up. Lee Nussbaum snagged the audio, so I’ll sync that up over the next few days and post that too. If you’ve seen DHH’s presentation, this one is...

View Article

Nyc.rb turns 3!

Well, last Tuesday nyc.rb turned three years old. Of course, we were not content with just turning three, so we decided to start taping our presentations also (By we, I mean me, because I have a video...

View Article


GoRuCo

The speaker list has been announced for Gotham Ruby Conference (GoRuCo), and I’m happy to inform you that I’m one of the speakers. I’ll be filling your brains with all sorts of information related to...

View Article


RailsconfEurope 2007

I’m a little late in mentioning this, but I recently spoke at RailsconfEurope about Rails Refactoring. It was a tutorial talk, and I thought that it went very well. I think the presentation is up on...

View Article
Browsing all 10 articles
Browse latest View live




Latest Images