Archive for September, 2006

Colin in Town

Thursday, September 21st, 2006

One of the hardest parts about leaving Boston, well, essentially the only hard part, was leaving Altay and Colin. When I got out to San Francisco, I emailed Colin almost immediately to tell him how nice it was and to ask him to come out. True to his best, I’d receieved an email saying “How’s the weekend of the 23rd” within hours.

It’s nice to have someone that listens…

It’s also nice to have someone that wears silly hats:

Colin and Keith with Hats

Not sure what we’ll do this weekend, but I think it’ll include a little time in wine country (the first time for both of us).

Inherit from the Standard Library

Tuesday, September 19th, 2006

As always, Google manages to fail for even the stupidest programming queries because it ignores special characters ” < ", etc...

So, it turns out that I've never actually inherited from the standard library before. Time to get some stupid errors that make me look like a fool on Ruby-talk when I ask about them. Specifically:
uninitialized constant FooHelper::Logger


irb(main):001:0> module Foo
irb(main):002:1> class Bar < Logger
irb(main):003:2> def self.baz(t); p t; end
irb(main):004:2> end; end
NameError: uninitialized constant Foo::Logger
from (irb):2
irb(main):005:0> module Foo
irb(main):006:1> require 'logger'
irb(main):007:1> class Bar < Logger
irb(main):008:2> def self.baz(t); p t; end
irb(main):009:2> end; end
=> nil
irb(main):010:0> Foo::Bar.baz("How to inherit from the stdlib")
"How to inherit from the stdlib"
=> nil

irb to the rescue and I didn’t even post to Ruby-talk, but missing ‘require’ made me feel pretty dumb…