近期项目的一些心得

我是OO software engineer, 所以例子难免使用很多oo的概念.

设计模式,面向对象, 都是一种手段,不是目的.

几个大原则:

先想框架, 再想细节.

代码要分层, 划分好边界.

把最容易变化的部分抽象并隔离出来.

一个比较虚的, 简单->复杂. 考虑的足够复杂, 实现就可能很简单.

解耦合. 分配好职责,一个类只做并做好一件事情, 通知机制尽量不要使用依赖过强的方式.

......

2013-06-08 00:01 108

Hello World

This is your first post!

import this

print 'life is short, we need python!'

...

/*just include your code like this way.*/

var me = 'other languages';

console.log('yeah, we also ......

2013-01-13 13:14 242