Code readability is improved by removing one level of nested parentheses.
通过减少一层嵌套的括号使代码的可读性得以改善。
Static typing possibly enables better security and definitely improves code readability in places.
静态类型可以提供更好的安全性,而且显然还可以提高代码的可读性。
This is another one of the many seemingly small features in Groovy that facilitates code readability through the reduction of noise.
这也是Groovy 众多通过减少冗余而改善代码可读性的特性中的一种。
The goal of refactoring and rewriting is, to improve the sanity of the system by improving the code readability, structure and clarity.
重构和重写的目标,都是要通过提高的代码的可读性、结构和清晰性,从而提高系统的健壮性。
Some readers have asked to me what is the better way to organize a CSS file to optimize code readability and simplify code management.
一些读者曾问我如何以更好的方式组织CSS文件来改善代码的可读性并简化代码的管理。
The default function selector is a code fragment, similar to what follows. Notice that the Exception handling is removed for better code readability.
缺省函数选择器是一个代码片段,与以下所示类似。
Declaring a return type explicitly for a function improves code readability, since the type of data that the function will return is immediately clear.
为函式明确地宣告传回型别,可增进程序码的可读性,因为函式传回的资料型别会变得清楚易懂。
It would save time and effort, but at the expense of code readability and comprehension, because boilerplate code usually adds noise to application source.
这是节省了时间与精力,但将以牺牲可读性与可理解性为代价,因为样本代码通常会向应用程序源增加干扰词。
In this installment, I've looked at two important patterns of code design and readability.
在本期文章中,我讨论了对于代码设计和可读性很重要的两个模式。
Note: Some code listings may have a backslash character, "\", to indicate the line of code is continuous but has been formatted for readability.
注意:有些代码清单有反斜杠字符“\”,这表示代码行是连续的,但为了可读性,这里对其格式作了调整。
Although unused imports do not affect runtime performance, they can confuse the reader and affect the readability of the code.
尽管未使用的导入不会影响到运行时的性能,但是它们会混淆读者的思想并影响代码的可读性。
Not only does the additional error handling make the code more robust, but it also helps with readability and understandability.
额外的错误处理不仅使代码更加健壮,它还提高代码的可读性,使代码更容易理解。
The holy grail of programming is to provide more power and flexibility with fewer lines of code, without sacrificing readability or performance.
编程的至高境界就是在不牺牲可读性或性能的前提下,用更少的代码提供更强大更灵活的功能。
In such a case, declaring the function at its place of use lets you improve the readability of your code.
在这种情况下,在使用之处声明此函数会有助于提高代码的可读性。
Instead of typing the same piece of code again and again, you can create reusable macros that both avoid this repetition and enhance the look and readability of the code by reducing clutter.
通过创建可重用的宏,可以避免重复输入相同的代码段;这不但可以避免重复,而且可以减少代码量,从而提高代码的可读性。
The aim of coding conventions can be many and varied, but typically, conventions are established to improve readability, extensibility, and reliability of the code.
有许多不同的代码编写约定,但它们的目的都是改善代码的可读性和可靠性。
Many of the API calls are used to navigate the hierarchy; this reduces the readability of the code.
使用许多API调用在层次结构中导航;这会降低代码的可读性。
You could write similar code or a plugin to convert your own streamed or complex logs into well-formatted HTML files for better readability and easier use.
可以编写类似的代码或者插件程序,将您自己流化的或者复杂的日志转换为格式良好的HTML文件,从而获得更好的可读性和易用性。
All error checking is omitted in Listing 1 for better readability, but the code you can download below demonstrates error checking as well as other SCTP socket extensions.
为了可读性更好,我们在清单1中忽略了所有的错误检查,但是这些展示错误检查机制的代码与其他SCTP套接字扩展一样都可以通过给出的链接下载到。
Omitting optional semicolons means fewer characters to type and fewer characters to clutter your code. Breaking separate statements onto their own lines increases your code's readability.
省略可选的分号意味着更少的符号输入和更少的符号混乱。把各个语句隔离到它们自己单独的行上面可以提高你的代码的可读性。
When used by itself, it doesn't much hinder the readability of the code.
单独使用时,并不妨碍代码的可读性。
Although s.t. is not required at the beginning of the line to declare a constraint, it improves the readability of the code.
尽管s.t .对于声明一个约束来说并不需要在行首,但是这样可以提高代码的可读性。
Also since XPath indicates the location of the XML node (that is being manipulated) in the hierarchy the readability of the application code is very high.
另外,因为XPath指出了要操作的xml节点在层次结构中的位置,所以应用程序代码的可读性非常高。
The code in Listing 9 dramatically increases the readability of the Web page when it's viewed from an iPhone.
清单9中的代码就在很大程度上提高了在iPhone上查看的网页的可读性。
The code results in a JSON document that looks like Listing 12 (I've added Spaces and newlines for more readability).
JSON文档中的代码结果如清单12(我已经添加了空格和换行以提高可读性)。
One of Python's features that enforces readability is the requirement that code be indented consistently. For example, the following two examples in Figure 1 are different.
实施可读性的Python的特性之一是代码一贯缩进的需求。
By now, a pattern has emerged suggesting that gluttonous code (long methods, too many public methods, excessive conditionals and imports, etc.) impairs readability, testability, and maintainability.
到目前为止,所给出的模式都在暗示臃肿的代码(长方法、太多的public方法、过多的条件和导入,等等)将影响可读性、可测试性和可维护性。
Blank lines improve readability by setting off sections of code that are logically related.
用空行来将逻辑相关的代码块分割开可以提高程序的可读性。
I realize that "judging" code for its elegance and readability is not an easy task and is, in fact, rather subjective.
我意识到“判断”代码的优雅性和易读性并不是一件很容易的事,事实上是非常主观的看法。
There's also a good case that readability is at least partially a function of how much code you have to read.
这同样也可以很好的证明,要说可读性这回事,最起码也得看看要读完多少代码才能搞明白一个功能。
应用推荐