Archive for October, 2008

Interlude

27Oct08

One thing about having a blog hosted at wordpress.com (or on any other 3rd party website, for that matter) is that you shouldn’t have to deal with updates and the likes.
The downside, however, is that you are not able to do anything when things start to suck. I, for example, experience a pretty long waiting [...]


Rails – or to be more precise – ActiveRecord scopes can be a huge time saver. That is, unless you have a number of multiple conditions that stack onto each other. But if you are in need of an “advanced search” feature you will likely end up with something like the following:

condition1 = first_name && [...]


Now, last monday I promised to rework the bodywork code into a plugin, “tested and all”. Some clashes with git later I finally managed to push it to github, you’ll find it at github. It even comes with a nice and cute README file, so head over and check it out.
Here I want to ask [...]


One cool Rails feature – however undervalued – are after-filters. You might ask: What is the point of doing things after I am already done doing all things? Well, to prevent micromanagement: Sometimes you just want to do things all the time, or regardless of the specific request: say, embedding some SQL stats on the [...]


There are times, when you build a really complicated web page. Take a page like http://www.sportme.de: this page has more than eight parts that are to be taken straight from the database (assuming you are not logged in and get the front page of that website). You see blocks showing professional members, newest members, random [...]