Home Store My Account Forums Support/Contact Beta About (empty)

 Secret Server - Team Blog
Giving Secret View a System Font (3/27/2008)

One of the questions that I sometimes get from customers is, "I want the information on the Secret View page to display in a system font" The reason for this is it makes it easier to distinguish between O's and zeros; More >>

Secret Server 4.1 coming - visual keyboard (2/24/2008)

Here is a new feature coming in Secret Server 4.1 - it is the visual keyboard and is a configurable option for the login screen.  More >>








Article - Refactoring Example in C# and VB.NET



Bryant Smith
Senior .Net Developer
Thycotic Software Ltd.

In the Fall of 2003, I began doing presentations on refactoring based off Martin Fowler's book 'Refactoring: Improving the Design of Existing Code'. It is an excellent book that is definitely worth buying, whether you want to do Extreme Programming or not. I chose refactoring as my introductory topic to my colleagues over and above TDD, because I believe that it proves that change can be done on the cheap. Proving that change can be done safely and inexpensively when promoting XP may answer the most 'what ifs' initially.



Martin Fowler's Excellent Book

Both links below include the handout in either VB.Net or C#. With the author's permission, it is based off chapter one and the Form Template Method refactoring in Martin Fowler's book. It reads word for word from the book except that it is in C#/VB.Net, some quick notes regarding TDD and unit tests, and one refactoring based on a C#/VB.Net feature that is an improvement over Java. These notes will be clearly indicated as my own and not the author's.



Refactoring in VB.NET

In the Fall of 2003, I began doing presentations on refactoring based off Martin Fowler's book 'Refactoring: Improving the Design of Existing Code'. It is an excellent book that is definitely worth buying, whether you want to do Extreme Programming or not. I chose refactoring as my introductory topic to my colleagues over and above TDD, because I believe that it proves that change can be done on the cheap. Proving that change can be done safely and inexpensively when promoting XP may answer the most 'what ifs' initially.

You can read my my main hand out by clicking
here. With the author's permission, it is based off chapter one and the Form Template Method refactoring in Martin Fowler's book. It reads word for word from the book except that it is in VB.Net, some quick notes regarding TDD and unit tests, and one refactoring based on a C# feature that is an improvement over Java. These notes will be clearly indicated as my own and not the author's.

Downloads:

  • Start the handout with this code.
  • You should end up with this code by page 49 in the handout.
  • The code after completing the handout.


Refactoring in C#

In the Fall of 2003, I began doing presentations on refactoring based off Martin Fowler's book 'Refactoring: Improving the Design of Existing Code'. It is an excellent book that is definitely worth buying, whether you want to do Extreme Programming or not. I chose refactoring as my introductory topic to my colleagues over and above TDD, because I believe that it proves that change can be done on the cheap. Proving that change can be done safely and inexpensively when promoting XP may answer the most 'what ifs' initially.

You can read my my main hand out by clicking
here. With the author's permission, it is based off chapter one and the Form Template Method refactoring in Martin Fowler's book. It reads word for word from the book except that it is in C#, some quick notes regarding TDD and unit tests, and one refactoring based on a C# feature that is an improvement over Java. These notes will be clearly indicated as my own and not the author's.

Downloads:
  • Start the handout with this code.
  • You should end up with this code by page 49 in the handout.
  • The code after completing the handout.


Links on Refactoring

  • Martin Fowler's Refactoring site
  • Wiki Site on Refactoring





  •