For handled exceptions, you need to strike a balance in your error messages between being helpful to the naive user and giving away too much information to the unscrupulous hacker.
对于已处理的异常,需要在错误消息中权衡:对无经验的用户有帮助,但不要向无道德的黑客透露过多信息。
2
This habit is about finding the balance between doing enough error handling and not doing so much gold plating that your code is never finished.
这一习惯要求您编写足够的错误处理代码,而不是编写对付所有错误的代码,以致代码迟迟不能完成。
3
The experiment results show that this method can decrease the influence of measurement error on identifying precision and improve balance precision.