I am pretty sure that most of the times, us developers have heard the
following line from some senior personal "Why don't you code it clean
the first time". Well in fact I have heard this many times as a developer
and have told this to my juniors many times as well.
But
when you dig deep, you begin to ask your self, Is there anything called
coding clean these days. With the business demands, systems evolving,
pressure to fix or develop faster etc... we as developers are tide down
to quickly hash code and release! in fact all these new
Agile methodologies and time boxed sprints are not making it any
more easier.
So how do we make sure that we keep our code
maintainable, clean and effective... We use a simple term called "Code
Refactor".
So what really is refactoring...
Full Article - http://cleancoderefactoring.blogspot.com/