Remedy For Slow Server Side Scripts
DHH posted an excellent point about outsourcing the performance-intensive functions last year. Here’s the link to his blog post.
I agree with DHH that we should not force ourselves to confine of Rails or Ruby, but take advantage of all the tools at our disposal. I get disgusted when someone labels themselves as a Java or C# developer. We should be just developers, period. As a CTO, I’ve seen too many uglyness that could’ve been done better if a developer was willing to expand beyond his/her chosen language or platform.
You can use File object to get a listing of a directory, but I think it’s lot better to simply system(‘ls’). Of course this is not always appropriate, but you get my point. To test this, simply open irb and type system(‘ls’) and see what you get.
If you have a server script that isn’t so nice with Ruby, then by all means, go beyond Ruby. Not only are you speeding up your app, you may boldly go where no Ruby developer has gone before.