Category: Best Practices

Unit Testing in .NET Part 2 – Your First Unit Tests

In the last post, you learned the basics of unit testing in .NET: you should understand the intent behind unit testing, you should have a vague idea of what unit tests should look like, and you should have looked at some of the unit testing API options that are available to you.  For the remainder…

Read MoreView 4 Comments

Unit Testing in .NET Part 1 – Introduction to Testing

Today is the first ‘requested topic’ post.  If you have a topic you would like to hear more about, drop me a line, and if it’s something that I’m either interested in or working with anyway, I’ll try to give the topic a proper post.  Serious suggestions only (yes, I’m talking to you, Evil Rob). …

Read MoreView 1 Comment

Essential Development Team Tools

Unless you are a micro-ISV or are developing on your own for fun, I doubt you are working in isolation.  You are probably working as part of a team of developers (and possibly testers, designers, etc) who are all working in parallel on the project.  I’ve been on the same team since my employer first…

Read MoreView 2 Comments

Peer Reviews

Peer reviews seem to be a source of seething hatred for many developers.  I can sort of understand why (no one likes rocks being pitched at something they created), but they can actually be very beneficial if done correctly.  This post will lay out the case for doing peer reviews as well as an approach…

Read MoreView 2 Comments

The importance of testing

Grad school just started back for me today, so this is going to be a short post.  Hopefully I’ll still be able to do three (hopefully high-quality) posts a week once things stabilize. I ran into an issue today where one of the systems that I maintain at my day job had been rendered completely…

Read MoreView 4 Comments

How to run a software development company (INTO THE GROUND) – Part 3

I am really, really glad it is Friday.  It’s been one of those really, really (not) awesome weeks.  Anyway, here’s how you, too, can successfully take your software development ship and crash it into an iceberg, killing everyone on board!  In a change of pace, I’m going to start putting a "why you shouldn’t do…

Read MoreView 1 Comment

Using LINQ to elegantly initialize arrays

**CORRECTED 8/26/08: Apparently my initial code did not work correctly.  This appears to be a widespread mistake, as I found about a dozen other people doing the exact thing I was doing with reference types.  Corrected code and the non-working example are below.** I am tired of writing array initialization code that looks like this:…

Read More

Easy testing via ActiveRecord and SQLite

As I've mentioned, I'm a big fan of ActiveRecord.  I like having all of my data-access related code stored in exactly one place.  There's no separate mapping file to maintain, and if I'm really lazy, I can even let ActiveRecord generate the schema for me (yeah, that doesn't really work once you have to worry…

Read More

How to run a software development company (INTO THE GROUND) – Part 2

It’s Friday, so it’s time for part two of the on-going series of how NOT to run a successful software development company. Don’t pay your workers Times get tough.  Maybe a contract didn’t get paid on time.  Maybe someone made a gianormous accounting error (to the tune of $20,000).  Hell, maybe you needed a new…

Read More

Comments FTW!

Can you tell me what this const represents? 1: private const int MINIMUM_WORD_OCCURRENCES_TO_INCLUDE_DEFAULT = 1; What about if I include this helpful comment? 1: /// <summary>The Default Minimum Word Occurrences To Include</summary> 2: private const int MINIMUM_WORD_OCCURRENCES_TO_INCLUDE_DEFAULT = 1; The point, kids, is that comments should provide some insight into the variable (or method, or…

Read More