DEV Community

Discussion on: Refactoring is not so scary

Collapse
 
rhymes profile image
rhymes

Nice article Maciej!

A couple of things I would like to add:

  • tests :-) refactoring is definitely easier (and less scary) if you have tests for the code
  • code linting tools: most programming language and editors can easily integrate configurable linting tools so you can have a common setup for you and your team.

I'm not fluent in Java but in Ruby I always use tools like rubocop that can automatically tell you stuff like "your line is too long", "your method is too long", "hey there are too many parameters" and so on.

Bye!

Collapse
 
spalonytoster profile image
Maciej Posłuszny

Hey, thanks for your feedback and stopping by!