Oww, my brain hurts. Extension methods *will* cause me grief.

As a consultant, a task that I’m commonly asked to perform is to troubleshoot applications in need of repair.  The underlying source code and architecture for many applications in need of repair has, let’s say, “problems”.  One of the issues I run into with circumstances like this is the source code was not well organized, not well thought out, or not well managed as it evolved.  This type of code has poor style, poor coding habits, and often the programmers have code stepping all over other code through lack of cohesion and excessive coupling.  Believe me, as Visual Studio codenamed “Orcas” is released … Continue reading Oww, my brain hurts. Extension methods *will* cause me grief.

"Invalid menu handle" Opening Downloaded .ZIP Files (IE6, XPSP2)

I’m working on a new, least-privileges, computer and I ran into a very strange problem yesterday.  If I click on links to .ZIP files in IE and select Open,the file downloads but I’m presented with an “Invalid menu handle” message box. I’m not the person who configured this computer; so, I wasn’t entirely sure what the problem could be.  I had surmised that it had something to do with least-privileges and compressed (zipped) folders’ ability to operate in that type of environment.  I tried Save, instead of Open, when clicking the link but had no problems double-clicking the zip file … Continue reading "Invalid menu handle" Opening Downloaded .ZIP Files (IE6, XPSP2)

.NET Framework 2.0 Service Pack 1

I noticed mention of .NET Framework 2.0 Service Pack 1 on a Microsoft site today. The BCL Team’s latest blog entry http://blogs.msdn.com/bclteam/archive/2007/05/21/the-regexoptions-compiled-flag-and-slow-performance-on-64-bit-net-framework-2-0-josh-free.aspx mentions a fix that will make it into the .NET Framework 2.0 SP 1.  Seems an inevitable release of SP1 for .NET Framework 2.0 is pretty official.

Accumulative Construction

A while back someone asked for guidance on what order should polymorphic construction occur in C# classes.  I guess I had never really put much thought into it before and have never seen other guidance on the topic; but, I can see where this can become a valid design consideration.  Polymorphic construction is when a class has more than one constructor.  If one constructor reuses the services of another constructor, I’ve coined the term Accumulative Construction, i.e. through successive calls to potentially many constructors. Here’s some guidance that serves me well: Polymorphic constructors should be called from most specific to … Continue reading Accumulative Construction