单词 | code smell | ||||||||||
释义 | code smell
更多释义 收起释义 例句释义: 代码异味,代码味道,代码气味的散播 1. While anyone would identify the repetition as a "code smell, " most of us have learned to live with it. 虽然所有人都将这种重复标识为“代码味道”,但我们大多数都已经学会忍受它。 www.ibm.com 2. This kind of structure is an example of a bad "code smell" in that it relies upon duplication. 这种结构是坏“代码味道”的一个例子,原因在于它依赖于复制。 www.ibm.com 3. One code smell that usually divides straight down the line with developers, interestingly, is the smell of too many code comments. 代码味道通常由开发人员直接判定,有趣的是,它是许多代码注释综合在一起的味道。 www.ibm.com 4. Even the term code smell has entered the collective vocabulary as a way to describe code in need of improvement. 甚至术语代码味道(codesmell)也已进入大众词汇表,成为描述代码需要改进的一种方式。 www.ibm.com 5. To determine the conditional-complexity code smell, you determine a method's cyclomatic complexity. 要确定条件复杂度代码味道,需要确定方法的圈复杂度。 www.ibm.com 6. Dale Emery suggested that not knowing what kind of test you are writing is a code smell and indicates lack of clarity. DaleEmery提议:对于不清楚所写测试的类型这种情况,应该将其定义为一种代码坏味道,它说明缺乏清晰度。 www.infoq.com 7. This is always a code smell: it's a cry for help for refactoring into their own methods. 这永远是代码的一部分:希望重构为自己的方法。 www.ibm.com 8. This represents a code smell because you have essentially copied-and-pasted code throughout your application with minor variations. 这代表着一种代码味道,因为应用程序中前后出现实际上可以复制-粘贴的代码,这些代码差别很小。 www.ibm.com 9. What this tells us about code smell as a mechanism for evaluating code is that it's subjective. 这告诉我们,代码味道是一种评估代码的机制,它具有主观性。 www.ibm.com 10. If you're writing similar DAOs, managers, and actions or controllers and you're not generating the code for them, that's a code smell. 如果我们正在编写类似的DAO、管理器、操作或控件,并且不想为它们生成代码,那么这就需要根据代码的气味来生成代码。 www.ibm.com 1. It is a major code smell any time you have that much duplicated code to add additional behavior to an existing framework. 任何时候使用这些复制代码为现有框架添加额外的行为时,这都是主要的代码特征(codesmell)。 www.ibm.com 2. The highlighted section in Listing 7 shows a small portion of an example of a long method code smell 清单7中高亮显示的部分展示了一个长方法代码味道示例的一小部分 www.ibm.com 3. Analysis and Design of Code Smell Detection Tool Based on Abstract Syntax Tree 基于抽象语法树的代码味道识别工具的分析与设计 service.ilib.cn 4. Present the refactoring and, in some cases, the patterns to fix the code smell 提供用于修复代码味道的重构和模式(在某些情况下) www.ibm.com 5. I'll use the following general format as we examine each code smell 我将使用如下的通用格式来检查每一种代码味道 www.ibm.com |
||||||||||
随便看 |
|
英汉双解词典包含2704715条英汉词条,基本涵盖了全部常用单词的翻译及用法,是英语学习的有利工具。