我插话道,“返回一个错误编码不可以吗?”
如果不是一个严重的错误,我就可以使用一个错误编码作为返回值吗?
So if it wasn't such a severe error, I could just bail out with an error code?
这些问题是错误编码的结果,在大部分情况中,很容易写出没有问题的代码。
They're a result of bad code, and in most cases, code without the problem would have been easy to write.
某些派别的信徒支持使用异常来检查参数和其他的前置条件,使用错误编码来报告程序中出错的处理。
Some disciples espouse using exceptions to check parameters and other preconditions, and error codes to report processing errors within the function.
在1.2.1上出现了一个程序错误,你得到的邮件中包含了一个错误编码的密码。你的邮件看起来内似与这样。
There is a bug in 1.2.1 where the email you get includes an incorrectly encoded password. Your email will look similar to this.
一个称为oraerror的简单的报告错误的的工具,它是Oracle程序员能够快速的找到错误编码的意思。
A simple error-reporting tool called oraerror lets Oracle programmers quickly locate the meaning behind error codes.
到 127之间的值是错误编码(在 /usr/include/sys/errno.h中显示),而 128 到 512 之间的值属于异常(在 /usr/include/sys/m_except.h 中显示)。
Values between 1 to 127 are error numbers (shown in /usr/include/sys/errno.h), whereas between 128 to 512 are exceptions (shown in /usr/include/sys/m_except.h).
然而,在现实世界中,我们常常见到由缺少方便的函数而导致的编码错误。
In the real world, however, we have seen very frequent coding errors caused by this lack of convenient functions.
然而,在现实世界中,我们看到由于缺乏便利的函数导致频繁的编码错误占了80%的情况,这样做的确有意义。
In the real world, however, we have seen frequent coding errors caused by the lack of a convenient function to cover the 80% of cases where it does make sense.
不幸的是,错误和糟糕的编码实践不仅不太专业,而且可能减缓应用程序的速度。
Unfortunately, errors and bad coding practices are not only unprofessional but can also slow down your application.
我们已经将编码错误定义成程序员在实现需求时产生的错误。
We have defined coding bugs as errors by the programmer in implementing the requirements.
在组评审中,您能够摆脱那些琐碎的和令人为难的编码错误和矛盾的困扰,将精力集中到设计问题上面。
In group reviews, you can focus on design issues without being side-tracked by trivial and embarrassing coding errors and inconsistencies.
反过来,这又可以帮助开发团队检测(大多数情况下是校正)编码阶段的错误。
This, in turn, helps development teams detect - and, in most cases, correct - problems during the coding phase.
通过告知这个构建的错误,开发者们能够调查并识别来自于他们编码的错误。
By including the build failures, developers can investigate and identify faults that stem from their code.
本文介绍JNI用户最常遇到的10大编码和设计错误。
This article covers the 10 most common coding and design errors that users of the JNI make.
当浏览器忙于应付错误和糟糕的编码实践时,加载不仅需要更多时间,还会导致难以调试的错误。
When the browser is fighting errors and bad coding practices, loading not only takes more time but can also lead to difficult-to-debug errors.
编码错误是由程序员在实现需求时的错误而引起的。
Coding bugs result from programmer errors in implementing the requirements.
本机代码可能尝试访问具有无效输入(如过时的本地引用)或编码错误的对象。
Native code may attempt to access an object that has invalid input (such as a stale local reference) or that is coded incorrectly.
如果您发现了一个XML编码错误,您将看到一个输出错误。
If you happened to make an XML coding error, you will see an error output instead.
要经常跟本地的利益干系人说离岸团队犯了哪些编码上的错误。
Communicate frequently about the coding problems created by offshore team with onsite stakeholders.
例如一个这样的表单,其中包含一个编码错误的按钮,每当按这个按钮时,都会导致一个可重复的崩溃。
One example is a form that includes a badly coded button that always results in a crash when pressed.
虽然这不会造成严重错误,但这是一个编码错误。
That won't cause a fatal PHP error, but it is a coding error!
这些编码使WS - i测试失败后得到以下错误信息。
These encodings failed the WS-I tests with the following error message.
我认识到接触过JSP、PHP、ASP或ColdFusion的学员经常对XSLT抱有不正确的设想,这种设想会造成错误的编码。
I realized that students who have been exposed to JSP, PHP, ASP, or ColdFusion often make incorrect assumptions about XSLT; such assumptions can lead to coding mistakes.
典型错误是遗漏路径片断(Path Segment),以错误的顺序获取它们,或者忘记URL编码的东西。
Typical mistakes are leaving out path segments, getting them in the wrong order, or forgetting to URL encode things.
如果不支持您所指定的编码,则DOMWriter将发出致命错误。
If the encoding you've specified is not supported, DOMWriter issues a fatal error.
降低客户端编码错误。
我只想看到错误和不良编码实践,但是不想看到无害的提示。
I prefer to see the errors, any bad coding practices, but not the harmless notices. Therefore, replace the default value of error_reporting as follows.
编码错误会导致不正确的程序行为(偏离需求的行为)。
Coding bugs cause improper program behavior (behavior deviating from the requirements).
这可能说明在标签的编码过程中出现了错误,或者是出现了假冒产品。
This could signal an error in encoding of the tag, or it could signal a possible counterfeiting.
应用推荐