RSSAmplifier

Blog

Daniel Hahn

This is the hub for my stuff (and federated elsewhere). Everything else is just a repost.

danielhahn.ioRSS feed ↗10 posts

Latest posts

Testing the setup

Getting back from the social giants, and let’s see if this works.

Berlin doesn’t want mobility

Sad news for Berlin: The senate wants to push maglev trains for public transport. For this, they are cancelling an already-planned tram line.

Airbnb und die Städte

Berlin hat gerade beschlossen, sein “Zweckentfremdungsverbot” so zu ändern das “Homesharing” wieder erlaubt ist.

House of Small Wonder

Zu beliebt für diese Stadt: Das House of Small Wonder ist schon seit einer Weile bei Hipstern und Touristen angekommen - auch wenn (oder weil) es ein Spinoff eines New Yorker Ladens ist.

Be sure where your methods are chained to…

I've just figured out a quite obscure bug in our app. It all started like this: record.freeze.things # record is an ActiveRecord, and "things" is an association on that record. TypeError: can't modify frozen object from (irb):2:in `instance_variable_set' from (irb):2 The code above shouldn't crash, because ActiveRecord hast its own #freeze method, which will still allow access to the associations.…

Quick update for the Rails Course 2011 students

As you may imagine, the Japan Earthquake and Tsunami has created a bit of work here at betterplace.org, too. That means that I didn't get to post to the links to the resources quite as fast as I wanted. Nevertheless, here's a quick update for my students. Presentation The presentation is at http://prezi.com/cyt1mg2inxwd/ruby-course-march-2011/ - you will find the URLs of most interesting resources…

Factory Girls secret savings

We like to use FactoryGirl for our test setup. Unlike Rails' fixtures, it will give you an individual setup for each tests, and thus preventing that tests have side effects on other tests. However, saving objects on each tests comes with a performance penalty. For your specs, however, you'll only need to call Factory.build in many cases, creating an new object without saving it to the database.…

There we are

So now, seems that I only write in here when moving house or on such occasions. Which at least means that there is an update every now and then, and another occasion has arrived. In the last few weeks Ingrid and I have been busy moving into our new home in the district of Mitte (which is, litterally, in the middle of Berlin). We're still quite amazed with the place, just a few minutes walk from…

Ich bin ein Berliner

A lot of stuff has happened since I last posted here - most importantly, I am no longer living in Italy. Three weeks ago, I took my stuff and moved up to Berlin (yes, the one in Germany). Currently Ingrid just has a tiny room here, and we're in the process of looking for a proper place to live. Which means that the new address and stuff will be coming up soon, for those to whom it may concern.…

Subclass this

In object-oriented languages there's a nifty feature called code inheritance. People tend to think that this is a really cool (tm) thing, since it allows you to quickly slab some new features onto a class whenever the need arises. In fact, there still seems to be a lot of folks who think that the whole point of object-orientation is to subclass a lot. I've previously worked with Microsoft MFC,…

Daniel Hahn · RSS Amplifier