为现有代码编写测试可能是个挑战。
接下来的问题是有关代码编写的。
严格地定义命名约定和代码编写标准。
最重要的是,一定要为代码编写文档。
将应用程序代码编写为连续处理消息。
比固定大小的缓冲区方法更简单的代码编写
一些专业的代码编写做出了这个。
如何为尚不存在的代码编写测试呢?
How can you write a test for something that doesn't exist yet?
通过使用抽象缓冲区,您可以将代码编写为。
代码编写约定、规则和指导原则能降低检查难度。
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.
而如果在一开始就把代码编写得尽善尽美会不会更加方便和轻松呢?
Wouldn't it be easier if the code was just written well to begin with?
它还使得代码编写更简单,并避免了前面指出的可能的多次执行问题。
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.
我们或许可以在代码编写上显示卓越的进步,但在代码提交上却显然不足。
We could demonstrate fantastic progress in writing code, and no progress on delivering code.
过滤器扩展功能将帮助提供更完整的输入评估,同时减少重复代码编写工作。
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.
除此之外,当老的、未测试的代码被改变的时候,程序员应为代码编写新的测试。
Additionally, when old, untested code is modified, programmers should write new tests for that code.
应用推荐