Archive for May, 2004

C# language annoyance of the day

Sunday, May 30th, 2004

This actually applies to all the C-derived languages.   If I have code like this: File f = File.OpenText(“MyFile.txt”); f.ReadLine(); And I want to handle the case where the file is not found: try {   File f = File.OpenText(“MyFile.txt”); } catch (FileNotFoundException ex) {   Console.WriteLine(“File not found.”);   return false; }   f.ReadLine(); The […]

Strings and Nulls in C#

Monday, May 24th, 2004

A very common thing in coding is to want to see if you’ve been given a string or not.   In C#, a string is a reference to an object, and this reference can be null, or it can be a reference to a string, which can contain 0 or more characters.   When you […]

Microsoft and Monopolies

Sunday, May 23rd, 2004

Here is a letter published in Infoworld where a reader is unhappy with Microsoft’s not fulfilling a request for a free upgrade when he submitted it too late.  It would have been nice if Microsoft had accommodated, but someone somewhere decided to stick to the written rules instead of trying to help the guy.   Microsoft […]

.NET Framework part of XP SP2?

Thursday, May 13th, 2004

I hadn’t heard this before, but The Register is saying that SP2 includes the .NET framework (last paragraph).  That’d be awesome for .NET developers.  

Atom and RSS are BOTH the wrong way to do syndication.

Thursday, May 13th, 2004

The debate between Atom and RSS is missing the point.  Neither is a good way to do syndication.   This seems obvious to me, but apparently either I’m missing the point or the rest of the world is – now that the W3C is taking an interest in Atom I  think it’s worth saying this […]

Shutting down cleanly.

Thursday, May 13th, 2004

What are some good reasons for shutting down cleanly? By a clean exit I mean you’ve freed everything you’ve allocated, closed everything you’ve opened, shut down all your threads, etc. I’ve been doing some work on some code trying to get it to shut down in a graceful manner and, as usual, it’s not easy.. […]

Games: Difficulty, Time

Thursday, May 6th, 2004

There’s an article on Slashdot about difficulty in video games that I wanted to comment on. There is immense variety among video game players.  This has changed a lot over the years, mainly thanks to the maturity of gaming and the fact that kids who grew up playing video games are now adults playing video […]

Decompiler vs having source

Wednesday, May 5th, 2004

One of the big reasons it’s cool to have the source code for something you’re working with is so you can see what it’s doing.  (How often do most people actually modify the source code to an open source program or library?  Very rarely compared to how often you use it).  But what if you […]

Application Security Madness

Tuesday, May 4th, 2004

Sony just announced a new music downloading service, SonyConnect.  To use the service, you have to download their SonicStage software. From the SonicStage download page: Do not use SonicStage while logged on to a domain user account under Windows 2000Professional, Windows XP Professional or Windows XP Home Edition. SonicStage should be installed while logged on to […]

Google and atom.xml

Monday, May 3rd, 2004

Dave Winer noted that Google seems to be looking for atom.xml and not looking for RSS.  I can offer a data point that seems to support that. A few days ago, Zim opened a new website with a mobile weblog application so I’ve had an opportunity to watch the referers and links to the site slowly spreading. Our […]