2014年7月11日 星期五

Design pattern - strategy and template

strategy 策略:有不同的做法,臨機應變
strategy也稱為policy
定義一族演算法,將每一個演算法封裝在subclass,定義一致的介面


template 樣版:相同的規劃,交予不同的物件執行

sort(aCollection, compareFunction(o1, o2){return o1.attr1.compareTo(o2.attr1);})



2013年4月27日 星期六

Message queue

一個Integration Platform as Services的範例




Message Broker

Send message to multiple broker with fanout protocol
















2013年3月2日 星期六

2011年6月27日 星期一

We can't ship junk 2007



a question from Molly Wood of CNET:
Is Apple’s goal to overtake the PC in market share?

Jobs said, “Our goal is to make the best personal computers in the world and make products we are proud to sell and recommend to our family and friends. We want to do that at the lowest prices we can.

“But there’s some stuff in our industry that we wouldn’t be proud to ship. And we just can’t do it. We can’t ship junk,” said Jobs.

“There are thresholds we can’t cross because of who we are. And we think that there’s a very significant slice of the [market] that wants that too. You’ll find that our products are not premium priced. You price out our competitors’ products, and add features that actually make them useful, and they’re the same or actually more expensive. We don’t offer stripped-down, lousy products.”