注释代码的目的有利于代码理解和扩展。
Documenting the purpose of your code makes its intent easier to understand and extend.
这个方法有助于提高代码的可重用性和灵活性。
我们做这些都是免费的,是出于对自己代码的热爱。
And we do this all for free, living only for the love of our own code.
本次旅程的下一站是创建用于生成代码的模板。
The next leg of our journey is to create a template we can use to generate code.
在每篇博文的最后,我会附上一个下载最新代码的链接。
At the end of each post, I'll include a link to download the "code so far".
在这种情况下,在使用之处声明此函数会有助于提高代码的可读性。
In such a case, declaring the function at its place of use lets you improve the readability of your code.
这些功能非常有价值并且有助于全面提升代码的强健性和可维护性。
These features are valuable and help improve the overall robustness and maintainability of your code.
依赖性倒置原则被证明是编写可维护和可测试的高质量代码的必要条件。
The Dependency Inversion Principle has proved essential for writing high-quality, maintainable, and therefore testable code.
功能测试填补单元测试留下的空白,并可增强小组对代码的信心。
Functional tests fill in the gap left by unit tests and give the team even more confidence in the code.
要理解对代码的读取操作要远比写入操作多,因此简化代码很重要。
Understand that code is read far more than it is written, so simplifying code is important.
它可以帮助您找出代码的哪些位置有意或者无意地偏离了良好的设计原理。
It can help you spot where your code strays, intentionally or unintentionally, from good design principles.
这会减少多次编写同样代码的开销,因为只需在一个位置更新代码。
You'll reduce the overhead of writing the same piece of code multiple times because you update the code in only one place.
创建一个嵌套的、层次结构化的异常框架将改进代码的可读性及其可用性。
Creating a nested, hierarchical exception framework will improve both your code's readability and its usability.
适配器模式是整理此类代码并在其他位置重用所有赋值代码的优秀方法。
The adapter pattern is a nice way to clean this type of code up and reuse all your assignment code in other places.
这种通过功能划分代码的方式使我们更易识别特定职责、进行重构和维护工作。
This partitioning of code by functionality makes it easy to identify particular responsibilities, refactor, and maintain.
当我没时间研究那些代码的时候,我就会把那个网站加入书签,便于之后再研究。
When I didn't have time to study the code at that moment, I'd bookmark the site and come back later to study it.
CSSTidy是免费的在线应用,可修正CSS代码的错误并对其进行优化。
CSS Tidy is a free, online application that will fix errors and optimize your CSS code.
Go语言的作者试图将代码的清晰明确作为设计该语言作出所有决定的指导思想。
The Go authors have tried to let clarity of code guide all of their decisions regarding the design of the language.
通用应用程序容器框架允许在不编写代码的情况下创建强大且灵活的应用程序。
The generic application container framework allows for creating powerful and flexible applications without the need to write a single line of code.
因为方法拥有一个有意义的名字,所以它能反映代码的用途,让代码更容易阅读。
Because the method has a meaningful name, the code doesn't lose its meaning or become difficult to read.
但对普通计算机用户来说,只需采取一些常识性步骤即可免受病毒和其它恶意代码的侵扰。
But for the average computer user there are some common-sense steps that can help protect against viruses and other malicious computer code.
最有效的得到思想和代码的途径就是咨询那些在命令行方面具有丰富经验的行家。
The best source of ideas and code comes from experienced practitioners of the command line.
思维过程与代码的匹配非常好:做第一件事,剩下的事后面再做;什么都不剩时,就完成了。
Your thought process wonderfully matches your code: do the first, and save the rest for later; when there's nothing left, you're done.
这个简短的名字所引起的疑惑很快就会迎刃而解,而简短的命名还会增加代码的可读性。
Any confusion caused by the shorter name would be cleared up very quickly, and the shorter name would lead to much more readable code.
虽然他们定义简洁代码的侧重点不尽相同,但其中仍有共通之处:简单、无重复、易读、优雅。
Although they all emphasize different aspects of clean code, there are a few emerging themes: simplicity, lack of duplication, readability, elegance.
但当我回顾我自己的经历时,却发现保持代码的良好构造以及编写测试反而使我的工作加快了。
And yet when I think about working to keep code well-factored and writing tests, I find that makes me go faster.
这样,在您实际输入代码的时候,就已经掌握了其中的概念,可以更快地解决其中遇到的问题。
That way, you'll have the concepts down by the time you're actually entering code, and can probably troubleshoot any problems much more quickly.
借助EclipseIDE中的特性,您可以专注于代码的实现,而不为查找类和方法烦神。
Using the features in the Eclipse IDE allows you to focus your time and energy on implementing code and not getting tied up trying to find classes and methods.
当我们开始写代码的时候,你就会看到区别了,但是现在别担心,我只是想让你们初步有个印象。
When we start writing code, you're going to see that difference, but for now, don't worry about it, I just want to plant that idea.
当我们开始写代码的时候,你就会看到区别了,但是现在别担心,我只是想让你们初步有个印象。
When we start writing code, you're going to see that difference, but for now, don't worry about it, I just want to plant that idea.
应用推荐