Thursday, February 24, 2011

Software Craftsmanship - Meeting 6

Chronicles of the 6th Software Craftsmanship (SCISR) meetup.

This time, we discussed and practiced my own very beloved technique - called Refactoring.

During the session Itay Maman demonstrated a real life project that he needed to refactor for his company.

On the first part of our meeting, Itay refactored a very lengthy method in the CustomAction class, called actionPerformed.

Here is the initial code of that method.

You can watch the session here, where Itay demonstrated his approach and the refactoring steps he applied.



On the second part of the meeting, we practiced by refactoring the same code, but this time without the unit tests.

If you are familiar with Refactoring, then you should know that it is totally incorrect to perform it without the "safety net", i.e. unit tests.

However, Itay's genius idea, just proved to all of us that changing the code without having the confidence of "not breaking" the system (i.e. unit tests) is very hard and almost impossible.

As usual, I had a great fun. My hope that the community will continue to grow!

SCISR6

No comments:

Post a Comment