DEV Community

Discussion on: How do you refactor personal projects?

Collapse
 
__orderandchaos profile image
Order & Chaos Creative

Refactoring a project is learning a new skill.

Collapse
 
scrabill profile image
Shannon Crabill

Refactoring a project is a skill in its self? Or to refactor means you've learned new skills?

Collapse
 
__orderandchaos profile image
Order & Chaos Creative

Well, both of course.

I get tired of the argument that "you ain't gonna need it".

It's important that we always refactor our code. Even if we never touch it again, the process itself is the most important part.

The skills we pick up as we refactor our code makes us more efficient at spotting opportunities to refactor and at quicker at implementing the changes.

Once you start refactoring everything you start to notice the consistencies in your codebase then you can decide whether or not it's worth abstracting them away.

Sure sometimes you can take an abstraction too far but you'll never know whether it's worth it or not without a lot of practice and experience.

The only way to get that is to refactor everything all the time.