使用默认属性可适当减少源代码字符数量,但会使代码阅读起来更加困难。
Default properties can result in a small reduction in source code-characters, but they can make your code more difficult to read.
注释是一些对你,或者对代码阅读者说的一些话,告诉你这段代码,是干什么的,对不对?
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?
代码阅读器从源文件中创建一个字符缓冲,扫描器将字符组合到IToken中,解析器将IToken组合成IASTNode。
The code reader creates a character buffer from the source file, the scanner combines characters into ITokens, and the parser combines ITokens into IASTNodes.
简单性定义了代码理解和阅读的难易程度。
Simplicity defines the ease of understanding and reading the code.
举例来说,通过阅读代码来了解大型软件系统的依赖关系几乎是不可能的,观看那些依赖关系的可视化显示会令理解更容易。
For instance, it is almost impossible to understand the dependencies of a large software system by reading the code; seeing a visual display of those dependencies makes the task much easier.
这样的代码更易于阅读、维护,而且我要说,甚至要鼓励您添加错误处理机制,它通常都能带来好处。
The code is easier to read, easier to maintain, and (I would say) even encourages you to add error handling, which is always a benefit.
更容易进行有关解决方案的交流,因为与阅读代码和/或文本相比,图片更容易领会。
The solution can be communicated more easily, because a picture is easier to grasp than if reading code and/or text.
在文件的顶部定义我们所有的sql语句可以使阅读代码,以及修改元素以调整应用程序变得更容易。
Defining all of our SQL statements at the top of the file makes it easier to read the code and modify the ements to tweak our application.
使用良好的命名是最重要的编程习惯,因为描述性强的名称让代码更加容易阅读和理解。
Using good naming is the most important habit because descriptive names make code easier to read and understand.
这样做有点困难并且会使代码难于阅读,因为它是混合范例(含有伪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).
本文介绍的代码检查工具、角色定义、阅读技巧、检查工具和问题跟踪工具的用途并不局限于代码检查。
Among the tools for code review introduced in this article, role definition, reading techniques, review tools, and issue-tracking tools are not limited to source-code review alone.
您应该检查代码并阅读注释,以确保您在试图运行程序前知道它将会做什么。
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.
跟着教程阅读代码是不错,但是,在您用一个给定库实际解决自己的问题时,很难知道哪个适合您。
Reading code and following tutorials is fine, but until you actually try to solve some of your pain points in a given library, it's hard to know which one is right for you.
在开始阅读代码之前,请注意路由器可能是单向或者双向的。
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.
由于需要这么多错误处理代码,该代码可能更大,因此更难阅读。
The code would be a lot bigger and therefore harder to read because of all the error-handling code.
在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.
本书中的模式,是基于Kent对现存代码的阅读以及他自己的编程习惯而形成的。
The patterns in this book are based on Kent's reading of existing code as well as his own programming habits.
仅仅通过阅读代码,您就可以发现一些问题,还可能发现一些潜在的bug。
You'll be able to spot a number of issues just by re-reading, and you might pick up a few potential bugs, too.
大多数其它的“热门”语言,像Ruby、Scala等都没有随大流,因为他们更偏重于编写代码,而不是阅读代码。
Most of the other "hot" languages like Ruby, Scala are never going to hit mainstream, because they're all biased to heavily in favor of writing code, instead of reading code.
如果您编写的代码中包含+ +i,那么任何阅读您的代码的人都要浪费时间去思考您为什么要这样写。
If you write + + I, anyone who reads your code is going to waste time wondering why you wrote it like that.
如果您尚未获得示例代码,可以下载示例代码,以便在阅读下面的说明的过程中可以参考它。
If you have not already done so, you might want to download the sample code so you can view it as you read through this description.
应用推荐