昨天看了Head First设计模式这本书,这本书写得真不错,简单易懂。我是第一次接触设计模式,觉得这东西挺高端大气的,和别人侃的时候,我用啥XX设计模式,是不是觉得很屌的感觉?哈哈,开玩笑了,主要是学习前人的经验,这样让自己的代码设计更加规范。现在就记录一下我学到的第一个设计模式---Obse.....
分类:
其他好文 时间:
2014-07-07 16:16:24
阅读次数:
276
Problem Description:Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit...
分类:
其他好文 时间:
2014-07-07 16:05:24
阅读次数:
229
Problem Description:Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit...
分类:
其他好文 时间:
2014-07-07 15:24:41
阅读次数:
212
微软近期Open的职位:JOB TITLE: Senior Software Design EngineerDEPARTMENT: Microsoft Office Division ChinaIMMEDIATE SUPERVISOR: Development Lead/ManagerLocatio...
分类:
其他好文 时间:
2014-07-01 22:52:12
阅读次数:
341
多对多关系(学生Student,课程Course)学生类的定义以及hbm文件的配置如下1 public class Student {2 private int id;3 private String name;4 private Set courses = new Hash...
分类:
系统相关 时间:
2014-07-01 00:41:37
阅读次数:
396
学习的第二个设计模式,当你设计的类图出现了类爆炸就应该考虑类的设计是否有问题,是否需要用装饰模式来修改。先来看看装饰模式的定义:(wiki)通过使用修饰模式,可以在运行时扩充一个类的功能。原理是:增加一个修饰类包裹原来的类,包裹的方式一般是通过在将原来的对象作为修饰类的构造函数的参数。装饰类实现新的...
分类:
其他好文 时间:
2014-07-01 00:39:28
阅读次数:
255
oop design 分为以下几个方面:- encapsulation and modularity(封装和模块化)- API/Client interface design(API 接口给调用类者)- Inheritance hierarchy and interfaces(继承和继承的层次关系)...
分类:
其他好文 时间:
2014-06-30 22:43:00
阅读次数:
302
Weekly golfers will find a bag that gives them enough space to do a lot of tees, balls, sticks, and whatever he deems necessary for the golf course. P...
分类:
其他好文 时间:
2014-06-30 20:52:39
阅读次数:
258
Foreword
Fortunately, I met “ExtJS” in earlier afternoon, the feeling justlike my encounter with “REST” Actually, at beginning, I had no idea about them,but when I got in touch with REST, I found i...
分类:
Web程序 时间:
2014-06-30 20:09:27
阅读次数:
411
本文转载自爱范儿
扁平化设计是一个过度滥用的词汇,但是,它的风行反映了设计界的一种趋势,人们正在快速抛弃拟物化设计。有种观点是,在触控界面发展初期的时候,人们需要熟悉感,而模仿现实的界面能够做到这一点。当人们已经习惯了触控界面之后,就不需要现实世界的隐喻了。因此,在软件设计上,我们应该追求更加电子化的界面,不再被物理世界的规则所限制。
在这种情况下,Google的Materia...
分类:
其他好文 时间:
2014-06-30 17:12:53
阅读次数:
191