Metaprogramming Ruby 2: Program Like the Ruby Pros (Paperback)
Paolo Perrotta
- 出版商: Pragmatic Bookshelf
- 出版日期: 2014-08-18
- 售價: $1,580
- 貴賓價: 9.5 折 $1,501
- 語言: 英文
- 頁數: 280
- 裝訂: Paperback
- ISBN: 1941222129
- ISBN-13: 9781941222126
-
相關分類:
Ruby
-
相關翻譯:
Ruby 元編程, 2/e (簡中版)
買這商品的人也買了...
-
$780$616 -
$580$452 -
$980$833 -
$1,080Programming Ruby 1.9 & 2.0: The Pragmatic Programmers' Guide, 4/e (Paperback)
-
$360$281 -
$480$379 -
$780$616 -
$490$417 -
$2,180$2,071 -
$590$502 -
$780$616 -
$720$562 -
$590$502 -
$147數學之美, 2/e
-
$520$442 -
$500$395 -
$360$180 -
$580$458 -
$400$316 -
$320$250 -
$790$616 -
$480$379 -
$390$332 -
$450$356 -
$580$458
相關主題
商品描述
Write powerful Ruby code that is easy to maintain and change. With metaprogramming, you can produce elegant, clean, and beautiful programs. Once the domain of expert Rubyists, metaprogramming is now accessible to programmers of all levels. This thoroughly revised and updated second edition of the bestselling Metaprogramming Ruby explains metaprogramming in a down-to-earth style and arms you with a practical toolbox that will help you write your best Ruby code ever.
Dig under the surface and explore Ruby's most advanced feature: a collection of techniques and tricks known as metaprogramming. In this book, you'll learn metaprogramming as an essential component of Ruby and discover the deep, non-obvious details of the language. Once you understand the tenets of Ruby, including the object model, scopes, and singleton classes, you're on your way to applying metaprogramming both in your daily work assignments and in your fun, after-hours projects.
Metaprogramming Ruby, Second Edition makes mastering the language enjoyable. The book is packed with:
Pragmatic examples of metaprogramming in action, many of which come straight from real-life gems such as Rails.
Programming challenges that let you experiment and play with some of the most out-there metaprogramming concepts.
Metaprogramming "spells"--33 practical recipes and idioms that you can study and apply right now, to write code that is sure to impress.
This completely revised new edition covers the new features in Ruby 2.0 and 2.1, and contains code from the latest Ruby libraries, including Rails 4. Most examples are new, "from the wild," with more recent libraries. And the book reflects current ideas of when and how much metaprogramming you should use.
Whether you're a Ruby apprentice on the path to mastering the language or a Ruby wiz in search of new tips, this book is for you.
What You Need:
Ruby 2.x, Ruby 1.9, or a recent version of JRuby.
商品描述(中文翻譯)
以易於維護和修改的方式撰寫強大的 Ruby 程式碼。透過元程式設計,您可以產生優雅、乾淨且美觀的程式。元程式設計曾經是專業 Ruby 程式設計師的領域,現在已經對所有程式設計師開放。這本暢銷書的第二版經過全面修訂和更新,以平易近人的風格解釋元程式設計,並提供一個實用的工具箱,幫助您撰寫最佳的 Ruby 程式碼。
深入挖掘 Ruby 最先進的功能:一系列被稱為元程式設計的技巧和技巧。在這本書中,您將學習元程式設計作為 Ruby 的重要組成部分,並探索語言的深層、非顯而易見的細節。一旦您理解了 Ruby 的原則,包括物件模型、作用域和單例類別,您就可以在日常工作任務和休閒娛樂項目中應用元程式設計。
《元程式設計 Ruby,第二版》讓掌握這門語言變得愉快。這本書充滿了以下內容:
- 具體實用的元程式設計範例,其中許多來自於實際的寶石,如 Rails。
- 讓您嘗試和玩弄一些最前衛的元程式設計概念的程式設計挑戰。
- 「元程式設計法術」- 33個實用的配方和慣用語法,您可以立即學習和應用,以撰寫令人印象深刻的程式碼。
這本全面修訂的新版涵蓋了 Ruby 2.0 和 2.1 的新功能,並包含來自最新 Ruby 函式庫(包括 Rails 4)的程式碼。大部分範例都是新的,來自於最新的函式庫。此外,本書反映了當今有關何時以及使用多少元程式設計的最新想法。
無論您是正在掌握這門語言的 Ruby 學徒,還是一位尋求新技巧的 Ruby 高手,這本書都適合您。
所需資源:
Ruby 2.x、Ruby 1.9 或最新版本的 JRuby。