What Is Software Design?

程式設計不是 “building software”,而是 “designing software”。

Is Design Dead?

軟體系統的設計是演進來的,不能一步到位,而是要藉由憑繁與使用者互動得到的回饋來修改系統設計。

Programming is Gardening, not Engineering

與其把程式設計比喻成蓋房子,實際上更像是園藝。

Orthogonality and the DRY Principle

所有程式設計活動其實都是維護,因為絕大部分的時間都在改code,寫一點改一點。即使是新專案,也很快需要回頭作修改。

2013年11月7日 星期四

git - 在 master 上面加上新 tag

git - 在 master 上面加上新 tag

git tag -a (v1.3branch) -m "Release v1.3 Tag"



====================================

git tag v2.4.0  <===給tag

git push --tags <==tag push 上git

2013年11月6日 星期三

判斷是否為 iPhone 5

#define iPhone5 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 1136), [[UIScreen mainScreen] currentMode].size) : NO)


所以當使用時,僅需照以下寫法使用即可囉
if (iPhone5)
//do something for iPhone 5
else
//do something for iPhone 4s 4 3GS etc..

ios table view 要把 Header table 拿掉

//設置Header table的高度

- (CGFloat) tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
{
    return 1;

}

cocoapods 的更新指令


要更新 cocoapods

sudo gem update cocoapods




要更新 podfile內的版本

pod update