Consolas is easy on the eyes

29. October 2007
Seeing how other developers customize their environments is invaluable.  I know this information is over a year old.  But whatever, it's worth blogging about.  While watching a webcast about C# best practices, the first thing I noticed was the font the speaker was using for his lecture.  It was really nice on the eyes.  So I Googled for "Visual Studio best fonts".  Once again, Google proves that it is my friend and the first result was the download page for a Visual Studio font pack.  So I downloaded and installed it from Microsoft's Download Center to check it out.  Instant success!  It was the same one the speaker was using.  From now on, I'm coding with this font in Visual Studio: Consolas

Code

When to use StringBuilder for concatenation rule of thumb

20. October 2007

Because String is an immutable type, the variable value can change but the original data value has to be discarded from memory and a new data value has to be created in memory.  StringBuilder, on the other hand, was designed for multiple string operations. 

So, if you have a case where there is a loop and you have to manipulate data in a string more than maybe 10 times, the code will be better off using StringBuilder.  But do use plain old String concatenation if you want to do something simple like this:

string sometext = "You should use " + "StringBuilder" + " in large loops or you are just loopy.";

Code

Peopleware sounds like a great book

17. October 2007
I ran across this interesting article today called The Productive Developer.

Code

One of my favorite quotes

14. October 2007
Music washes away from the soul the dust of everyday life.
   ~Berthold Auerbach

Music

Coffee

14. October 2007
It is by coffee alone that I set my mind in motion. It is by the juice of java that thoughts acquire speed, the teeth acquire stains, the stains become a warning. It is by coffee alone that I set my mind in motion...

Code