Metaprogramming Ruby 2: Program Like the Ruby Pros (Paperback)
暫譯: 元編程 Ruby 2:像 Ruby 專家一樣編程 (平裝本)
Paolo Perrotta
- 出版商: Pragmatic Bookshelf
- 出版日期: 2014-08-18
- 售價: $1,600
- 貴賓價: 9.5 折 $1,520
- 語言: 英文
- 頁數: 280
- 裝訂: Paperback
- ISBN: 1941222129
- ISBN-13: 9781941222126
-
相關分類:
Ruby
-
相關翻譯:
Ruby 元編程, 2/e (簡中版)
買這商品的人也買了...
-
$780$663 -
$580$452 -
$980$833 -
$1,080Programming Ruby 1.9 & 2.0: The Pragmatic Programmers' Guide, 4/e (Paperback)
-
$360$281 -
$480$408 -
$780$616 -
$490$417 -
$2,180$2,071 -
$590$502 -
$780$616 -
$720$562 -
$590$502 -
$147數學之美, 2/e
-
$520$343 -
$500$395 -
$360$180 -
$580$458 -
$400$316 -
$320$250 -
$790$616 -
$480$379 -
$390$257 -
$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 代碼,讓維護和變更變得簡單。透過元編程(metaprogramming),您可以產生優雅、乾淨且美觀的程式。元編程曾經是專家 Ruby 程式設計師的領域,現在對所有層級的程式設計師都變得可及。這本暢銷書《Metaprogramming Ruby》的第二版經過徹底修訂和更新,以平易近人的風格解釋元編程,並為您提供一個實用的工具箱,幫助您寫出最佳的 Ruby 代碼。
深入探索 Ruby 最先進的特性:一系列被稱為元編程的技術和技巧。在這本書中,您將學習元編程作為 Ruby 的一個基本組成部分,並發現這門語言深奧且不明顯的細節。一旦您理解了 Ruby 的基本原則,包括物件模型、範圍和單例類別,您就能在日常工作任務和有趣的業餘專案中應用元編程。
《Metaprogramming Ruby, Second Edition》讓掌握這門語言變得愉快。這本書充滿了:
實用的元編程範例,許多來自於現實生活中的 gem,例如 Rails。
編程挑戰,讓您可以實驗和玩弄一些最前衛的元編程概念。
元編程的「咒語」——33 個實用的食譜和慣用語,您可以立即學習和應用,寫出令人印象深刻的代碼。
這本全新修訂的版本涵蓋了 Ruby 2.0 和 2.1 的新特性,並包含來自最新 Ruby 函式庫的代碼,包括 Rails 4。大多數範例都是新的,來自「野外」的更近期函式庫。這本書反映了當前對於何時以及應該使用多少元編程的想法。
無論您是 Ruby 學徒,正在掌握這門語言的路上,還是 Ruby 大師,尋找新技巧,這本書都適合您。
您需要的條件:
Ruby 2.x、Ruby 1.9 或最近版本的 JRuby。