添加注释的动机通常与代码重构一致。
The motivation for writing comments is often same as for refactoring your code.
你可以做代码重构,做缓存,这些能让你的程序跑的快点。
There are a few things you can do here, like re-factoring and caching, that will help your apps run faster.
这种方法也适用于非功能性项目,例如代码重构和自动化整合测试。
This approach was utilized for non-functional items as well, such as code re-factoring and automated integration testing.
可以通过提高宿主系统的速度或执行代码重构以提高效率,从而改进响应时间。
You can improve response times by increasing the speed of host systems or performing code refactoring to improve efficiency.
在这种情况下,通常最好将代码重构为一个用户定义的函数,键映射随后就可以调用该函数。
In such cases, it's usually a good idea to refactor the code out into a user-defined function, which the key-mapping can then call.
代码重构是对源代码的简单变更,是在不破坏任何东西,且不添加任何东西的情况下改进设计。
A code refactoring is a simple change to source code which improves the design without breaking anything nor adding anything.
这一策略允许使用强大的代码重构工具,而使用静态类型语言的同样方法来实现此功能则困难得多。
This strategy allows powerful code refactoring tools, which are much more difficult to achieve using the same methods for statically typed languages.
对代码重构的支持看起来和修正代码问题的“快速修正”功能很类似,但是它应用于文本级别。
The support for Code Refactoring looks a lot like the "quick fix" support correction for Code Issues, but it is applied at the text level.
您或许想要仅在那个范围内推迟新的开发,同时在该部分内偿还技术债务(进行代码重构,更新文档等等)。
You might want to put off new development in only that area while you repay any technical debt in that section (refactoring code, updating documentation, and so on).
JetBrains是重构工具的先行者,所以我们希望Ruby开发者能够有一系列稳定的代码重构工具。
JetBrains is the pioneer in creating refactoring tools, so we wanted Ruby developers to have a set of reliable Ruby code refactorings.
为代码重构所提供的项目模板中并没有包含可用的演示程序,但是在此我们可以使用快速修正教程中所展示的相同技术。
The project template for code refactoring doesn't include a usable demo, but the same techniques shown in the Quick Fix walkthrough can be used here.
通过将我的代码重构为使用集合而非列表,我不但解决了这个问题,而且优化了整个解决方案,因为我现在使用的是更精确的抽象。
By refactoring my code now to use sets instead of lists, I not only fix this problem but make the overall solution better because I'm now using a more accurate abstraction.
多租户有一些不同的设计问题,但是其中不需要进行代码重构就能够解决的一个重要问题是使用一个还是多个存储来保存不同用户的数据。
There are different design considerations for multi-tenancy, but the critical one which can be tackled without code refactoring is addressing single vs. separate storage for different tenants.
一个好消息是,代码重构工具被嵌入到现代集成开发环境(integrated development environment,IDE)中了,例如eclipse。
The good news is that code refactoring tools are built into modern integrated development environments (IDEs) such as Eclipse.
重构是一种改进代码但不改变功能的技术。
Refactoring is the technique of improving code without changing functionality.
这使得我们能够对代码进行重构,不再使用全局变量。
This can open up the possibility of refactoring this code down the road to not use the global variables at all.
使用重构,您可以轻松更改您的代码,而不必担心对别处造成破坏。
Using refactoring, you can easily make changes to your code without worrying about breaking things somewhere else.
我希望我已经让您认识到了现有代码库的价值,下一次要推倒重来的时候会考虑到重构。
I hope I have convinced you of the value of your existing code base and that you'll consider refactoring the next time you feel like starting over.
我认为软件开发中很少有比重构代码更缺乏魅力的任务,但对于维护进行中的项目它仍然是一项重要的活动。
I can think of few tasks in software development that are less glamorous than refactoring code. Yet it is a crucial activity for the ongoing maintenance of a project.
集成开发环境 (IDE)工具可以提供大量有用功能,例如代码完成、语法突出显示、语法分析、重构和调试。
The integrated development environment (IDE) tool can provide many helpful features, such as code completion, syntax highlighting, syntax analysis, refactoring, and debugging.
最近几天,我和同事们重构了一下我们电子教学系统的代码。
For several days now, my colleagues and I have been refactoring our eLearning code.
学习OOP、设计模式、简洁代码和重构。
工作空间层是对整个解决方案执行代码分析和重构的起点。
The workspace layer is the starting point for doing code analysis and refactoring over entire solutions.
能够支持Rails工程规范的Ruby代码的高级重构。
Advanced refactorings for Ruby code with support for Rails project specifics.
清单6显示执行了Inline重构的代码。
Listing 6 shows the same code after I used the Inline refactoring.
重构旧代码以进行简化并提高可读性就是这样一个例子。
One such example occurs when refactoring old code to help simplify it and make it more readable.
清单3中的代码是使用ExtractSuperclass重构的结果。
The code in Listing 3 is the result of using Extract Superclass refactoring.
其新的开发流程和生产工具的改进(如重构、调试和代码生成)也是一个看点。
Its new development workflow and improvements on productivity tools like refactoring, debugging and code generation are also highlights.
其新的开发流程和生产工具的改进(如重构、调试和代码生成)也是一个看点。
Its new development workflow and improvements on productivity tools like refactoring, debugging and code generation are also highlights.
应用推荐