October 2008
10 posts
3 tags
Google App Engine to support Ruby?
A recent post on the Google App Engine blog refers to;
“Support for a new runtime language”
That’s got to be ruby…
Imagine a bespoke Sinatra-style minimal framework, with DataMapper bindings to the Google DataStore.
No doubt it’ll be pretty quick to make it work with Merb as well.
AWESOME.
Why did google never reply to my job application asking to work on it?
...
it’s hard enough to push out a great idea,
even if you thought of it,...
– me, talking to Stephen Strudwick about startups, already in Beta, being too scared to pitch to investors!
6 tags
Rendering layouts that live in /public?
At work we have the following concept.
a “site” has a subset of our content
a “site” has a url - eg. “oursite.com/stickers” or “stickersNOTvicars.com”
a “site” can have its own customised layout, or fall back to the default one
How does this work in code?
site.articles (pretty simple)
a whole load of “route filters”...
I didn’t get drunk enough to try the Goggles. Next time!
6 tags
What would happen if you ripped out your Db...
Does your application and architecture really have failover?
If I broke into your datacentre, ripped out, and hid one of your servers, what would happen?
Is your architecture the biggest hurdle to scaling your web app?
Blain Cook and Joe Stump not talking about Twitter’s scaling issues.
6 tags
Need to install MySQL gem for OSX?
… but getting errors?
matthew@iRudy:~/code/rails211again $ sudo gem install mysql
Password:
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb install mysql
checking for mysql_query() in -lmysqlclient... no
checking for main() in...
5 tags
a better :delegate method?
So we have;
class Bum
attr_accessor :pants
delegate :smelly?, :to => :pants
end
We want to ask;
bum.smelly?
clearly if the bum has pants, then it’s only smelly if the pants are smelly that’s cool, but what if the bum has no pants?
>> bum.pants
=> nil
>> bum.smelly?
NoMethodError: You have a nil object when you didn't expect it!
The error occurred...