Ayende @ Rahien

Unnatural acts on source code

Beautiful code

I think that I already mentioned that I like the Jafar's blog, he just posted an entry with some beautiful code in it. You can check it here, took me a few seconds to figure it out, but Wow, this is a nice way of working with the code.

The only thing that I don't like is that there isn't enough of generic type inferencing.

Update: more good stuff from the same guy here.

Comments

Luke Breuer
03/08/2007 06:56 PM by
Luke Breuer

How about having the Substring call subtract ".".Length instead of 1? Then, make the period a constant in the beginning of the method. Down with magic numbers and strings! :-)

Comments have been closed on this topic.