• Post Reply Bookmark Topic Watch Topic
  • New Topic

J2EE Refactorings

 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is refactoring ?
Is it re arranging the code so as to make maintenance easier?
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stop what you are doing right now and run out and get a copy of Refactoring: Improving the Design of Existing Code! It fundamentally changed the way I looked at code.
In the meantime, check out Martin Fowler's Refactoring Home Page.
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Chris you scared me by using Stop as the first word!
Thanks for the resources.
Originally posted by Chris Mathews:
Stop what you are doing right now and run out and get a copy of Refactoring: Improving the Design of Existing Code! It fundamentally changed the way I looked at code.
In the meantime, check out Martin Fowler's Refactoring Home Page.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It fundamentally changed the way I looked at code.

Me too.
 
Juan Rolando Prieur-Reza
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By the way, The Core J2EE Patterns (Alur, et al 2003) includes refactorings in conjunction with the Design Patterns. These refactorings are at a higher level, generally speaking, that is appropriate to Architectures, Tiers, and patterns with many collaborating classes. This is in contrast with Fowler's book (mentioned previously here) that introduces refactorings, but is often more at a line-by-line coding level (that's good too, don't get me wrong).
John
 
Deepak Alur
Author
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Pradeep Bhat:
What is refactoring ?
Is it re arranging the code so as to make maintenance easier?

Pradeep,
As Chris suggested, i would highly recommend Martin Fowler's "Refactoring" book. While his techniques are mostly related to code, we have used his approach and elevated it to a higher level of abstraction for J2EE. We discuss refactorings primarily as a way to improve existing design by applying one or more of the Core J2EE Patterns. We feel refactoring and patterns become a powerful pair of tools for application designers/developers to continuously evolve and improve your system. In our 2nd edition, we document 14 J2EE refactorings and continue to work in that area as we go forward.
As you mention, in addition to making maintainance easier, several other reasons for refactoring include (paraphrasing from Martin Fowler's book) design improvement, ease of understanding, maintainability, performance, fixing bugs, and productivity.
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Deepak!
I think I need your book the most
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Deepak,
Are you planning to write Java design patterns book?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!