Select Tag Funkiness With Merb

In my ongoing travails with Merb & Friends, I’ve run across a few behaviors with the select() form helper method. Since there’s currently a dearth of examples, I thought I’d document them for myself and future googlers.

Continue Reading…

6 comments

Posted by Calamitous on Jan 18, 2009

A Rails Developer Spends One Week With Merb (and HAML and JQuery and DataMapper)

Developers often talk about some hot new technology they plan on spending time with, but very rarely do they ever get around to it. I’m ordinarily in the same boat, but last week I had a new personal project crop up for a simple web application (5-6 models) which was an ideal candidate for testing out a slew of new tech that I’ve been meaning to get around to.

Merb, an erstwhile competitor to Rails, has been making a big splash lately. I decided to step out of my comfort zone of Rails/Acti* and into the wild and woolly world of young, cutting-edge frameworks. Since I’m undergoing the pain of learning a new framework, I figured I’d go whole hog and use Haml, jQuery, and DataMapper, as well.

Before last week, I’d never done much more than spin through the initial tutorials for any of these tools. That being the case, I can’t really speak to performance, deployment, or any of half-a-hundred other critical issues to consider when selecting a framework– this is strictly a shallow, first-impressions review.

I welcome comments and corrections to my observations, and suggestions for easing some of the new-developer pain.

Continue Reading…

0 comments

Posted by Calamitous on Jan 08, 2009

If You Like Lyrical Code...

Osake reminded me this morning that I hadn't posted this one up yet...
1
 
2
3
4if (self =~ /pina coladas/ && Rain.caught(self)
    && !yoga.include?(self) && self.brain == 0.5)   Personals.answer   self.relationship = :train_wreck end
Continue Reading…

1 comments

Posted by Calamitous on Dec 07, 2008

Bank of America: Bad, Bad, Bad

So, yeah, this is going to be a little ranty; feel free to skip it if you like Bank of America, or just don’t feel like hearing a windy blowhard spouting bile.

I’m not going into the many reasons I decided to close out my Bank of America account, just the representative experience of actually doing it.

Continue Reading…

16 comments

Posted by Calamitous on Nov 24, 2008

Code Lyrical Umpteen-something...

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19class MaryMoon < Vegetarian

  def initialize
    @ttl = 2_524_554_080
    doowop
    @loves = Miso.new
    @alone.ambivalence = false
  end

  def eat(type)
    doowop
    raise ArgumentError if type.is_a? Meat
    return sho_like() if type.is_a? Bone
  end

  def doowop
    Thread.new { 3.times { 'Mary Moon' } }
  end
end
As always, jump for answers! Continue Reading…

0 comments

Posted by Calamitous on Oct 30, 2008