DEV Community

Discussion on: Debug or Refactor? The Coding Dilemma!

Collapse
 
ulisesserranop profile image
Ulises Serrano

I think that is depending on the problem to solve and the context. Complexity of the code and understand the business rules for example. if you can fix it is because you are an expert in this three options: in the business, in the language or both. I personally prefer debugging for the option one or two because is faster. The third option is only if the code is a disaster, complex and very old and exists one thing more modern to fix it easier.