This kind of structure is an example of a bad "code smell" in that it relies upon duplication.
这种结构是坏“代码味道”的一个例子,原因在于它依赖于复制。
What this tells us about code smell as a mechanism for evaluating code is that it's subjective.
这告诉我们,代码味道是一种评估代码的机制,它具有主观性。
The highlighted section in Listing 7 shows a small portion of an example of a long method code smell.
清单7中高亮显示的部分展示了一个长方法代码味道示例的一小部分。
While anyone would identify the repetition as a "code smell," most of us have learned to live with it.
虽然所有人都将这种重复标识为“代码味道”,但我们大多数都已经学会忍受它。
This article provides a pattern of correlating a code smell to a measure that can be configured to be flagged from an automated static analysis tool.
本文提供了一种使代码味道与一种度量方法相关的模式,这种度量方法可以配置为通过自动静态分析工具标记。
In his book, Refactoring, Martin Fowler describes the issue with the long Method code smell quite nicely as "the longer a procedure is, the more difficult it is to understand."
MartinFowler在他撰写的Refactoring这本书中,对代码中存在冗长方法的气味这个问题做了精妙的描述——过程越长,越难理解。
In his book, Refactoring, Martin Fowler describes the issue with the long Method code smell quite nicely as "the longer a procedure is, the more difficult it is to understand."
MartinFowler在他撰写的Refactoring这本书中,对代码中存在冗长方法的气味这个问题做了精妙的描述——过程越长,越难理解。
应用推荐