re: Human Readable JavaScript VIEW POST

TOP OF THREAD FULL DISCUSSION
re: That's a really good principle to work by. Refactor only if: It has bugs A junior dev would be stressed out trying to read it
 

I think you should fix it, not refactor if it has bugs.
By definition, refactoring does not change behavior.

True, but when we encounter bugs, don't we ask what caused the bug? Too many moving parts? Unclear data-flow? In the postmortem of a bug-fix, the topic of refactoring doesn't come up?

Well said Ezell, I agree that refactoring during a bugfix rewrite is a good idea for sure!

code of conduct - report abuse