Paolo Perrotta has more than ten years of experience as a developer and writer. He worked for domains ranging from embedded to enterprise software, computer games, and web applications. These days, Paolo coaches agile teams for Yoox, a large Internet fashion shop, and teaches Java to developers throughout Europe. He lives in Bologna, Italy, with his girlfriend and a cat. He loves Ruby.
Everyone in the Ruby world seems to be talking about metaprogramming--how you can use it to remove duplication in your code and write elegant, beautiful programs. Now you can get in on the action as well.
This book describes metaprogramming as an essential component of Ruby. Once you understand the principles of Ruby, including the object model, scopes, and eigenclasses, you're on your way to applying metaprogramming both in your daily work and in your fun, after-hours projects.
Learning metaprogramming doesn't have to be difficult or boring. By taking you on a Monday-through-Friday workweek adventure with a pair of programmers, Paolo Perrotta helps make mastering the art of metaprogramming both straightforward and entertaining.
發表於2025-04-13
Metaprogramming Ruby 2025 pdf epub mobi 電子書 下載
此書不是基本入門書,但是想更好的應用ruby,在看完ruby基礎後,應該看看此書,瞭解ruby真正的動態化威力。 現在感覺做DSL,最方便的就是ruby瞭,因為有很多內置的方法就很適閤元編程。 前麵兩章,我看得這裏的翻譯,翻譯的還不錯,後麵的就看網上的e文版,好在這本書的英文算...
評分作為一名JavaScript 開發者,在看本書的過程中每看到一個元編程技巧,都會忍不住將兩種語言作一番比較和聯想:在JavaScript 可以應用這種技巧嗎?可以的話,這種技巧應用得廣泛嗎? 某程度上JavaScript 比Ruby 更靈活,所以大部分技巧在JavaScript 都可以輕鬆實現。 動態方法 ...
評分看瞭兩遍以後 你會發現 看牛人的Code沒那麼難懂瞭~ 這是最明顯的體現 其實我建議的是一開始的時候 就一邊學一邊練習 任何一個看不懂的技術點 都不要放過 其實打開irb 沉下心 慢慢看 沒有看不懂的章節。 補充一句:我上一次挑燈夜讀 手不釋捲的讀一本書是2010年春夏交接的事...
評分讀完這本書覺得,什麼是元編程?就是一些更強大、更靈活的技巧的集閤。 跟著書中的 Bill 大師去思考,試著解決每一個問題。你會發現這裏所展示的方法、技巧,就恰好是解決問題最精巧、最舒服的方式。雖然這個過程會不斷的讓人豁然開朗和驚嘆,但又覺得一切都好像是自然而然的...
評分圖書標籤: Ruby MetaProgramming 編程 Programming 程序設計 計算機 ruby metaprogramming
結閤Ruby和Rails源碼對元編程思想的很好解釋,讀起來有些費勁,需要常讀纔能吃透
評分居然齣中文版瞭
評分蠻不錯,簡潔明瞭,看瞭 Part 1 的 90% 和 Part 2 的 30% ,收獲不小。 相較於 Python , Ruby 的設計更加 OO 也更加 functional 。個人角度上, Ruby 是我深入瞭解過的語言中最喜歡的語言之一。此書之於 Ruby ,相當於為初學者在 Ruby 紛繁迷亂的 magic 語言特森林中,畫瞭一幅尋寶圖。給四星是因為此書到底還是不如 sicp 和 on lisp 給我的震撼和啓發更大。
評分看完前四章,大緻瞭解瞭它的對象模型瞭。後麵的應用部分不看瞭,反正也不打算用ruby。確實用lua來實現這套模型是可以的(lua根本就沒有OO模型…),不過lua沒有多少語法糖,調用函數一定要加個(),實現DSL怎麼也不如ruby漂亮。其實也不喜歡內部DSL,一來語法受限,不如外部DSL使用parser的靈活,二來犧牲瞭運行效率,沒法對代碼做靜態檢查和優化。用外部DSL就可以兼顧兩者,雖然實現起來麻煩一些
評分非常適閤已經能夠完成一些Ruby項目,需要深入理解Ruby的用戶
Metaprogramming Ruby 2025 pdf epub mobi 電子書 下載