2010年3月23日 星期二

function pointer in C++ to boost::function

Effective c++ item 35 舉了一個有趣的例子GameCharacter,

主要的精神在於利用function pointer把真正計算血量的部份,交給專門計算血量的function。達到像Strategy pattern可以隨時抽換實作內容的目的。

一開始看到後面boost時沒什麼fu,主要的原因在於自己對原本c++要怎麼delegate function的實作方式不熟,所以當後面進階的boost::function跟boost::bind的觀念導入後,心中只剩OS:這哪裡方便了?一點都不蝦阿~為了不模糊焦點,我們先不管pattern怎麼用,直接看看function pointer in standard C++的技巧。

2010年3月12日 星期五

你是雞,是豬,還是鬥雞?

在看Scrum的時候連帶看到了一個寓言The Chicken and the Pig

A pig and a chicken are walking down a road. The chicken looks at the pig and says, “Hey, why don’t we open a restaurant?” The pig looks back at the chicken and says, “Good idea, what do you want to call it?” The chicken thinks about it and says, “Why don’t we call it ‘Ham and Eggs’?” “I don’t think so,” says the pig, “I’d be committed, but you’d only be involved.”

大意是做出一份有雞蛋與培根/火腿的早餐,雞跟豬各自扮演的角色,用來比擬在一個專案或產品內每個人的角色。

Scrum軟體開發工具與方法—系列講座 (一) 課後雜記

昨天公司給我去參加外部課程的機會,在此先感謝一下老闆 (逢迎拍馬才是升官之道)
趁還有記憶在這寫一下筆記,以便之後準備公司內部報告。

2010年3月4日 星期四

Razorcap Studios

推一下 http://www.razorcap.com 作者是我當兵時候的學長,一直都在遊戲軟體業耕耘,現在也開始玩iPhone Programming了 超蝦~ Razorcap這名字的由來也很酷,請學長有空可以跟大家介紹一下 :)