サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
アメリカ大統領選
bosker.wordpress.com
Editing text is the opposite of handling exceptions; or, to put it another way, editing text is like exception handling but backwards in time. I realise this is an unexpected claim, so I hope you will permit me to explain. Although it has the ring of nonsense, there is a perfectly good sense in which it is just straightforwardly true. Added 2014-06-18: it turns out that the story is more interesti
You know the Fibonacci numbers: 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, … Each number is the sum of the previous two. Let’s say the zeroth Fibonacci number is zero, so: And let’s say you want to write some code to compute this function. How would you do it? Perhaps something like this? (Python code) def fib_rec(n): assert n >= 0 if n < 2: return n return fib_rec(n-2) + fib_rec(n-1) This is a pr
このページを最初にブックマークしてみませんか?
『bosker.wordpress.com』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く