你這段 Ruby Code 超速摟,已經沒有人看得懂了!
View Slide
WEB DEVELOPERGAME DEVELOPER࣌ݭ@elct9620
https://oktop.tumblr.com/
DSL@topic[0]
針對 特定情境 所設計的語言
Meta Programming@topic[1]
對語言的 拓展 進而改善開發效率
DSL 是實現 Meta Programming 的 手段 之一
Make a DSL by yourself@topic[2]
Create your meta programming@topic[3]
The "eval" way@topic[4]
比較 特殊 的用法,但可能意外常見
Unlight - Code Generator@topic[5]
為什麼要 動態 產生方法?
Length (2 Byte)Command (2 Byte)Body"\n" (1 Byte)
Number (4 Byte)Char (1 Byte)StringBoolean (1 Byte)Length
這樣做有什麼 好處 ?
Unlight - Meta Programming@topic[6]
Q&A
Thanks