Check out my new blog at https://shibumiware.blogspot.com

Friday, November 12, 2010

USE WHITESPACE IN YOUR CODE

Now, I am not a fan of VB.NET (mainly becase I VB’ed myself out when I was at Pacific Edge) to start with, but if you have to write in it, it is really important to follow a good set of development standards.  Good development standards usually include a clause about using whitespace to make code more read-able.  The following is an piece of code I saw (blurred because I am demonstrating a point not beating somebody up).  Not only is there not enough whitespace, the one blank line in the ENTIRE method is just random.

image

Nice

I kinda wish people were capable of putting up dialogs when they “encounter an internal error”, like this dialog Visual Studio gave me a few minutes ago:

image

Of couse this dialog is really bad because while it suggests I save all files and exit, I have no way of doing that.  Kinda of like when people have “internal errors” and become unstable: you really can’t save them either. 

Thursday, November 11, 2010

Update

I am still here.  For the past 16 months I have been working on a new product.  We are not quite ready to announce publicly but I will say what we have built is very exciting (to a certain crowd, of course).

My hobby projects have taken the way-back seat to product development.  Recently, however, I made time to update the CSharp Header Designer and a new version (actually derivative) of the Code Gallery Download Report.  After working on the same product for so long, I just had to get some other stuff in play to keep my sanity.

CSharp Header Designer 2.0

The original CShap Header Designer allowed you to apply a header to a set of source files, but it didn’t remember which files you applied the header to.  It also didn’t understand anything about Visual Studio projects and solutions so you couldn’t simply specify a header and a solution/project and ask the app to apply the header to all source files in the solution/project.  I personally found this a bit annoying so I rewrote it to understand solutions and projects.  Now instead of just having a “.HeaderX” file, you have a “.HeaderXProject” that is based on a Visual Studio (only 2008 right now) project or solution:

image

You can add additional source files that are not part of the solution or project using the Source File Selection Dialog:

image

Also, one of the other contributors (laedit) added auto complete for auto fields, which is cool:

image

Check it out and let me know what you think.

Code Gallery Tools App

The Code Gallery Download Report originally was just an app designed to give you a consolidated download count for all Code Gallery resources and releases for all files.  I built it because I wanted to get some experience with .NET’s support of feeds (SyndicationFeed Class). All of the resource releases are availabe via a feed so I was able to learn the RSS format and parse out the download details for each release to give a count:

image

The new version adds support for monitoring downloads and discussions, complete with optional system tray messages that keeps you up to date with your Code Gallery resources.  Also, the new app gives you a discussion browser for all of your Code Gallery Resources, with highlighting!

image

 

image

Anyway, coming soon! A few more features and some testing to do yet.

Hope all is well.

Colby

Disclaimer

Content on this site is provided "AS IS" with no warranties and confers no rights. Additionally, all content on this site is my own personal opinion and does not represent my employer's view in any way.