Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Refactoring 101 for Complete Beginners

DZone's Guide to

Refactoring 101 for Complete Beginners

· Java Zone ·
Free Resource

Get the Edge with a Professional Java IDE. 30-day free trial.

Working in the field for a while, I find that new folks in the field have a problem with refactoring. I think the primary problems are:

  • Code without tests is dangerous and frankly scary to refactor
  • It's really easy to copy/paste code, and if you don't have to support and bug fix things, the merits of clean and concise code are lost
While I don't claim to fix anything, here's a quick guide on how/why to refactor (for complete newbies):

Get the Java IDE that understands code & makes developing enjoyable. Level up your code with IntelliJ IDEA. Download the free trial.

Topics:

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}