心随所致,梦想为开。Follow the Dreams & Heart.
Posts tagged book
The Strategy Pattern
Mar 9th
The Strategy Pattern defines a family of algorithms, encapsulates each once, and makes them interchangebale. Strategy lets the algorithm vary independently from clients that use it.
OO Principles:
- Encapsulate what varies.
- Favor compostion ove inheritence.
- Program to interface, not implementation.
Bullet Points:
- Knowing the OO basics does not make you a great OO designer.
- Good OO designs are reusable, extensible and maitainable.
- Patterns are proven object-oriented experience.
- Patterns don’t give you code, the give you general solution to design problems. You apply them to your specific application. (more…)
读了“与空姐同居的日子”
Feb 21st
这两天如同两年一样漫长,晚上无聊地玩着数独的游戏,累计都有360分钟了。
刚刚又一口气看完了一部小说,花三个小时。小说的名字叫“和空姐同居的日子“,或者是“和我同居的女人“,写非常好,也很美的故事。原先就看过一部分,但是担心会是悲剧性的结局,所以一直没有读下去。今天终于看完了,似乎美满的结局。他们的幸福是痛并快乐着。
Road to Excellence
Feb 5th
看来语言还是很重要的,其实一直都明白这个道理,不过“行胜于言”这句话还是很有道理的。今天看了几篇别人的故事和一些相关的讨论,这种感觉就更加强烈。
多一门语言,路就宽很多。
Tag: Road to Excellence