On Insight

time to read 1 min | 198 words

I'd a problem with how to implement a spesific feature which I couldn't see a clean way to do. It's just something that came up that I don't need to do right now, but will have to do in the future, and this may have some serious ramifications later on. I'm a firm advocate of delaying decisions, so I just let the subject drop, thinking that I'll tackle it when I need to.

When I woke up today, I was still groggy, so I sort of turned over and tried to go back to sleep, and the solution to that problem just sort of came up to me. The feature in question is changing databases per each request when using NHibernate & ActiveRecord. Because of the way ActiveRecord works, I never have to explicitly open/close connections, so that was worrying. I just woke up today knowing exactly which part of ActiveRecord was responsible for the stuff that I needed, and with an easy way to make it work.

I'm not sure if it is a good sign or not. Should I be concerned that I dream of Castle?