Updated: 24/07/2003; 1:01:32 AM.
stevex's stuff
Some code, some writing about code. Some writing not about code.
        

June 13, 2002

I very much like C# and the .NET runtime (the CLR).

One thing I think is important in programming is using tools and languages that do stuff for you, so you don't spend time on tasks that aren't directly related to the work you're trying to accomplish.

I was working on a little program to build a searchable database of the TWAIN mailing list archive and I needed to create a config file that would tell the program what to do.  I thought about a few ways of doing it - of course XML seemed like the way to go. 

Without even really thinking about it I used IntelliSense in the Visual Studio.NET editor to find the classes and methods I need and came up with the following code:

System.Xml.XmlDocument doc = new System.Xml.XmlDocument();
doc.Load("ConfigFileName.xml");
string ArchivePath = doc.SelectSingleNode("//ArchivePath").InnerText;

Three lines of code to read a string from an XML file (plus exception handling), and the part I think is most significant:  I managed to figure them out without looking at the documentation.  I know a bit about XML so I know you can do an XPath search for a node by name using "//" at the start of it..

I'm really looking forward to DirectX 9 and the CLR bindings for it - if it lets me write 3D code without worrying so much about the details of setting up the display and whatnot (by providing reasonable defaults and letting me change them if I don't like them) then it could make 3D programming a whole lot more fun.


11:18:13 AM    comment []

I participated in a focus group discussion yesterday concerning a local news website. 

It was an interesting two hours.  Eight people discussed the website in question, as well as other Canadian news sites.

What I found particularly interesting is that we all came up with a lot of ways the site could improve, and all came up with suggestions for new types of content they could put online and whatnot, when it came down to the end of the time and the moderator asked everyone to write down the one thing that they should do to make the site more useful, all 8 of us wrote down essentially the same thing:  "More local stories". 

There's a lot of things a regional news site can be, but if it's not full of timely stories about local issues or interests, then I might as well just go to a national site.

Anyway they gave everyone $75 for participating.  It's not every day you get paid to tell someone what you think they should do..


11:11:04 AM    comment []

© Copyright 2003 Steve Tibbett.
 

June 2002
Sun Mon Tue Wed Thu Fri Sat
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30            
May   Sep


Other sites by me:
Linky
The Restaurant Thing
Syndicache
MapX
Misc Writings


Powered by Radio
Click to see the XML version of this web page.