Archive for April, 2008

国内最好的网上银行

Wednesday, April 30th, 2008

本人使用多家银行的网上银行,我认为这里面招商银行的网上银行服务最为专业,中国银行的最次。 招商银行个人银行的专业版上可以进行很多业务操作,比如储蓄,定活转换,购买理财产品,基金,和网上外汇买卖。进行同城转账也很方便,跨行手续费2元。

关于面向对象设计的10大原则

Tuesday, April 29th, 2008

大师Robert C. Marti关于面向对象设计的10大原则: 什么是一个好的对象设计 1. The Open/Closed Principle: Software entities (classes, modules, etc) should be open for extension, but closed for modification.  http://www.objectmentor.com/resources/articles/ocp.pdf

设置firefox

Monday, April 28th, 2008

firefox有自己的设置管理系统, (Profile),通常对每一个用户会有一个配置脚本。脚本里可以配置如下的参数, 这些参数会影响浏览器的行为。 // // user.js: Personal prefs which mozilla shouldn’t overwrite. //

The Liskov Substitution Principle

Monday, April 28th, 2008

http://www.objectmentor.com/resources/articles/lsp.pdf 这是一条关于面向对象设计的准则:(或者叫做Design By Contract)

设计模式5: Singleton模式

Sunday, April 27th, 2008

何时使用Singleton对象: 1. 对象有且只有一个实例 2. 对象需要Lazy Initialization 3. 没有全局访问的方法

设计模式4: Factory方法

Saturday, April 26th, 2008

使用一个静态方法创建子类对象: // A factory method is a static method of a class that // returns an object of that class’ type. But unlike a // constructor, the actual object it returns might be // an instance of a subclass. Another advantage of a // factory method is that it can return existing // instances multiple [...]

设计模式3: Strategy模式

Friday, April 25th, 2008

看下面的实例, 程序中需要有不同的对日期格式化的方法。 Strategy模式的思路如下: 1. 定义格式化日期的抽象接口

阳台山小游

Thursday, April 24th, 2008

“阳台山自然风景区,位于海淀区北安河乡境内,距颐和园17公里,面积26平方公里。阳台山山脉主峰海拔1276米,是临近平原的第一高峰。其南边紧临鹫峰森林公园,北边是凤凰岭风景区。

海淀图书城淘书

Wednesday, April 23rd, 2008

今天我突然兴起想去书店看看有没有想买的书了。缘由是,印象里我已经很有没有去过大的书店了,差不多好几年了吧,现在通常都是在网上找电子版的书看。不过我觉得,纸版的书有它的好处,比如随意的躺在沙发上看,真正体会阅读的乐趣 ,更不用老呆在电脑前面。 于是便去了海底图书城昊海楼。它里面基本上是很多小的书店构成。 里面最多的是考试相关的书籍比如英语,公务员,考研等等,很有中国特色。还有少数比较有特色的是专业相关的店,比如医学专业的。

设计模式2: Abstract Factory模式

Tuesday, April 22nd, 2008

工厂模式: 用于抽象平台无关的类层次特别有用。在很多平台无关的GUI类库上广泛使用此模式。 http://www.vincehuston.org/dp/abstract_factory.html