星期二, 1月 16, 2018

星期二, 1月 02, 2018

scratch 2.0 的限制

1. function 沒有 return

    替代方法:
    
    a. 直接對儲存的data動手

    b. 將結果存在專用 "return value" 或 "return list" 再蓋回

    影響:

    小,只是步驟變多

2. recursive function 沒有 local variable

   替代方法:
    
    a. 只能對儲存的data動手

    例:https://scratch.mit.edu/projects/195742340/#editor

    b. 使用stack push/pop暫存的變數

    例:https://scratch.mit.edu/projects/196441741/#editor

    影響:

    a方案會改變程式架構,b方案需要實作stack

星期六, 12月 23, 2017

角膜塑型片,又破了

$8500

不知道還要撐多久,國小畢業?

星期六, 12月 09, 2017

Andy 打鼓持續進行中

難得不會唉唉叫

願意走下去的音樂之路

星期三, 11月 29, 2017

Andy 空白地球

送你一個空白地球

你的未來,由你自己決定

星期一, 11月 27, 2017

為什麼推薦swift?

0. read as English + Xcode/Playgrounds IDE

1. enum + optional

2. value type + copy on write

3. function as Type + closure + high order function

4. generics (Type or function) + protocol

5. protocol + extension

-=-=-=

save, simple: 0, 1, 2

functional programming: 2, 3, (4, 5)

protocol-oriented programming: 2, 4, 5

星期日, 11月 12, 2017

Andy@好咖




 烘咖啡 DIY

 晚餐準備中
意想不到的早餐