为现有代码编写测试可能是个挑战。
接下来的问题是有关代码编写的。
严格地定义命名约定和代码编写标准。
将应用程序代码编写为连续处理消息。
比固定大小的缓冲区方法更简单的代码编写
通过使用抽象缓冲区,您可以将代码编写为。
代码编写约定、规则和指导原则能降低检查难度。
Coding conventions, rules, and guidelines reduce code review effort.
不同的首选项甚至可能导致相互冲突的代码编写习惯。
Different preferences may even lead to conflicting coding practices.
下面我要用函数性代码编写这两个示例以使其尽可能地简单。
I'm going to write the examples in functional code to keep them as brief as possible.
的确,一些代码的复用,使将来的代码编写更为快捷、可靠。
Certainly some code could be reused, making the writing of future code faster and more reliable.
以尽可能少的代码编写您的应用程序,并且使容器来完成此项工作。
Write your application in as little code as possible and get the container to do the work.
也就是说,无法在详细的技术设计和代码编写之前得出正确的分析。
This was such that proper analysis was not undertaken in advance of the detailed technical design and coding.
真正重要的是本框架代码编写得很好,经过仔细调优和很好的测试。
What actually matters is that the framework code is well written and carefully tuned and well tested.
即使您的警报代码编写得非常恰当,集中化服务仍然具有绝对优势。
Even if your alarm code is written elegantly and well, there is a compelling advantage to a centralized service.
第四个概念是,尽可能多地用jQuery代码编写页面设置代码。
The fourth recommendation was to write as much of the page setup code in your jQuery code as possible.
它还使得代码编写更简单,并避免了前面指出的可能的多次执行问题。
It also leads to simpler coding and avoids the possible multi-execution problem identified earlier.
特别是将一些私有方法变成公有方法能够使这个代码编写起来更容易。
In particular, being able to change a few private methods to public would have made this code a lot easier to write.
为探究未知gui代码而编写测试比为非可视化代码编写测试要复杂。
Writing tests to explore unknown GUI code is more complex than writing tests for non-visual code.
首先应注意的一点是,这是以本机C代码编写的,以使性能最大化。
The first thing you'll note is that this is written in native C code for maximum performance.
对一个开发团队而言,针对代码编写测试案例自然可以增加集体的信心。
Writing test cases against code naturally increases the collective confidence of a development team.
用于创建和组合这些条件的自定义宏的添加将使代码编写过程更加轻松。
The addition of custom macros to create and combine those conditions could make the code more composable.
过滤器扩展功能将帮助提供更完整的输入评估,同时减少重复代码编写工作。
The filter extension helps provide more complete assessment of input while reducing repetitive code writing efforts.
有许多不同的代码编写约定,但它们的目的都是改善代码的可读性和可靠性。
The aim of coding conventions can be many and varied, but typically, conventions are established to improve readability, extensibility, and reliability of the code.
有了这种可视化图,只要代码编写违反了规则,可视化图就会立即反映出来。
Given this visualization, if code is written that breaks the rules, it will be immediately obvious.
作为一个令人愉快的副作用,这种代码编写的时候,能钻进来的bug更少。
As a happy side effect, fewer bugs will be injected while the code is being written.
除此之外,当老的、未测试的代码被改变的时候,程序员应为代码编写新的测试。
Additionally, when old, untested code is modified, programmers should write new tests for that code.
这样的代码编写起来很无趣,很容易被意外省略,也无法阻止攻击者子类化该方法。
This kind of coding is tiresome to write, is easy to omit by accident, and does not stop an attacker from subclassing the method.
代码编写约定又称代码编写指导原则或规则,它们是一组定义编程实践的指导原则。
Coding conventions, also coding guidelines or coding rules, are a set of guidelines that define programming practices.
不遵循语言规范的代码将无法执行,而不遵循代码编写约定的代码却依然能够执行。
Code that does not comply with the language specifications cannot be executed, while code that fails to comply with coding conventions may still run.
优秀的工程师编写代码会遵循命名惯例,代码编写紧凑、简单和不过度炫耀聪明。
Rockstars write code which follows naming conventions, code which is compact, simple and not overly clever.
应用推荐