DEV Community

Discussion on: Debug or Refactor? The Coding Dilemma!

Collapse
 
fyodorio profile image
Fyodor

Debugging of course. Refactoring is not scalable. And you need to know your codebase and its flaws anyway, so if there's an issue, you need to dig and find it and not burry it under some other piles of code always risking to face it again. And don't forget to add a test after fixing, that will be a chef's touch.

Collapse
 
villelmo profile image
William Torrez • Edited

What mean scalable? Can i refactor a program in C?

Collapse
 
fyodorio profile image
Fyodor

Means it’s easy to refactor a pet project but if it’s a multi-app monorepo with intertwined network of dependencies you’ll question not only your choice of profession but life itself 😅

Thread Thread
 
villelmo profile image
William Torrez

😑