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.







































