How can I get rid of this goto?

24 Sep 2009 Help! It’s late and I don’t see a good way to get rid of this goto construct: private void advanceTheTimeCursor( Func<DateTime> nextTime, Action uponSuccessfulAdvancement) { loop: var t = nextTime(); if (t > reference) return; uponSuccessfulAdvancement(); pastToPresentCursor = t; goto loop; } I kinda like it, but somebody said somewhere...

Repository or DAO?: Repository

21 Sep 2009 Fine, fine, the title is a blatant copy from Fabio Maulo’s equally titled blog post. Then again, this was the direct inspiration for understanding how the data access should look like in the mini-Blog engine I am cooking up. I decided to implement a repository just like Fabio recommends (but...

Intermezzo: XSL 2.0 on .NET

07 Aug 2009 I was up to updating some old stuff that I had previously written in JAVA to the .NET world. It has been a while since I worked with JAVA - I had forgotten that the XSL I once built used version 2.0 features. To my dismay .NET 3.5 allows you...

Feynman & Silverlight: A great combination

15 Jul 2009 Over at Microsoft research, they have put up numerous lectures from that great theoretical physicist and bongo player, Richard Feynman. That little extra is achieved through the Silverlight app in which the lectures run: You get a timeline that makes jumping to different passages easy, it allows you to add...

Meet DIs local rep: The AbstractContext

17 Jun 2009 I am having an unhealthy yet energetic and fruitful relation with a close relative of ‘the’ Dependency Injection (DI) container. She’s called AbstractContext and she’s been able to cope with all kinds of thorny situations where numerous objects need to collaborate without resulting in a tangled mess of spaghetti. The...