... Home Contact

Krzysztof Koźmic's blog

Designed in Poland, assembled in Australia.


Show appreciation: My Amazon.com Wish List


Me@Twitter

    Currently reading

    Article Categories

    Archives

    Post Categories

    MyPersonal

    Syndication:

    March 2010 Entries

    Validate your conventions.

    I'm a big proponent of the whole Convention over configuration idea. I give up some meticulous control over plumbing of my code, and by virtue of adhering to conventions the code just finds its way into the right place. With great power comes great responsibility, as someone once said. You may give up direct control over the process, but you should still somehow validate your code adheres to the conventions, to avoid often subtle bugs. So what is it about? Say you have web, MVC application, with controllers, views and such. You say controllers have a layer...

    Advanced Castle Windsor – generic typed factories, auto-release and more

    This post is a playground for me, to try out some ideas I want to include in my talk about Windsor at KGD.NET meeting later this month. Scenario We have a messaging application built around two interfaces: public interface Command { }   public interface Handler { void Execute(); }   public interface Handler<T> : Handler where T...