6 Anal-Retentive Ways To Improve Your C# Code

Nothing irks me more than to have to dig through garbage code.  Working at a software consulting company, I’ve seen a whole slew of it.  And I’ve hurled on my computer monitor enough as a result to give it a pretty, brownish-green tint.  Bad code destroys hardware.  And souls.

The single biggest clue that a developer either has no idea what they are doing or simply doesn’t care about their code is inconsistency.  We all have different preferences and coding styles, but when a developer can’t pick a particular approach to take they come off as incredibly amateur, and for good reason.  Inconsistent code is difficult to read, and is thus difficult to modify in the future.

The majority (or even the entirety) of the list below revolves around writing consistently styled and consistently performing C# code.  Much of this list is admittedly anal retentive, but all of it is guaranteed to improve the quality and readability of your code.

Continue reading…

Posted in C#, Technology, Visual Studio 2008 | 4 Comments

UpSync Version 0.5 Released

Update on November 25th, 2012
This application has been retired, as there are much better solutions available for free; please check out FreeFileSync instead.

Below are the downloads for the setup and the sources for the first official release of UpSync, version 0.5.  As I stated in my previous post, it works properly in Windows XP and Vista, as well as Windows 7.  For a description of the application, and some screenshots, see the previous post.

If you use it, let me know!  I’m interested in any kind of feedback.

[Download links removed]

Posted in C#, Software, Technology, UpSync, Visual Studio 2008 | 4 Comments

New Application – UpSync

Update on November 25th, 2012
This application has been retired, as there are much better solutions available for free; please check out FreeFileSync instead.

I recently started working on a new application called UpSync. From what you can probably already tell from the name, the application is meant to sync files between folders on different machines. It’s meant to be easy to use but also down and dirty enough to meet a typical system admin’s needs.

I’m open sourcing the project, and I’ll have the setup and the source code for version 0.5 up very shortly.  It works properly on Windows XP, Vista, and even Microsoft’s new, unreleased Windows 7 (the screenshots are from Windows 7).  It’s written in C#, my favorite of the .NET languages, using Visual Studio 2008.

Here are some of the key features that have already been implemented:

  • Any number of folders can be synced with separate settings for each folder.
  • Sync in one direction, the other direction, or both directions with no interaction necessary.
  • Specific settings for handling deleted files allow for all possible situations.
  • Syncing engine uses file dates and times to ensure the most recent version of files are replicated.
  • New files in either folder are automatically handled correctly and copied over to the other folder.
  • Sync process can be entirely automated or manually run.
  • Syncing engine logs every operation in complete detail so there is never any confusion as to what files were changed.
Posted in C#, Software, Technology, UpSync, Visual Studio 2008 | 4 Comments

WordPressing It

I vowed I’d never create a WordPress blog.  Too generic.  Such a waste of my “skills”.  Well, here it is, generic as ever, but immediately functional.  The problem with my home-grown blogs was I tended to focus on the website development for the blog, and never got around to the actual content.  What good is a blog without content?  Hopefully this one actually contains some material worth-reading/listening to…

I should say I’m quite impressed with the WordPress “experience”.  I was up in ten minutes, literally, and the amount of easy “tinkering” you can do is amazing.  I hope, though, that as I need to customize the blog (if I need to), WordPress doesn’t get in the way too much.  We’ll see.

For now, welcome to the blog.  I hope you never read this because of the vastly more interesting content about to be added. :)

Posted in Technology, WordPress | Leave a comment