• .NET

    Bad code exposed! Do you really know when your code smells?

    I’ve seen really bad code in my day. I have seen it in legacy code bases, code reviews on greenfield projects, and worse: I’ve even seen it in my own code. In fact, I can open up just about any open source project and immediately detect the existence of potentially bad code. I am not bragging… it is not as though I am incredibly gifted or that I have superhuman powers. I’ve experienced enough issues from bad code to intuitively pick up on much of it, and the rest of my knowledge comes from reading books on the subject of writing...
    September 24, 2012
  • .NET

    5 Things You Should Know About Refactoring in C#

    There are many misconceptions among developers and development managers about refactoring. Perhaps a consultant used refactoring as an excuse to spend needless cycles reading blogs, or maybe a “refactoring” was blamed for a large swath of bugs found in a release. Regardless of the source, there are development shops that cower in fear or scream in terror when the word “refactoring” is uttered aloud. The problem is they were frightened by something other than refactoring. I hang out with developers around the globe at conferences, user groups, and sometimes just to grab a bite to eat. I enjoy discussing code and long...
    September 10, 2012
  • .NET

    Top 5 Reasons Why You Should Refactor Your Code

    I am a huge proponent of writing quality code, a view that is shared by many of my colleagues. Unfortunately, I do encounter those who do not share my enthusiasm. Their view is often one of “Get It Done,” whereas I take the position of “Get It Done Right.” When discussing refactoring, the “Get It Done” developer often brushes it aside as a waste of time. I want to address that crowd, and anyone else who eschews refactoring, with my top 5 reasons why you should refactor your code. Enjoy! 5. Your Code Sucks Broken Bridge / jollyUK / CC BY How often do you write an...
    August 20, 2012