测试让人对代码的修改充满信心。
重构可以帮助你赢回对代码的支配权。
Refactoring will help you win back the command over your code.
现在剩下的就是看代码的实际作用了!
异常机制将彻底改变编写代码的方法。
增强开发人员对代码的信心。
极大地增强源代码的安全性。
这使您可以轻松地跟踪您对代码的更改。
This allows you to easily track your own changes to the code.
现在来看代码的实际应用!
注释代码的目的有利于代码理解和扩展。
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.
它是直接在服务器上测试和调试代码的一种最佳方式。
It is a great way to test and debug your code directly on the server.
本次旅程的下一站是创建用于生成代码的模板。
The next leg of our journey is to create a template we can use to generate code.
代码的每一行,都应恰如其分地展现出其原有目的。
Each line of code serves its purpose and resides in the right place.
这就是从组件中移除数据访问代码的美妙之处。
That's the beauty of removing data access from the component.
一组可能最完整的测试,它可以增加您对代码的信心。
The most complete set of tests possible, which increases your confidence in the code.
在每篇博文的最后,我会附上一个下载最新代码的链接。
At the end of each post, I'll include a link to download the "code so far".
作为代码的作者,我们的目的是让代码尽可能的易于理解。
Our goal, as authors, is to make our code as easy as possible to understand.
这样就在没有更改任何代码的情况下添加了对新数据类型的支持。
That adds support for a new data type without changing a line of code.
在这种情况下,在使用之处声明此函数会有助于提高代码的可读性。
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.
应用推荐