当断言失败时,非常有必要提供易于理解的错误消息。
When the assertions fail, it becomes very important to provide error messages that are easy to understand.
使用采用请求-响应交互模式的同步协议,并定义最终用户可理解的错误。
Use a synchronous protocol with a request-response interaction pattern, and define faults that are understandable by the end user.
程序要么回避这些可理解的错误,要么协助用户探索不同的选择。
An application has the choice of either rebuffing those perceived mistakes or assisting users in their explorations.
一旦找到错误,它必须指出错误的真实原因,最好是提供人们能够理解的错误消息。
When it finds a mistake, it must point to the true reason for it, preferably with an error message that humans understand.
而初学者由于声乐知识的缺乏和对专业理论上理解的错误,是很容易走进学习声乐过程中的误区的。
Vocal and beginners because of a lack of knowledge and understanding of the theory of professional error, is easily walked into the process of vocal learning of the error!
通过使用本文中介绍的技巧,我们可以构建更好的解释器,它们可以生成像您自己喜欢的编译器中一样的有用的、容易理解的错误消息。
By using the tips and tricks in this article, you can build interpreters that also produce the kind of useful, easily understood error messages that you would find in your favorite compiler.
对品格的真正考验是我们是否能从错误中吸取教训,通过理解行为背后原因,探索如何避免未来出现类似问题。
The real test of character is whether we can learn from our mistake, by understanding why we acted as we did and then exploring ways to avoid similar problems in the future.
如果你学会从别人的角度去理解事情,你就能很快地从你所犯的错误和你认为别人犯的错误中学习。
If you learn to understand things from another person's point of view, you will be able to learn very quickly from the mistakes you make and the mistakes you think other people have made.
它可能包括发音或语调模式上的小错误或小困难,这些小错误并不影响整体的可理解性。
It may include minor lapses, or minor difficulties with pronunciation or intonation patterns, which do not affect overall intelligibility.
这是他们的根本错误,在他们看来,他们,敌人,干涉对文学的理解。
That's the fundamental mistake, as they see it, that their enemies of various kinds make in their understanding, in their approach to literature.
这类人到处都是,跟他交谈个五分钟,即可暴露出把教学堪比教育的理解有多错误。
We have seen many such, and five minutes' talk with one of them is quite enough to show that the understanding of instruction as synonymous with education is erroneous.
RBD通常导致人们表现出他们的梦境,就像人们对于梦游的错误理解。
RBD usually results in people acting out their dreams, like the false perception people have of sleepwalking.
调查结果不是最重要的——我对他们实验的理解一样,是一条错误的信息(会导致不一样的结果)。
This is not to question the importance of the findings—just the missing piece of information as I understand their experiments.
我们对一个人的信任、尊敬和信心不断增加,我们就越能理解并容忍他们的错误。
Our trust, respect and confidence in that person grows and we are more understanding and tolerant of their mistakes when they happen.
在这个例子中,规划扑克起到了交叉检查的作用,防止对于用户故事范围的错误理解。
In this case, planning poker serves as a cross-check, preventing a gross misunderstanding about the scope of the user story.
笔者在两年前开始关注这个问题,并持有以下观点:保留原有错误,可以更好的理解错误的本质。
I examined this issue two years ago, and I support repeating the mistake in order to ensure people understand the nature of the error.
如果活动内外的数据或控制流与理解导致建模错误的原因有关,我们将使用此图上半部分中的符号。
If the data or control flow in and out of activities is relevant to understand the cause of the modeling error, we use the notation in the upper half of the figure.
不幸的是,所有这些将钱花向国内的建议都错误理解了外汇储备金的本质。
Unfortunately, all of these proposals to spend money at home misunderstand the nature of foreign reserves.
因此,仅仅通过检查源代码是很难预测和理解这些错误发生的可能性和发生的情景的。
It is extremely hard to predict and comprehend these possibilities and scenarios just by inspecting source code.
这造成了一种错误的理解,认为H1N1并非一种致命疾病。
It created the false perception that H1N1 is not a life-threatening illness.
在详细讨论上述三个原因之前,我们首先了解一些背景知识,以便更好地理解这种错误发生的原因。
Before considering each of the three causes above in more detail, let's first look at some background to help you better understand why this happens at all.
坏事如上述描述,是错误的计划,理解的匮乏,关注的缺失,和无规矩的结果。
Bad things, as described above, are the result of poor planning, a lack of understanding, broken focus, and little discipline.
这种在用户和我们开发部门之间缺乏通讯的结果将导致潜在的在多种it任务的错误理解。
This results in poor communication between the business users and our development department resources as well as the potential for miscommunication among the various IT roles.
经常,记住的是程序员们对问题的错误理解,而不是此领域的专家对问题的实际描述。
More often than not, what gets captured is the programmer's flawed interpretation of the problem, not the problem that the domain expert actually described.
他说,只要审慎利用,鼓励谨慎的投资者,提醒其他市场公司面临的被错误理解的风险,卖空的确可以被视为一种有利的社会行为。
Used judiciously, to reward attentive investors and alert the broader market to ill-understood risks that a company faces, shorting may indeed be seen as a positive social act, he says.
他说,只要审慎利用,鼓励谨慎的投资者,提醒其他市场公司面临的被错误理解的风险,卖空的确可以被视为一种有利的社会行为。
Used judiciously, to reward attentive investors and alert the broader market to ill-understood risks that a company faces, shorting may indeed be seen as a positive social act, he says.
应用推荐