- 博客(7)
- 资源 (1)
- 收藏
- 关注
原创 Refactoring Notes-Refactoring Methods(3)
5.Introduce Explaining Variable If you have a complicated expression,put the result of the expression, or parts of the expression , in a temporary variable with a name that explains the purpose.
2005-03-23 15:09:00 591
原创 Refactoring Notes-Refactoring Methods(2)
2.Inline MethodUser Inline Method when someone is using too much indirection and it seems that every method does simple delegation to another mehtod.Before:int getRating(){ return (moreThanFiveLateDel
2005-03-22 20:11:00 912
原创 J2EE的13种核心技术(二)
来源:UML软件工程组织Java Naming and Directory Interface (JNDI)JNDI API被用于执行名字和目录服务。它提供了一致的模型来存取和操作企业级的资源如DNS和LDAP,本地文件系统,后者在应用服务器中的对象。在JNDI中,在目录结构中的每一个结点称为context。每一个JNDI名字都是相对于context的。这里没有绝对名字的概念存在。对一个应用来说,
2005-03-22 19:07:00 728
原创 J2EE的13种核心技术(一)
来源:UML软件工程组织Java最初是在浏览器和客户端机器中粉墨登场的。当时,很多人质疑它是否适合做服务器端的开发。现在,随着对Java2平台企业版(J2EE)第三方支持的增多,Java被广泛接纳为开发企业级服务器端解决方案的首选平台之一。J2EE平台由一整套服务(Services)、应用程序接口(APIs)和协议构成,它对开发基于Web的多层应用提供了功能支持。在本文中我将解释支撑J2EE的13
2005-03-22 19:04:00 838
原创 Bad Smells in Code
1.Duplicated Code Same expression in two methods of the same class: Extract Method Same expression in two sibling subclass:Extract Method ,then Pull Up Field Duplicated code in two unrelated
2005-03-22 10:55:00 664
原创 Refactoring Notes-Refactoring Methods
1.Extract Method Turn the fragment into a method whose name explains the purpose of the method.Before: void printOwing(){ Enumeration e =orders.elements(); double outstanding=0; //print
2005-03-21 20:00:00 550
原创 最欠扁的急转弯
题目:数字“3“在路上走呀走...翻了一个跟斗...又接着翻了一个... 谜底:三番两次 题目:一条狗过了独木桥之后就不叫了 谜底:过目不忘(汪) 题目:第十一本书 谜底:不可思议(book 11) 题目:牛狗猪羊比赛赛跑...跑到终点后...牛狗猪都喘得不得了...只有羊不喘气 谜底:扬眉吐气(羊没吐气) 题目:避孕
2005-03-20 22:08:00 562
ProgrammingGroundUp
2010-07-20
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人