Command Query Responsibility Segregation Pattern

在面向对象设计中,常常忽略了一个概念,对象是用于描述一个单一职责的,它要求我们:一个对象包含自身属性、行为、内在调用等行为。对象间通过相互调用完成一项工作。因此,我们在做面向对象设计时,应该分清一个对象应该包含多少东西,对象的属性是否 belong to它自身。如果一个对象的行为模糊不清,是否该对象设计合理?

Read more

OAuth2几种授权模式

授权码模式

授权码模式(authorization code)是功能最完整、流程最严密的授权模式。它的特点就是通过客户端的后台服务器,与”服务提供商“的认证服务器进行互动。

Read more

Gentoo fresh installation

Gentoo fresh installation through Virtualbox and livecd.

Introduction:
Gentoo are very customizable distro compared to others such as ubuntu. You can go easymode and use ubuntu cause ubuntu is for people that dont know how to use or install gentoo. Gentoo is totally free from 3rd party application or commercial.

Note:
You better stick with Gentoo handbook until you know what you doing.
Learn from mistakes. Do it again until you familiar with your basic setting.

Read more