難得找到的好站,有精美的文字說明
https://medium.com/@peterwei_62634
https://scratch.mit.edu/studios/1895145/
星期二, 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方案會改變程式架構,b方案需要實作stack
星期六, 12月 09, 2017
星期一, 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
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
訂閱:
文章 (Atom)