Browsing Posts in .NET General

There are many paths to software enlightenment, to attaining the state of development nirvana knows as ZenBoo. Masters of the art of ZenBoo can invert dependencies at will, value coding to interface* not implementation, favour composition over inheritance,** and respect the open-closed principle.*** On your journey to becoming a ZenBoodist, you will encounter many revelations […]

On a recent project, I was trying to return an object (with child objects) from an ASMX Web Service and was using the XmlSerializer for serialization. (When doing ASMX Web Services, you really have no choice but to use the XmlSerializer.) The child objects contained a circular reference, which ended up being the bane of my existence […]

The .NET Framework 3.0, formerly known as WinFx, has gone gold. You can download the release bits now. Congrats to everyone involved in this release! .NET Framework 3.0 Readme .NET Framework 3.0 Runtime Components Windows SDK for Vista and the .NET Framework 3.0  Visual Studio 2005 Extensions for .NET Framework 3.0 (Windows Workflow Foundation) Visual Studio […]

.NET Framework 3.0 or  (The Framework Formerly Known as WinFX – TFFKAWFX – or more simply The Framework) has hit the RC1 milestone. Congratulations to the entire Microsoft team. We’re getting very close to a time when we can deploy production applications* using Windows Communication Foundation (WCF) aka Indigo, Windows Presentation Foundation (WPF) aka Avalon, Windows CardSpace […]

Here’s an interesting bit of CLR trivia for you. The CLR behaves differently with respect to how aggressively it considers references dead depending on whether or not a debugger is attached. Take the following code as an example: public void Foo() {     Bar b = new Bar();     // Do some stuff with b […]

After a long hiatus, Richard Lander is back. Richard is a PM on the CLR team at Microsoft responsible for the loader and versioning. He’s also a Cannuck working in Redmond. I’ve had the distinct pleasure of chatting with him on a number of occassions. Due to moving, a second child, and site-hosting changes, his […]

One of my fellow plumbers, John Bristowe – techno-wonk extraordinaire – has started up a new podcast where he interviews developers from across the Great White North. He’s shipping them in bite-sized pieces that are about 15 minutes long. The first three interviews feature: Rob Chartier on Code Camps Me on 64-Bit Development (WARNING: I […]

Fellow plumber, Bil Simser, asks the question how the heck does someone debug SharePoint as a non-admin. Elementary, my dear Simser, elementary… The fundamental problem that Bil is experiencing occurs with SharePoint, ASP.NET, or any app that runs under a different security context than your own. A normal user can only debug applications running under […]

In this final (for now) instalment, let me ask a rhetorical question: Is managed code the right choice for every applications? Absolutely not! For example, .NET and Windows itself are not designed for use in real-time systems. There are no guarentees on worst-case latency during processing. i.e. If you’re writing software for a pacemaker or […]

After I wrote Common Pitfalls When Handling Exceptions in .NET, I had a few questions about exception handling techniques when you’re writing a Web Service. Of course the common pitfalls still apply. The questions were more around how you should expose those exceptions to the client of a Web Service. Should you let them percolate […]