Effective Ruby: 48 Specific Ways to Write Better Ruby (Effective Software Development Series)

Effective Ruby: 48 Specific Ways to Write Better Ruby (Effective Software Development Series)

Peter J. Jones

If you’re an skilled Ruby programmer, Effective Ruby may help you harness Ruby’s complete energy to write down extra strong, effective, maintainable, and well-performing code. Drawing on approximately a decade of Ruby adventure, Peter J. Jones brings jointly forty eight Ruby most sensible practices, professional counsel, and shortcuts—all supported through reasonable code examples.


Jones deals useful recommendation for every significant sector of Ruby improvement, from modules to reminiscence to metaprogramming. all through, he uncovers little-known idioms, quirks, pitfalls, and intricacies that powerfully effect code habit and performance.

Each merchandise includes particular, actionable, basically equipped instructions; cautious recommendation; targeted technical arguments; and illuminating code examples. whilst a number of recommendations exist, Jones indicates you ways to settle on the person who will paintings top on your situation.


Effective Ruby might help you systematically enhance your code—not via blindly following principles, yet via completely knowing Ruby programming techniques.


Key positive aspects of this concise consultant include

  • How to prevent pitfalls linked to Ruby’s occasionally brilliant idiosyncrasies
  • What you have to learn about inheritance hierarchies to effectively use Rails (and different huge frameworks)
  • How to exploit misunderstood tips on how to do amazingly beneficial issues with collections
  • Better how you can use exceptions to enhance code reliability
  • Powerful metaprogramming methods (and concepts to avoid)
  • Practical, effective trying out strategies, together with MiniTest Unit and Spec Testing
  • How to reliably deal with RubyGem dependencies
  • How to utilize Ruby’s reminiscence administration and profiling tools
  • How to enhance code potency by means of figuring out the Ruby interpreter’s internals

Show sample text content

Download sample