Archive for January, 2005

… but what if the pro is not always right?

Jason Mauss rants about clients who think they know something about web design. I agree with Jason in that web design in particular is a field where the bar for considering oneself an expert is considerably lower than for many other branches of business (say, architecture). It is obvious that the millenia-old roots of building [...]

Share with your friends:
  • Digg
  • del.icio.us
  • Facebook
  • Twitter

January 26, 2005   Posted in: General  Comments Closed

Code quality, part III: Manually number your enums

When using enumerations, .NET languages automatically assign the numeric values for your enums. For example:
public enum MyColor {
Red,
Green,
Blue
}
This yields an enum with the numeric representation of Red = 0, Green = 1, Blue = 2. All this is fine – the numeric versions don't really matter normally. But one thing you should realize is that [...]

Share with your friends:
  • Digg
  • del.icio.us
  • Facebook
  • Twitter

January 16, 2005   Posted in: .NET  Comments Closed

Using filesystemwatcher

I desperately needed to find out where Adobe Photoshop Album 2.0 stores its database files (damn software that doesn't allow configuring this!). Well, a quick search of the obvious places didn't reveal a thing, so I wrote a few lines of code to monitor the files being accessed. The following code is a trivial console [...]

Share with your friends:
  • Digg
  • del.icio.us
  • Facebook
  • Twitter

January 8, 2005   Posted in: .NET  2 Comments

Powered by EOS

As a totally non-professional note, I bought a Canon EOS-20D. What an excellent way to cut down the time spent with mundane coding affairs! Good or bad? We'll see…

Share with your friends:

Share with your friends:
  • Digg
  • del.icio.us
  • Facebook
  • Twitter

January 4, 2005   Posted in: General  Comments Closed

Code quality, part II: Proper exception handling

One critical part in good-quality code is the way it handles errors. Error handling is very rarely fun to write, but nevertheless, it's one of the things that your code gets judged by. Or, rather: proper error handling rarely gets praise from the end user, but the lack of one causes lots of irritation. The [...]

Share with your friends:
  • Digg
  • del.icio.us
  • Facebook
  • Twitter

January 1, 2005   Posted in: Misc. programming  2 Comments