注释是一些对你,或者对代码阅读者说的一些话,告诉你这段代码,是干什么的,对不对?
It's words to you, or to the reader of the code, that are telling you what's going on inside of this code. OK?
简单性定义了代码理解和阅读的难易程度。
Simplicity defines the ease of understanding and reading the code.
阅读和编写代码没什么不同。
更容易进行有关解决方案的交流,因为与阅读代码和/或文本相比,图片更容易领会。
The solution can be communicated more easily, because a picture is easier to grasp than if reading code and/or text.
其余部分只需花费一点儿时间阅读代码就很容易理解。
The rest is easily understood by spending a bit of time reading the code.
这将使代码易于阅读和调试。
这样做有点困难并且会使代码难于阅读,因为它是混合范例(含有伪oo设计的过程语言)。
It's a tad more difficult and can make the code more difficult to read because it's mixing paradigms (procedural language with pseudo-OO design).
没有什么能代替阅读代码。
您应该检查代码并阅读注释,以确保您在试图运行程序前知道它将会做什么。
You should examine the code and read the comments to ensure you are familiar with what it is doing before you try to run it.
如果必须在抽象层之间转移,阅读代码会很困难,这正是SLAP原则试图避免的情况。
It is difficult to read the code when you have to jump mentally between abstraction levels, which is what the SLAP principle tries to avoid.
这的确是有意义的;如果您希望确定每行代码究竟执行了哪些操作,最好的方法就是阅读代码。
That makes sense; if you want to find out exactly what each line of code does, the best thing to do is read the code.
考虑到SIMH中所提供的功能数量,代码易于阅读并不像您预期的那样大。
Considering the amount of functionality provided in SIMH, the code is easily readable and not as large as you may expect.
示例代码生成大量可供阅读的信息输出。
The sample code generates an extensive amount of informational level output to read.
理解了此机制的工作原理之后,阅读此代码要比阅读使用额外类的相应代码更加轻松。
Once you understand how the mechanism works, reading this code is much simpler than reading the corresponding code that USES additional classes.
这种代码很容易阅读和测试。
SLAP原则的目标是使代码更容易阅读和理解。
The SLAP principle aims to make your code easier to read and understand.
这样可以减少阅读代码时的视觉上的混乱。
在开始阅读代码之前,请注意路由器可能是单向或者双向的。
Before you start looking at the actual code, please note that the routers might be unidirectional or bidirectional.
该程序将数组节点转换为说明性更强的变量名,从而使代码更易于阅读。
The program transfers the array nodes into more descriptive variable names, making the code easier to follow.
这使代码清单更易于阅读。
代码有多容易阅读?
仔细阅读代码,您会发现大量的处理都是通过模式完成的。
In looking through the code, you will notice that a lot of the processing is done with modes.
代码审核是通过阅读别人的代码,来寻找错误,提出改进意见等的过程和实践。
Code review is the process and practice of reading over code written by someone else in order to detect errors, suggest improvements, etc.
您可以通过阅读代码发现聚集的执行过程(请参阅参考资料)是怎样的。
You can read the code to see how aggregation is performed (see Resources).
与其他程序员交流;阅读别人的代码。
您可以只阅读源代码,不一定非得阅读本文。
You could just read the source code, you don't have to read this.
在PHP代码中使用设计模式可以使代码更容易阅读、更易维护。
Using design patterns in your PHP code is one way to make your code more readable and maintainable.
注意:换行符方便您阅读代码,它不会影响XML。
Note: the line breaks make it easier for you to read your code and do not affect the XML.
只需要阅读代码就应该理解他们的行为。
You Should be able to understand does, just by reading the code.
本书中的模式,是基于Kent对现存代码的阅读以及他自己的编程习惯而形成的。
The patterns in this book are based on Kent's reading of existing code as well as his own programming habits.
应用推荐