{"product_id":"9781941222126","title":"Metaprogramming Ruby 2: Program Like the Ruby Pros","description":"\u003cp\u003eWrite 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 \u003ci\u003eMetaprogramming Ruby\u003c\/i\u003e 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.\u003c\/p\u003e\u003cp\u003eDig 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.\u003c\/p\u003e\u003cp\u003e \u003ci\u003eMetaprogramming Ruby, Second Edition\u003c\/i\u003e makes mastering the language enjoyable. The book is packed with:\u003c\/p\u003e\u003cp\u003ePragmatic examples of metaprogramming in action, many of which come straight from real-life gems such as Rails.\u003c\/p\u003e\u003cp\u003eProgramming challenges that let you experiment and play with some of the most out-there metaprogramming concepts.\u003c\/p\u003e\u003cp\u003eMetaprogramming \"spells\"33 practical recipes and idioms that you can study and apply right now, to write code that is sure to impress.\u003c\/p\u003e\u003cp\u003eThis 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.\u003c\/p\u003e\u003cp\u003eWhether 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.\u003c\/p\u003e\u003cp\u003e \u003cb\u003eWhat You Need:\u003c\/b\u003e \u003c\/p\u003e\u003cp\u003eRuby 2.x, Ruby 1.9, or a recent version of JRuby.\u003c\/p\u003e\u003cp\u003e\u003c\/p\u003e","brand":"Pragmatic Programmers, LLC, The","offers":[{"title":"Default Title","offer_id":50096625910000,"sku":"9781941222126","price":38.0,"currency_code":"USD","in_stock":false}],"url":"https:\/\/shop-qa.barnesandnoble.com\/products\/9781941222126","provider":"Barnes \u0026 Noble (DEV)","version":"1.0","type":"link"}