My boss asked me to propose how we can effectively fight bugs in our software and avoid to have bugs appear again.
These are the three main counter measures I want to establish:
* automated tests
* functional programming where it makes sense (separate pure functions from side effects to reduce load on mind what has to be checked)
* More honest exceptions (don't swallow errors as console.log)
I am sure different scenarios require different measures, but I think these are the most effective we can take to reduce debugging time when something happens.