Functional programming 6.3

Just because a functional language is functional ([maybe] even completely pure like Haskell!), it doesn’t mean that programs written in that language must be pure when [run].

Haskell’s approach, for example, when dealing with side-effects, can be explained rather simply: Let the whole program itself be pure (meaning that functions always return the same values for the same arguments and don’t have any side effect), but let the return value of the main function be an action that can be [run].

— answered Dec 6 ’11 at 21:32, dflemstr

— Stack Overflow

2013.09.03 Tuesday ACHK

Bank account

緬懷過去 2 | Cumulative concept of time, 16

For a bank account, the past balances are irrelevant and useless. 

What is really relevant is the present balance.

And it has encrypted all the past money that can still be used now. 

— Me@2011.04.25

對於一個銀行户口而言,過往的結餘數字是沒有意義的。真正有意思的是,現在的結餘。

你曾經擁有過的金錢之中,有些已經失去,有仍然擁有。你過去的金錢之中,現在還可以動用的,都已經全部反映在,「現在結餘」那數字之中。所以,「過去結餘」的那堆數字,參考價值不大,不宜多想。

過多的「緬懷過去」,影響身心健康。

— Me@2013.09.03

2013.09.03 Tuesday (c) All rights reserved by ACHK

無限倍 1.2

身輕如燕 1.8 | 試前暑假 3.3

這段改編自 2010 年 7 月 20 日的對話。

萬事起頭難。最難的一步,往往是開始執行大計時的那一步。相反,起頭萬事易。開始了以後,要持續執行往後的步驟,反而沒有那麼困難。

所以,如果你可以在中七(中學的最後一個學年),開學前的那個暑假,先行開始執行你的「past paper 大計」,先行完成數份 past paper(歷屆試題)的話,你的進度就已經是,一般人的一千萬倍。

— Me@2013.09.03

2013.09.03 Tuesday (c) All rights reserved by ACHK