Use it for a single built-in if that makes the code readable.
如果能够增强代码的可读性,可以对单个内置函数使用。
Everybody can write code readable to machine, but good programmer should write code readable to human.
谁都可以写机器能够懂得代码,但是优秀的程序员应该能写出人类也能理解的代码。
The second key to readable code is not to have too much of it, especially at the method level.
代码的可读性的第二个关键点,特别在方法级别上,是不要让每个部分做太多的事情。
There may be some better coding tricks to shorten this a bit, but I like to keep my code somewhat readable.
也许有一些更好的编码技巧来将代码缩短一点,但我喜欢让我的代码保持相当的可读性。
This last option is particularly useful in debugging because it makes the XML code more readable.
这最后一个选项在调试过程中特别有用,因为它使得XML代码更加可读。
Give things names that are long and clear enough that you understand what they are, but not so long and awkward that they make the code less readable.
所给出的命名应该尽量长且足够清晰以便您能理解其含义,但也不能过长或太过怪异,如果这样,代码的可读性就会受到影响。
Assignments and grading criteria don't mention any penalty or reward for clear, readable, well-written code.
分配和标准分级没有谈到任何惩罚或者对干净的、易读的、有条理的代码的奖励。
As you can see, the end result is some very clean, readable, and easy to maintain code.
如您所见,最终结果是一些非常干净、可读性强、且容易维护的代码。
Develop the habit of using good naming and smaller methods and structures to make your code more readable without having to comment what it does.
学会使用良好的名称和更短的方法,在不提供注释说明其用途的情况下提高代码的可读性。
Any confusion caused by the shorter name would be cleared up very quickly, and the shorter name would lead to much more readable code.
这个简短的名字所引起的疑惑很快就会迎刃而解,而简短的命名还会增加代码的可读性。
Fluent interfaces remove unnecessary noise from your syntax, allowing for more readable code.
连贯接口移除语法中不需要的繁杂干扰,从而实现更可读的代码。
XSLT 2.0 will soon be a final recommendation, and you can use it to make your code more readable.
XSLT 2.0很快就将成为最终的推荐标准,可以用它使您的代码更容易阅读。
The example is not complete, in order to keep the code more readable.
该例子并不完整,是为了让代码更加易读。
Considering the amount of functionality provided in SIMH, the code is easily readable and not as large as you may expect.
考虑到SIMH中所提供的功能数量,代码易于阅读并不像您预期的那样大。
Using design patterns in your PHP code is one way to make your code more readable and maintainable.
在PHP代码中使用设计模式可以使代码更容易阅读、更易维护。
One of the people listening to us record the podcast simply asked me why students coming out of our colleges today don't write good code (that is, readable, well-formatted, elegant code).
一个倾听我们记录的播客的人简单地问了这样一个问题:为什么当今大学毕业生不能够编写出干净的代码(也就是,易读的、结构合理的、优雅的代码)呢?
This is a nice convenience for making the SQL code more readable.
这个函数使SQL代码的可读性更好。
This can make test writing simpler and less error-prone, and also result in test code that is shorter and more readable.
这会简化测试的编写并减少错误,还会使测试更简短、可读性更好。
Why not do it in cfengine, and produce 100 lines of readable configuration code?
为什么不在cfengine中做呢?它产生100行可读的配置代码。
The title of the appendix is Documenting Our Program, but it's really a chapter on how to write readable code and follow established guidelines.
该附录的题目是Documenting OurProgram,而它真正是关于如何书写易读的代码及遵照已建立的指南的章节。
This article explored threads in Python and demonstrated the best practice of using queues to allieviate complexity and subtle errors, and to promote readable code.
本文研究了Python的线程,并且说明了如何使用队列来降低复杂性和减少细微的错误、并提高代码可读性的最佳实践。
The overall result is that the code is more readable and less prone to the kinds of off-by-one errors common to array indexing.
总的结果是代码的可读性更强,更不容易发生数组索引常出现的离一(off-by-one)误差。
To make this article's code snippets more readable, I use PHP asserts. For example.
为使本文中代码段的可读性更强,我采用PHPasserts。
After becoming comfortable with lambdas and closures, you may find yourself reducing code and creating more readable and reusable code by writing your own higher-order functions.
在适应了lambdas和closures以后,您可能会发现,通过编写您自己的高阶函数您已经减少了代码并创建了更多的可读与可用代码。
To name these quantities within the program and make the code more readable, we give these values symbols through the.equ operation.
要在程序内命名这些数量并使代码更易于阅读,可以通过.equ操作将符号赋予这些值。
Although there are many talented Perl programmers who write well-documented and readable code, these folks aren't as common as they could be.
尽管有许多天才perl程序员,他们编写可靠和可读的代码,但他们并不常见。
Yet another conclusion from Reeves' essay revolves around the importance of readable design, which translates to more readable code.
Reeves论文中的另一个结论是围绕可读设计的重要性的,可读设计又转换成更加可读的代码。
Beside readable code we introduced a simple caching similar to the fragment caching found in Rails views.
除了我们介绍的高易读性的代码,我们还介绍了一种简单的,类似于Rails视图中使用的碎片缓存的缓存技术。
In the book, the Art of Readable code by Boswell and Foucher, the authors stressed on the importance of lightweight code bases.
在Boswell和Foucher著的《阅读代码的艺术》一书中,作者强调了轻量级代码库的重要性。
In the book, the Art of Readable code by Boswell and Foucher, the authors stressed on the importance of lightweight code bases.
在Boswell和Foucher著的《阅读代码的艺术》一书中,作者强调了轻量级代码库的重要性。
应用推荐