Here's a TV advert for a camera touting the benefits of film cameras over digital cameras. I'm almost inclined to wonder if this advert is a parody, but even so, it has a point.
Let's watch...
Sunday, 26 September 2010
Tuesday, 14 September 2010
reddit'd (Followup to 'Construct Something Else')

My last piece, "Construct something else!" got a bit of attention when someone posted it on reddit.That was unexpected.
Remember the rule; If you publish something that's a bad idea in hindsight, post a "clarification" article claiming you've been misunderstood and that you never thought it was a good idea in the first place. Then hide in the shower.
Sunday, 12 September 2010
Construct something else! (C#)
Please read my follow-up post after reading this one.
Quoth rjw on stackoverflow...
C# compiler guru, Eric Lippert commented...

Given the following client code:
var obj = new Class1();Is there any way to modify the constructor of Class1 so that it will actually return a subclass (or some other alternate implementation) instead?
C# compiler guru, Eric Lippert commented...
We are considering adding a feature "extension new" which would essentially allow you to make a static factory method that would be called when the "new" operator is used, much as extension methods are called when the "." operator is used. It would be a nice syntactic sugar for the factory. If you have a really awesome scenario where this sort of pattern would be useful, I'd love to see an example.I have one!
Subscribe to:
Posts (Atom)