Kuroko Project
destroy all astro-men

Archive for the 'ruby' Category

reeses or tabasco?

Monday, December 29th, 2008

Everybody’s talking about it. Couple of days in jail, whole town changes, etc.
There are two camps over this currently: the Rails side(”Whoo! Chocolate in my peanut-butter! Less magic and plugins that don’t explode randomly between versions!”), and the Merb side(”DHH is going to defenestrate us all! They won’t taste great! These books from the tech [...]

a huge beanie is approaching fast

Tuesday, November 25th, 2008

In Rails, one form helper(well, besides a broken date_select) stands alone as cruel, sadistic, and impossible-to-please with just a simple hash. That form helper’s name: option_groups_from_collection_for_select.
It’s so painful that most people would re-implement it, rather than fall victim to its NoMethodError wails. But that’s not the path for us. When you’re using something like Base [...]

tl; dr

Sunday, November 23rd, 2008

Echo-chamber-driven Internet Drama on the rise in the Ruby community. Again.
Giles Bowkett:
original, followup, self-flagellation
_why’s sum-up and thoughts.
Zed’s response to _why’s mention.
_why fires back.
Can we skip this and go straight to the Yo Momma Fight? Loser gets Force-chucked into experts-exchange.com!

Builder, indentation, and namespaces

Thursday, September 4th, 2008

Builder is a neat piece of kit but, like most sane libraries, wasn’t designed around the brain-damage that is Business-dialect XML(chock full of custom namespaces and tags devoted solely to attributes).
Builder’s docs seem to imply that a namespaced tag always needs to be in block form:
xml.bqcm :UselessMetadata {|n| n”chimney”}, “flue”)
“I still want to send my [...]

it “should insert foot in mouth” do … end

Sunday, June 15th, 2008

Last time, I was complaining about rSpec refusing to play nice with the TextMate plugin. I owe the team an apology(in the unlikelihood event of them actually reading the entry), as getting it working is a bit confusing.
On my systems, the TM plugin would insist that I had an ancient rails/rubygems version, and to try [...]

God, sphinx, and you

Tuesday, April 15th, 2008

god is my newest favorite tool for server and Rails monitoring, not to mention the entertaining conversations it can produce(”God was spanking the mongrels repeatedly, without letting them fully start”, “god spammed my mailbox with over 700 emails this weekend”, “I’m killing god right now, it should be back in a minute”). One of the [...]

testing to irritation

Monday, March 31st, 2008

So after wasting spending a few days checking out other test frameworks for Ruby/Rails, I’ve come up with this:
Rspec:
The Textmate plugin is barely useable; it appears to have a completely different manner of loading files versus the standard spec command(placing a spec file next to its target and doing a simple ‘require’ worked for the [...]