Geeks With Blogs
I, Codemonkey Codemonkeying Around
One of the things in VS 2008 that has intrigued me has been Extension Methods. I've been trying to think of ways to use these in my applications and coming up with ways to move functions associated with various processes to Extensions in our own APIs. ScottGu recently posted an interesting article on his weblog about writing an Extension for creating ......

So, a while back I created what I consider a neat .NET program. It opens a remote desktop session to a Virtual Machine we have running on VMWare and logs into the machine. Then, if the remote session is closed, it shuts down the computer. It did have the downside that the remote session could, of course, be minimized and the users could access the computer. ......

I work almost only with code written by predecessors at my job. There's good code and bad code. Recently, I've been trying to clean up the exceptions. Just about everything is throw Exception() instead of customized exceptions, so you never really know what you're catching. It could be an IO exception, a null pointer, or whatever. The message is generally something that can be displayed to the user without them becoming confused, but with a mix of "good" message exceptions and "

Here's a strange one. Last night I had a dream about nested strings. The most obvious use of this would be in a nested SQL statement, so here's a made up on the fly example: select phone_number from Addressbook where name = (select name from customers where city = 'Atlanta') But instead of writing that out as a string in my code, I did this crazy thing: ......

Copyright © Chas Williams | Powered by: GeeksWithBlogs.net