Chinaunix首页 | 论坛 | 博客
  • 博客访问: 55784
  • 博文数量: 25
  • 博客积分: 1415
  • 博客等级: 上尉
  • 技术积分: 270
  • 用 户 组: 普通用户
  • 注册时间: 2006-05-23 13:18
文章分类

全部博文(25)

文章存档

2008年(1)

2007年(3)

2006年(21)

我的朋友
最近访客

分类:

2006-05-29 09:10:27

Notice triggers. Once you become aware of what you are doing
and what's going on inside, notice the situation. Often particular
situations trigger emotional and physical reactions. If you've had
run-ins with Marketing in the past, you may assume that the next
meeting will be a run-in too and prime yourself for an emotional
display.
 
3. Bad Smells in Code
   Duplicated Code
   Long Method
   Large Class
   Long Parameter List
   Divergent Change
   Shotgun Surgery
   Feature Envy
   Data Clumps
   Primitive Obsession
   Switch Statements
   Parallel Inheritance Hierarchies
   Lazy Class
   Speculative Generality
   Temporary Field
   Message Chains
   Middle Man
   Inappropriate Intimacy
   Alternative Classes with Different Interfaces
   Incomplete Library Class
   Data Class
   Refused Bequest
   Comments
Programs that use C++ language features such as pointers, cast operations, and
sizeof(object) are difficult to refactor. Pointers and cast operations introduce
aliasing, which makes it difficult to determine all references to an object that you
might want to refactor. Each of these features exposes the internal representation
of an object, which violates principles of abstraction.
阅读(535) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~