Sunday, June 15, 2014

A random walk down wall street

A practical guide for random walkers, a life cycle guide to investing

3. Dollar-Cost averaging can reduce the risks of investing in stocks and bonds.
Dollar-Cost averaging simply means investing the same fixed amount of money in at regular intervals over a long period of time.

Ex 每年投資$1000,在不穩定的市場跟穩定上漲的市場比較圖

If you expect to be a net saver during the next five years, should you hope for a higher or lower stock market during that period?

Many investor are elated when stock prices rise and depressed when they fall. This reaction makes no sense. Only those who will be sellers of equities in the near future should be happy at seeing stocks rise. Prospective purchasers should much prefer singing prices.

Ex 最初放$500, 之後每個月$100投資在Vanguard 500 Index mutual fund. $39,000 -> $265,000.

If possible, keep a small reserve (in a money fund) to take advantage of market declines and buy a few extra shares if the market is down sharply...
For the stock market as a whole, Newton's law has always worked in reverse: What goes down has come back up.


For those in their twenties, a very aggressive investment pro folio is recommended. At this stage, there is lots of time to ride out the peaks and valleys of investment cycles.





Tuesday, June 10, 2014

Coders at work 2

Douglas Crockford(Yahoo!):

"每次開會都會讓一些人閱讀他們各自的程式碼,...
如果你讓能力很強的同事閱讀程式碼,那麼他們周圍的新手們就會學到很多東西,而這一切是無法透過其他方式獲得的; 如果新手來閱讀程式碼,那他會得到很多極具價值的建議。
這需要給予團隊成員充分的信任,如果團隊不和睦,那就別指望這麼做了"

在招聘程式師時,如何識別優秀人才?
"我會讓應聘者帶來他們寫過的優秀程式碼並帶領我們閱讀這些程式碼。
我想考察這些人的展示能力,我想看看他們引以為傲的東西,我想知道這些程式碼是不是他們自己寫的。"

"好好學習寫作和閱讀"


Brendan Eich(Mozilla):

yacc, parser generator, context-free grammar