Browse by Tags

Please question the need for whitespace
Tuesday, March 18, 2008 12:02 AM
I have blogged about this before but I think it is a common problem that is worth restating since it affect developers across our industry.  I noticed the following method recently and again the curious separation of sections by whitespace popped into my head: 1: private void CalcHeaderOffsets() 2: { 3: this .fs = new FileStream( assemblyPath, FileMode.Open... Read More...
Refactoring example in C# and VB.NET
Monday, March 26, 2007 7:57 PM
Our very own Bryant Smith has revamped his conversion of Martin Fowler's refactoring example (originally in Java) to now cover both C# and VB.NET. You can find the article here with the relevant downloads and walkthrough. Martin Fowler's example works nicely because it is a simple class structure that is easy to understand. It also has enough complexity to allow... Read More...
Whitespace is a code smell
Friday, March 23, 2007 12:39 AM
Do you space out your code so there are line breaks between the pieces of logic? Why do you think this is necessary? Typically this is done to separate chunks of logic so that they can be easily distinguished. If it is a complicated enough chunk, then it may even make sense to put a comment at the top of the chunk. At this point, the Agile police will jump on... Read More...
More Posts

This Blog

Syndication