Loading ...
Sorry, an error occurred while loading the content.

Refactoring Challenge: Michael Hill’s “Double-Dog-Dare” on an XWork class

Expand Messages
  • JeffGrigg
    Michael Hill issued a daring Double-Dawg-Dare for people to give him something significant to refactor as an example. He accepted the nomination of the
    Message 1 of 2 , Jan 10, 2010
    • 0 Attachment
      Michael Hill issued a daring "Double-Dawg-Dare" for people to give him something significant to refactor as an example. He accepted the nomination of the AnnotationValidationConfigurationBuilder class in the opensymphony XWork library, and is in the process of refactoring it, and publishing the refactoring steps in screen casts. It should be interesting!

      The screencasts:
      http://anarchycreek.com/doubledawgdare-series/

      "Before and after" versions of his code are also available there.
      _ _ _

      To assist with this effort, I spent a day writing JUnit tests for the class.
      See "JUnit for MichaelHill DoubleDawgDare Refactoring.zip" file at
      http://tech.groups.yahoo.com/group/extremeprogramming/files/

      (I downloaded and built all the code from http://www.opensymphony.com/xwork/ But I found that the existing tests did not offer good coverage of the class we are refactoring.)
    • JeffGrigg
      See also: http://tech.groups.yahoo.com/group/testdrivendevelopment/message/32206 and the original post:
      Message 2 of 2 , Jan 10, 2010
      • 0 Attachment
      Your message has been successfully submitted and would be delivered to recipients shortly.