单词 | refactor | ||||||||||||||||
释义 | refactor
更多释义 收起释义 例句释义: 重构,重构你的代码,代码重构 1. The only solution is to refactor (in other words, modify) the code to perform the sanitization, enabling a tool to understand it. 唯一的解决方案是重构(换句话说,就是修改)代码来进行清除,使工具能够理解它。 www.ibm.com 2. So I'll refactor this method, with composed method in mind, to see if I can isolate the atomic parts. 因此,我将根据组合方法模式重构这个方法,看看是否可以分离出原子性部分。 www.ibm.com 3. The Configuration section has clickable links to refactor the name or namespace of the business object, as shown in Figure 5. Configuration部分提供用来重构业务对象的名称或名称空间的可单击链接,见图5。 www.ibm.com 4. That's not a problem over the long term, as long as you go back later and refactor the code into smaller bites. 从长远来说,这并不是一个问题,但您要记得回过头来将它重构为更小的部分。 www.ibm.com 5. Additionally, the effort will be fruitful when you are trying to refactor existing software assets to be more reusable. 另外,在重构已有软件资产、使其更容易被重用时,这一点也卓有成效。 www.infoq.com 6. I do refactor softwar confide not know any other reliable way of having the same kind of confidence. 我也不知道还有拥有可以代码什么其他办法能够让我获得如此的信心。 www.cto360.com 7. The next step is to refactor the Airport infrastructure to take advantage of this new geocoding service. 下一步是重新构造Airport基础设施,以利用这个新的地理编码服务。 www.ibm.com 8. It's far better to build code that's easy to refactor and exactly what you need. 最好是构建易于重构的并且完全是您所需要的代码。 www.ibm.com 9. Creating the test code using the Selenium IDE may be easy to use initially, but it is difficult to generalize and refactor. 使用SeleniumIDE生成测试代码,这可能在一开始比较容易,但归纳和重构起来就很困难了。 www.infoq.com 10. I'm also trying to figure out how to refactor the deployment system to make it more extensible and simpler. 我还在尝试找出,如何重构部署系统,使其更简单更具可扩展性。 www.ibm.com 1. You ve got to be willing to refactor your code when this happens. 当出现这种情况时,您需要重构您的代码。 www-128.ibm.com 2. Granted, we could refactor the code in such a way that we could put a similar, ordinary, assertion on the field. 当然,我们也可以用在字段上放置类似的普通断言的方法重构代码。 www-128.ibm.com 3. When you see opportunities to refactor or create reusable assets, do separate them from the rest of your application code. 当你看到重构或创建可重用资产的机会时,不要把这些工作跟应用代码的剩余部分掺杂在一起。 www.infoq.com 4. It seems like at some point, if the code just has no structure, it's more effective to rewrite it than refactor it. 这次经历说明,在某些时刻,如果代码完全没有结构,那么重写是比重构更有效的一种方法。 kk.dongxi.net 5. For development, strive for simplicity, integrate your build at least daily, and refactor when necessary. 为了开发,努力进行简化并保证至少每天都集成您所构建的程序,必要时进行重构。 www-128.ibm.com 6. You can select the portion of code to move to its own function and choose Refactor - Extract Method. 可以选择要移至其自己的函数的代码部分,然后选择Refactor-ExtractMethod。 www.ibm.com 7. "Refactor with abandon! " Can be heard in the distance as defects become a distant memory and the responsibility of the weak and inferior. 从远处可以听到“放任地重构吧”的声音,似乎缺陷已成为遥远的记忆,响应性也已微不足道。 www-128.ibm.com 8. These tests often become a real maintenance burden, as they are slow and brittle, and often hard to refactor. 由于这些测试既慢又脆弱,还常常难于重构,它们通常会成为名副其实的维护负担。 www.infoq.com 9. If naming conflicts indeed occur during the integration, the tool can help you to refactor. 如果在集成期间真的有命名冲突发生,该工具可以帮助您进行重置。 www.ibm.com 10. We've made it very easy to refactor your test suite, and we've given you the ability to mix manual and automated testing. 我们让它可以很容易地重构你的测试套件,而且我们也提供了混合手动测试和自动测试的能力。 www.infoq.com 1. If the waft of inconsistent, unrepeatable, and unmaintainable builds is in the air, take the time now to refactor these vital assets. 如果构建中还飘散着不一致的、不可重复的和不可维护的气味,那么现在就花时间重构这些至关重要的资源吧。 www.ibm.com 2. Without coding standards, it is harder to refactor code, harder to switch pairs as often as you should, and harder to go fast. 如果没有编码标准,重新划分代码会更加困难,按应当的频度交换对更困难,快速前进也更困难。 www.ibm.com 3. 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. 在这种情况下,通常最好将代码重构为一个用户定义的函数,键映射随后就可以调用该函数。 www.ibm.com 4. Projects that have worked a long time to implement the wrong details will not be able to refactor their code easily . 长期进行来实现错误细节的项目将难以使它们的代码解构变得简单。 www.bing.com 5. You can refactor the code to isolate the data access functions into a separate file as homework. 作为练习,您可以对代码进行重构以将数据访问函数分离到单独的文件中。 www.ibm.com 6. Unit tests represent the primary safety net that allows you to refactor your code base at will. 单元测试可以提供最重要的安全屏障,允许您按照自己的意愿重构代码库。 www.ibm.com 7. Sometimes the best way to save space is to refactor the application, with space-efficiency as a high-level design goal. 有时要节省空间的最好办法就是重构整个应用程序,把空间紧凑作为一个高级的设计目标。 www.sohozu.com 8. Renaming directly in the diagram can be a simple rename or refactor. 在图中直接重命名可以是一个简单的重命名或者重构。 www.ibm.com 9. Other team members or management might even be oblivious to the fact that from time to time you reach for "Refactor" option inside your IDE. 其他的团队成员或管理方式可能会忽略这样一个事实,就是你需要不停地在IDE中使用“Refactor”选项。 www.infoq.com 10. You refactor your Ant build file and create four new tasks (three for individual test types and one to run them all). 您重构了Ant构建文件并创建了4项新任务(为单个的测试类型创建了三项,为运行所有这些测试类型创建了一项)。 www.ibm.com 1. You can override methods, rename identifiers, refactor parameters, and implement interfaces and abstract classes. 可以重写方法、重命名标识符、重构参数,以及实现接口和抽象类。 technet.microsoft.com 2. Since I've captured early requirements in the form of test cases, I can easily refactor my code. 由于我已经通过测试用例捕获了早期需求,我可以轻松地对代码进行重构。 www.ibm.com 3. Do refactor. I cannot stress the value of this enough. 重构其价值如何强调都不过分。 kb.cnblogs.com 4. So, when a designer adjusts one element, she needs to refactor the overall composition to restore balance. 如果要调整一项元素,设计师需要重组全局,重归平衡。 kgikgiok.blog.163.com 5. As with JBuilder, one of Eclipse's most powerful features is the ability to refactor code. Eclipse与JBuilder类似,其中一个最强大的特性就是对代码的重构能力。 www.ibm.com 6. To do so, you can use the Grails command create-service and refactor your code to move business logic to the service class. 为此,您可以使用Grails命令create-service并重构代码以将业务逻辑移到服务类中。 www.ibm.com 7. With this in mind, I try to refactor the applications I develop (or mentor or project manage) regularly. 抱着这种观念,我尝试定期重构自己开发(或者指导,或者项目管理)的应用程序。 www.ibm.com 8. Unit tests also give developers courage to refactor the code, because a test failure tells the developer immediately if something's broken. 单元测试还给了开发人员勇气重新划分代码,因为测试失败可以立刻告诉开发人员存在错误。 www.ibm.com 9. Deploy database refactoring changes: After you refactor the database project, you must deploy those changes to a target database. 部署数据库重构更改:重构数据库项目之后,必须将这些更改部署到目标数据库。 technet.microsoft.com 10. This is less desirable as the method above, because creating the interface does let you refactor your code to make it cleaner. 与上面的方法一样,这一点不太令人满意,因为创建接口的确能够再分解代码使其变得更加清楚。 www.ibm.com 1. Because you regularly monitor your system for efferent coupling, however, you can easily refactor and correct this discord. 但是,由于您一直针对传出耦合而监视系统,所以可以轻松地重构并改正这些不一致。 www.ibm.com 2. Typical tasks in his cycles are writing a test, code to pass the test, refactor the code, commit the changes. 每个周期内的典型任务包括写测试、让代码通过测试、重构代码、提交修改。 www.infoq.com 3. the employment of test driven development and refactor technique to enhance efficiency and improve code quality. 运用测试驱动开发和重构技术,提高开发效率和改善代码质量。 www.fabiao.net 4. If the whole application is written assuming this data will be available in memory, a major refactor is in order. 假设在编写应用程序时这些数据在内存中可用,那么将要执行较大的重构。 www.ibm.com 5. Make sure to refactor ClearQuest record text fields to enumeration values to limit synchronization errors. 确定重构ClearQuest记录文本区域以列举限制同步化错误的值。 www.ibm.com 6. Refactor: Rename - renames the selected item and its dependencies based on the principles of database refactoring. 重构:重命名-根据数据库重构的原则重命名所选项及其依赖项。 msdn2.microsoft.com 7. To refactor the code, start moving the style information to a CSS stylesheet. 要重构代码,首先将样式信息移到CSS样式表中。 www.ibm.com 8. Copy the original modules in the workspace and refactor them to new names to reflect that they are the original version. 复制工作区中的原始模块,并将它们重构为新名称,以反映它们是原始版本。 www.ibm.com 9. You may begin your process improvement by looking for parallel step execution, and then refactor or eliminate steps. 通过寻找平行的步骤执行开始您的过程改良工作,然后重构或者删除一些步骤。 www.ibm.com 10. Better to refactor the authentication information into an external properties file. 较好的方法是将身份验证信息重构到外部属性文件中。 www.ibm.com 1. Last month, I showed you how to use the Extract Method pattern to refactor your way out of the maze. 上一个月,我向您展示了如何使用ExtractMethod模式重构您的代码,从而将您带出迷宫。 www.ibm.com 2. Two key opportunities exist for developers to refactor: before and after implementing a feature. 开发人员重新划分有两个重要时机:实现特性之前和之后。 www.ibm.com 3. Tested code is easier to refactor, maintain, and enhance than code without corresponding test cases. 与没有相应测试案例的代码相比,经过测试的代码更容易重构、维护和增强。 www-128.ibm.com 4. The other consultant attempted to refactor, but ultimately his piece never became stable. 而另一位咨询师试图重构他所负责的代码。但结果却是,他那部分代码最终也未能稳定运行。 kk.dongxi.net 5. You can access the Refactor menu through the context menu (Figure 16) of the selected element on the diagram. 你可以通过图中已选元素的上下文菜单(见图16)访问“重构”菜单。 www.ibm.com 6. In times of high change, the ability to refactor code, data, and whole applications becomes a critical skill. 在频繁变动中,对代码,数据以及整个应用重构的能力将会成为一项关键的技能。 www.mscto.com 7. Refactor when the code is difficult to understand and the team is not sure of what it does. 当代码难于理解,并且团队不能确定它做什么的时候进行重构。 www.infoq.com 8. Tools can recognize errors and effectively restructure, or refactor, code. 工具可以识别错误和有效地重构代码。 www.ibm.com 9. The key point Ron makes here is that the "stop and refactor" strategy is NEVER the best choice for a team competent in refactoring. Ron这里提出的要点是“停下来重构”从来不是擅长重构的团队应该选择的最佳策略。 www.infoq.com 10. In three years, I will sit down and re-evaluate what my "dream home" is like and refactor my plan accordingly. 三年内,我会好好想想,重新评估一下我的梦想之屋是什么样的,并据此修正我的计划。 www.bing.com 1. We eventually learned to refactor those solutions with remedies like facades. 我们最终学会了使用类似于虚包的修正方法来重构这些解决方案。 www-128.ibm.com 2. Agilists do a lot more testing, we refactor our code to make sure it's of high quality at all times, good stuff like that. 敏捷人员进行了比以往多得多的测试,我们重新分解我们的代码来确保它总是高质量的。 www.ibm.com 3. There is one particular scenario, however, where I can refactor the design one step further for optimum results. 不过,还有一个特殊的场景,我可以再进一步努力,以得到最佳的结果。 www-128.ibm.com 4. Refactor menu, press the keyboard shortcut, or select the command from the shortcut menu. “重构”菜单,按键盘快捷方式,或从快捷菜单中选择相应命令。 technet.microsoft.com 5. Furthermore, if you need to reuse a portion of the query, it is easier to refactor if the queries are written in this manner. 而且,如果需要重用查询的某一部分,使用此方式编写的查询更容易重构。 technet.microsoft.com 6. We could refactor all of the code by creating a logging class and performing the appropriate insertions. 我们可以通过建立日志类重构所有的代码,并且进行适当的代码插入。 www.ibm.com 7. In these cases you may need to refactor your orchestration or processing logic to avoid this scenario. 遇到这些情况时,需要重新构造结构和处理逻辑以避免发生此类问题。 www.ibm.com 8. In the next section, I'll show you how to refactor an example from a previous article, applying the lessons learned here. 在下一节中,我将向您展示如何对上一篇文章中的一个例子应用本文中所学到的知识。 www.ibm.com 9. If that's true, then this strategy will deliver value uniformly faster than the stop to refactor strategy. 如果确实如此,这种策略交付的价值会显著大于“停下来重构”的策略。 www.infoq.com 10. Refactor existing code into smaller functions. 将现有代码重构为更小的函数。 msdn2.microsoft.com 1. Returning to the course listing example, it's time to refactor the code to leverage the factory pattern. 回到课程列表示例,这时该重构代码,以利用工厂模式。 www.ibm.com 2. Refactor whenever and wherever possible. 尽可能地进行重构。 blog.donews.com 3. This requires some planning when you create your XML data or refactor existing XML data. 因此,在创建XML数据或重构现有XML数据时必须进行一些规划。 www.ibm.com 4. Doing this puts your test data in one place and makes your code cleaner and easier to refactor. 这样做使得测试数据放在一个地方,从而使代码更干净,更容易重构。 www.ibm.com 5. When you refactor, you should eliminate dead code, avoid speculative design or premature optimization. 在重构时,你需要消除冗余代码,避免投机性设计或预先优化。 www.infoq.com 6. During the second step, refactor your application to work out bugs, make use of best practices and conform to the J2EE specification. 在第二步期间,重组您的应用程序以排除错误、使用最佳实践并使它符合J2EE规范。 www.ibm.com 7. The corollary is that it's pointless to refactor a system you will never change, because you'll never get a payback. 其潜台词是,如果你不会改动你的系统,那么也就没有必要做重构,因为不会有任何回报。 kk.dongxi.net 8. Bill Venners : You say in your book Refactoring: "If you want to refactor, the essential precondition is having solid tests. " 比尔:你在《重构》这本书里写道:“如果你打算重构,那么最根本的先决条件是有完善的测试。” pro.yeeyan.com 9. Do you refactor that test immediately, mark it as ignored until you finish the current story and cycle back to the ignored one? 你是否会立刻重构那个测试,还是把它标记为“忽略”,等你完成当前的故事再回过头去处理那个被忽略的测试? www.infoq.com 10. Let's refactor this code a bit. 让我们稍微对该段代码进行重构。 www.ibm.com 1. This is as opposed to being forced to abort the entire refactor operation, as in previous releases. 这与强制吸收整个重构操作恰恰相反,如先前的版本就是如此。 www.ibm.com 2. Once you've written some code and some unit tests that pass---regardless of which came first---you refactor the code to improve the design. 当完成一段逻辑代码及其单元测试代码后——不管你先写的是哪个——为了改善质量,重构是免不了的。 www.infoq.com 3. With this step, you refactor the code that causes the problem. 在这一步中,您将重构导致问题的代码。 www-128.ibm.com 4. To make this program double-buffered, you need to refactor the code slightly. 为了让这个程序进行双缓冲,需要对代码略加重构。 www.ibm.com 5. You should refactor the code to separate the various application layers. 应当重构代码以分离各个应用层。 www.ibm.com 6. If you're already building code this way, you can better recognize and refactor bad implementations. 如果您已经在用这种方式构建代码,那么您就可以更好地识别和重构不好的实现。 www.ibm.com 7. Duplication harms projects because it resists attempts to make structural changes or refactor toward better code. 复制对项目有害,因为它不利于做出结构更改或重构为更好的代码。 www.ibm.com 8. Once I have extracted this class, I can refactor both the functional classifier and prime-number tester to use it. 一旦提取了该类之后,我就能通过同时重构函数分类器和质数检验器来使用它。 www.ibm.com 9. Select Extract Method on the Refactor menu. 在“重构”菜单中选择“提取方法”。 msdn2.microsoft.com 10. In some cases, you may need to refactor your application logic to support this transaction strategy. 在某些情况下,您可能需要重构应用程序逻辑,以支持这种事务策略。 www.ibm.com 1. As a result, we might opt to refactor the convenience layer API by using a delegation design pattern instead of inheritance. 因此,我们重构了便利层API,使用委托设计模式而不是继承。 www.ibm.com 2. To improve the code in Listing 6, I'm going to refactor it with SLAP in mind. 为了改进清单6中的代码,我要根据SLAP原则重构它。 www.ibm.com 3. The best way to handle this pattern of bug is to refactor. 处理这种错误模式的最佳方法是重构。 www-128.ibm.com 4. When we refactor the code this way, we realize that we don't really care about observing buttons; we care about observing clicks. 当我们开始用这种方式重构代码的时候,我们意识到我们实际上不关心“观察”按钮;我们关心的是“观察”点击。 www.bing.com 5. You can refactor the code to make the stylesheet much simpler. 您可以重构代码以简化样式表。 www.ibm.com 6. If you have 100 percent code coverage on your project, you can refactor your code with impunity. 如果您的项目的代码覆盖率达到了100%,那么可以安全地重构代码。 www.ibm.com 7. Unit tests make your code safe to refactor. 单元测试使您能够安全地重构代码。 space.itpub.net 8. The question then becomes How do I know when I should refactor? 那么问题就变成了“我怎么才能知道什么时候该进行重构呢?” www.ibm.com 9. In Part 3, you'll refactor the rock star application built in this part. 在第3部分中,您将重构本文所建立的摇滚巨星应用程序。 www.ibm.com 10. Is there any duplication? Do I need to refactor first? 还有任何副本吗?我需要先重构吗? www.matrix.org.cn 1. You can now refactor local maps into submaps, and vice versa. 现在可以把局部映射重构为子映射,或者相反。 www.ibm.com 2. The difficulty lies with finding what to refactor. 比较困难的地方在于确定对哪些内容进行重构。 www.ibm.com 3. In this installment, Part 3, you'll refactor the rock star application built in Part 2. 这是第3部分,将进一步完善第2部分建立的摇滚巨星应用程序。 www.ibm.com 4. With closures, you can also refactor from the outside in. 有了闭包,您也可以从外到里进行重构。 www.ibm.com 5. How to use Class Designer to design, view, and refactor classes and other types. 如何使用类设计器设计、查看和重构类和其他类型。 msdn2.microsoft.com 6. Your job is easier if you have the freedom to refactor the code you're testing. 如果能够自由地重构正在测试的代码,您的工作会简单些。 www.ibm.com 7. An important thing to note here is that you should either design and write new code, or refactor existing code. 这里要注意的重要一点是,您应该要么设计并编写新代码,要么重构现有的代码。 www.ibm.com 8. For example, if they see an opportunity for abstraction, they refactor to remove duplicate code from concrete implementations. 例如,如果他们看到有抽象的机会,他们就会进行重构,从具体的实现中除去重复的代码。 www.ibm.com 9. Before you build that stylesheet, let's look at how to refactor the code. 在构建该样式表之前,我们来查看一下如何重构代码。 www.ibm.com 10. How do you decide when you should start from scratch and throw away existing code versus refactor it? 那么,如何判断什么时候应该彻底抛弃现有代码从头开始,而不是选择重构? kk.dongxi.net 1. A laudable goal for any project is a code base that is easy to refactor. 对任何项目来说,值得称赞的一点就是拥有可以轻松进行重构的代码库。 www.ibm.com 2. When do you refactor? 什么时候进行重构呢? www.ibm.com 3. Would you like more flexibility to change your user interface without having to refactor other logic in the code base? 你是否需要改变界面而不用重构逻辑代码的灵活性? archive.cnblogs.com 4. Refactor the code if required. For example, reorganize the statements, rename the variables, and so on. 必要时重构这个代码。例如,重组语句、重命名变量等等。 www.bbsmvc.com 5. When do you need to refactor? 什么时候要重构呢? www.ibm.com 6. The solution to this type of duplication is to refactor the code into a single Factors class, which appears in Listing 3 去除重复的解决方案是将代码重构为一个单一的Factors类,如清单3所示。 www.ibm.com 7. The best way to prevent this bug pattern is to refactor the representation of the datatype as a 防止这种错误模式的最佳方法是:将数据类型的表示重构为 www-128.ibm.com 8. To avoid the unreadable-code problem, some developers will refactor this code, as in Listing 1 为了避免代码难以理解的问题,一些开发人员将重构该代码,如清单1所示 www-128.ibm.com 9. Then select Refactor Convert Local Variable to Field 局部变量,然后选择 www-128.ibm.com 10. You're code base will be more flexible, easier to extend, modify or refactor when new requirements arrive 当新的需要到达的时候,你的代码将会更加灵活,更易于扩展,修改以及重构 www.cnblogs.com 1. Refactor and rename within user code 在用户代码内重构和重命名 www.ibm.com 2. When the first client proxy files are created, refactor the 当创建第一个客户端代理文件时,将 www-128.ibm.com 3. Things that are difficult to refactor in 很难重构的东西 wenku.baidu.com 4. How to: Refactor Code with Extract Interface 如何:用“提取接口”重构代码 msdn2.microsoft.com 5. How to: Refactor Code with Encapsulate Field 如何:用封装字段重构代码 msdn2.microsoft.com 6. How to: Refactor Code with Extract Method 如何:使用“提取方法”重构代码 msdn2.microsoft.com |
||||||||||||||||
随便看 |
|
英汉双解词典包含2704715条英汉词条,基本涵盖了全部常用单词的翻译及用法,是英语学习的有利工具。