Archive for the ‘Ruby on Rails’ Category

> Our Rails3 (beta4) application had one route mapped in config/routes to a Sinatra app, by means of the following route: match ‘/foo’, :to => EndPointApp, :as => :endpoint The route was being defined to run as a Sinatra Application require ‘sinatra’ class EndPointApp < Sinatra::Application post '/foo' do … end end This was working [...]

> I remember one of the early talks at the Canada On Rails in 2006 had a slide showing how many books one needs to read to be able to write web applications in Rails, versus Java. Of course Java side had about 10 books: Java SE, Java EE, Hibernate, Struts/Tiles/JSF, WebServices, Ant, Maven, Eclipse, [...]

> I was recently chatting with someone about algorithms, and we were talking about efficient algorithm for implementing integer division with modulus, and how to make it efficient for large integers. The following code snippet shows a class that implements two division methods, linear and binary. I wonder if there is a more elegant way [...]

> Just got back from Vegas where between Wednesday and Friday a small-ish java conference was taking place. This was my second one, the first being five years ago in 2004. Of course it’s hard not to compare, and I find myself doing it anyway… I can’t help but feel that the excitement has left [...]

><!– I rarely rant about software. Reliable software is hard to make, and I know this because that’s what I do for living myself. But once in a while I come across such ignorance that a rant is really all I have left. I’ve been coding in Ruby on Rails for over two years now, [...]

> Rails hosting is a hot subject, and with everyone asking everyone else about their experience, I thought its only fair to share my own experience, even though it is relatively limited. Introduction I started with a shared “professional” hosting plan from HostingRails. It was around $30/month, and included non-root SSH access to a shared [...]

This posting has moved: Ruby on Rails Hosting: From HostingRails to RailsMachine in a shake of a tail

> Back a few years ago I was researching differences between PostgreSQL and MySQL databases, and chose PostgreSQL because at the time it supported foreign key constraints and many other fantastic SQL extensions that make developer’s life a lot easier. Today I am sure MySQL is just as functional as PostgreSQL, and it does appear [...]

This post has moved: On Ruby on Rails with PostgreSQL, and Acts as Paranoid

This post has moved: Ruby on Rails: Reducing clutter in actions by placing common code in filters