▲ | TheRoque 6 days ago | ||||||||||||||||
Both are valid, if your code is slightly complex it's invaluable to run it at least once with a debugger to verify that your logic is all good. And using logs for this is highly inefficient. E.g. if you have huge data structures that are a pain to print, or if after starting the program you notice that you forgot to add some print somewhere needed. And obviously when you can't hook the debugger, logs are mandatory. Doesn't have to be one or the other. | |||||||||||||||||
▲ | twodave 6 days ago | parent [-] | ||||||||||||||||
> verify your logic This is what unit tests are for. | |||||||||||||||||
|