Visual Studio and TDD: Better late than never

After hearing that UML is touted as a “next big thing” in Visual Studio 2010, I must admit I was less than elated. Since I am hardly a “new kid on the block”, I freely admit that I remember that quirky diagramming tool called Visual Modeler that shipped with Visual Studio 6.0. (“Ten years after” already?)

YAGNI is not SLACKING!

Sometimes I hear YAGNI principle invoked in a way that it is clearly misinterpreted. For example “Maybe you do not need to refactor this code just yet” or “Maybe you do not need all those unit tests”. Thing is, to be able to do YAGNI, you need to have your code refactored and covered with tests. You need continuous integration and automated builds. Without these practices, once you need to implement a new feature in JIT fashion, things will inevitably start to break,

Another Free C# Refactoring Tool from Devexpress

Developer Express have released another free C# tool that includes “a fresh selection of hand-picked features taken from CodeRush and Refactor! Pro.”

Map two classes with one-to-one relationship to a single table in LINQ to SQL.

After performing a refactoring on a class and extracting associated class, I had to make my classes map to a single table in database. For that purpose I used the usual Association attribute.

Professional Refactoring in C# and ASP.NET published!

you can already order Professional Refactoring in C# and ASP.NET from Amazon and take a look at some excerpts from the book at wrox.com

Code, aesthetics and symmetry

It might sound funny to mention aesthetic qualities like symmetry when speaking about source code… It has to do with inner workings of our brain. These qualities are the way to communicate with fellow programmer on another level.

Dealing with legacy code

First of all, do not discard rewriting application from scratch without giving it a really good consideration. In my experience, it is often much easier to develop an application from zero when compared with refactoring legacy version; it is also much more difficult to refactor the legacy code than it might look at the first site. Do an experiment.

Collaboration, reward and “wisdom of crowds”

After I had this rather frustrating experience with unhelpful answers on more than one occasion, I started to note a certain pattern. One type of noise makers would make some general or seemingly inoffensive comment, something like “This is interesting question; I would also like to know how it is solved.” Or “I really don’t know how to do that, but you could try looking at documentation at msdn, here is the URL that talks about the subject…”

“Professional Refactoring in C# and ASP.NET” available with discount for pre-order at Amazon

“Professional Refactoring in C# and ASP.NET” available with discount for pre-order at Amazon. A good catch for early birds 😉

VB6 Migration Today

VSJ has just published an article follow-up where I deal with migration in context of .Net 3.5 and Visual Basic 2008.