Skip to content

Should I refactor perfectly working code? #22502

Answered by glemaitre
avm19 asked this question in Q&A
Discussion options

You must be logged in to vote

We don't like changing thing just for the style :)
However, making maintenance work to make the code easier and keep it up to date with some other development is completely legit. It is always difficult to say in advance what we would agree to refactor and what we would not without seeing the change.

Basically, I would accept a refactor:

  • if it simplifies the codebase (code reduction and a better understanding of the algorithm after refactoring)
  • if we ensure it is still well tested
  • does not incorporate style changes
  • only touch to private API (meaning not touching the user side). Normally our tests ensure it.

So regarding the change for declaring abstract methods, we need to actually see …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@avm19
Comment options

@glemaitre
Comment options

Answer selected by avm19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants