Greg Beech's Website

November 2008 - Greg Beech's Tech Blog

  • Natural sort order of strings and files

    In Windows XP and Vista the algorithm used to sort files by name in Explorer does not simply compare the strings alphabetically, but has additional logic such as treating numeric characters as numbers. This means that a file named "20.txt" appears after "3.txt" in Explorer, even though alphabetically it would appear before it. The good news is that the algorithm used to do this...
    Filed under: , ,
  • C# and VB.NET DebuggerVisualizers for CodeDom

    Code generation is a great way to remove the chore of writing and maintaining boiler-plate code. If you're frequently going to be repeating and updating similar code then it's well worth the effort to write a domain-specific language (which can be as simple as an XML schema) and a compiler (which can just be a small console application) to spit out C#, or whatever your language of choice is...
Copyright (C) Greg Beech. All rights reserved.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems