Good programmers strive for code clarity in addition to code performance.
优秀的程序员除了使代码具有良好性能外,还应努力使代码清淅。
This is going to be maintenance hell if new items are added and is not a good solution regarding both code clarity, maintainability and backwards compatibility.
这是要添加新项目,如果没有关于代码清晰一个好的解决方案是维护地狱,可维护性和向后兼容性。
At the expense of defining an additional interface and making the client code a little more verbose, this approach certainly has the edge for me when it comes to code clarity.
虽然代价是定义一个额外接口,还会使客户代码更长一些,但是这项技术对于代码清晰性来说具有优势。
Not all code changes have to be related to a user story, I just did that in all my examples for clarity.
不是所有的代码变更都必须与某个用户故事相关的,在例子中,我只是为了描述的清晰才这样做。
The goal of refactoring and rewriting is, to improve the sanity of the system by improving the code readability, structure and clarity.
重构和重写的目标,都是要通过提高的代码的可读性、结构和清晰性,从而提高系统的健壮性。
Much of your code will have the simplicity and clarity of code written in your favorite dynamically-typed language.
你的大多数代码会简单清晰,就像是用你最喜欢的动态语言写出来的一样。
Note that this code is optimized for clarity, not efficiency: it buffers too much.
请注意,这段代码是为了清楚起见,而没有考虑效率:它缓冲的内容太多。
Note: The necessary exception handling logic has been excluded for clarity in most of the code examples in this article.
注释:必要的异常处理逻辑已经排除在这篇文章中的大多数样例代码,这主要是为了代码更清晰。
The code samples use the JSP scripting language where appropriate for clarity.
代码示例使用jsp脚本语言是为了表示清楚。
Also, the code provided here has the clarity that only a 14-year-old programmer can provide.
此外,这里提供的代码很清晰,是由年仅14岁的程序员提供的。
Like Guido van Rossum, I value the ability to read and understand code over trying to get the last little bit of performance out of my programs at the expense of clarity.
像Guidovan Rossum一样,我在试图以清晰度为代价从我的程序中得到最后一点性能之上,重视读和理解代码的能力。
The Go authors have tried to let clarity of code guide all of their decisions regarding the design of the language.
Go语言的作者试图将代码的清晰明确作为设计该语言作出所有决定的指导思想。
Please note that for clarity I have omitted the actual hex for the image; this is available in the downloadable version of this code, write.c (see Resources), for those who are interested.
请注意,为了清晰起见,我省略了该图像的实际十六进制值;如果对它们感兴趣,可以从这段代码的可下载版本write . c(请参阅参考资料)中获得它们。
Listing 2 shows you how to handle the validation phase (with some code omitted for clarity).
清单2显示了如何处理验证阶段(为了保持简洁,省略了一些代码)。
The code is shown in Listing 2 (log messages have been removed for clarity).
代码如清单2(为清楚起见,已删除了日志消息)所示。
Listing 2 shows the inheritance tree (with the instance counter and constructor code removed for clarity).
清单2显示了这个继承树(为了清晰起见,删除了实例计数器和构造函数代码)。
The code you receive has a lot of language translations of the title, which I have removed for clarity.
您收到的代码包含了使用许多语言翻译的标题。为了保持简洁,我把它们删除了。
To wrap it up, examine the general structure of the program, in Listing 1. For reasons of clarity, I shortened the code shown here with a short description of each method.
总之,这个程序的总体结构如清单1所示。出于简明的原因,我对每个方法都进行了简短的说明,并借此缩短了需要显示的代码。
Another important principle is that in the first case we don't mind having some duplicate code. If it's clear how to eliminate duplication, we do, but we are willing to wait for clarity.
还有另一个重要的原则,在第一个案例中我们不介意有一些重复的代码,如果能够明确如何消除重复代码,我们愿意这么做,但现在还没有,我们仍然希望能找到清晰的解决方案。
In the "key" element, the default values for "not-null" and "update" are false and true, respectively. The above code shows them for the purpose of clarity.
在“key”元素中,“not -null”和“update”对应的默认值是false和true,上述代码为了明确这些取值,将它们写了出来。
In short time, you will find that well-composed code imparts much greater clarity to your system.
短期,你会发现这样的代码给予系统更好的清晰度。
Note that this code calculates the tangent each time - this is only for clarity.
注意:这代码每次只计算正切—这只是为了清晰。
This code can stop the whole hook load, clarity, we can make reference to the safety program.
这个代码可以阻止全局钩子的加载,清晰明了,可以参考于安全方面的编程。
This code can stop the whole hook load, clarity, we can make reference to the safety program.
这个代码可以阻止全局钩子的加载,清晰明了,可以参考于安全方面的编程。
应用推荐