《Confident Ruby》是一本圖書,作者是Avdi Grimm
基本介紹
- 中文名:Confident Ruby : 32 Patterns for Joyful Coding
- 作者:Avdi Grimm
- 出版社:上海財經大學出版社
- 出版時間:2013年10月22日
- 頁數:282 頁
- 裝幀:PDF/EPUB
- ISBN:9787564229993
內容簡介
For many programmers, discovering Ruby is a revelation. They are overjoyed by how elegantly and succinctly they can state problems in the language. But then the real world creeps in, and that joy gradually wanes as the code becomes cluttered with distracting edge case scenarios, error handling, and checks for nil. Confident Ruby is a guide to recapturing the joy of writing Ruby...(展開全部) For many programmers, discovering Ruby is a revelation. They are overjoyed by how elegantly and succinctly they can state problems in the language. But then the real world creeps in, and that joy gradually wanes as the code becomes cluttered with distracting edge case scenarios, error handling, and checks for nil. Confident Ruby is a guide to recapturing the joy of writing Ruby by employing small patterns and stylistic choices to make each method tell a coherent story. Over the course of 32 patterns, you’ll learn how to isolate uncertainty at the borders of your code; how to avoid repetitive conditionals; and how to liberate your code from the chore of nil-checking. You’ll discover the four parts of a method, and how to use those parts to construct a narrative. Following along with real-world refactoring sessions, you’ll learn how to apply these lessons to legacy code. Whether you are a novice or an experienced Ruby hacker, this book will help you become a more confident and joyful programmer. Avdi Grimm has been hacking Ruby code for over 10 years, and is still loving it. He is chief aeronaut at ShipRise, head chef at RubyTapas.com, and a co-host of the Ruby Rogues podcast. He lives in southern Pennsylvania with his wife and five children.