Skip to main content
deleted 10 characters in body
Source Link
Jamal
  • 34.9k
  • 13
  • 133
  • 237

Do not use gotogoto as it is a clear sign of what is called spaghetti code. Dreza @dreza has provided a much better solution. You routines should be tightly cohesive, meaning they do one thing and they do it well. Only wrap calls in trytry/catchcatch if the call might throw an exception, then handle the exception and continue execution.

I hope this helps.

Do not use goto it is a clear sign of what is called spaghetti code. Dreza has provided a much better solution. You routines should be tightly cohesive meaning they do one thing and they do it well. Only wrap calls in try/catch if the call might throw an exception then handle the exception and continue execution.

I hope this helps.

Do not use goto as it is a clear sign of what is called spaghetti code. @dreza has provided a much better solution. You routines should be tightly cohesive, meaning they do one thing and they do it well. Only wrap calls in try/catch if the call might throw an exception, then handle the exception and continue execution.

Removed link to user's blog as it didn't have anything to do with the answer.
Source Link
sepp2k
  • 9k
  • 2
  • 38
  • 51

Do not use goto it is a clear sign of what is called spaghetti code. Dreza has provided a much better solution. You routines should be tightly cohesive meaning they do one thing and they do it well. Only wrap calls in try/catch if the call might throw an exception then handle the exception and continue execution. Check out my blog for some tutorials http://www.refactorthis.net

I hope this helps.

Do not use goto it is a clear sign of what is called spaghetti code. Dreza has provided a much better solution. You routines should be tightly cohesive meaning they do one thing and they do it well. Only wrap calls in try/catch if the call might throw an exception then handle the exception and continue execution. Check out my blog for some tutorials http://www.refactorthis.net

I hope this helps.

Do not use goto it is a clear sign of what is called spaghetti code. Dreza has provided a much better solution. You routines should be tightly cohesive meaning they do one thing and they do it well. Only wrap calls in try/catch if the call might throw an exception then handle the exception and continue execution.

I hope this helps.

Source Link

Do not use goto it is a clear sign of what is called spaghetti code. Dreza has provided a much better solution. You routines should be tightly cohesive meaning they do one thing and they do it well. Only wrap calls in try/catch if the call might throw an exception then handle the exception and continue execution. Check out my blog for some tutorials http://www.refactorthis.net

I hope this helps.