The Ruby Beginner's Guide (5th Edition)
Tags
Summary
Editor's review
Who it's for
A good fit for
- 没有任何编程经验、想从零学一门脚本语言的读者
- 有其他语言基础,想快速上手 Ruby 语法的开发者
- 正在学习 Rails 或准备学习 Rails、需要补齐 Ruby 基本功的人
- 需要一本可随手查阅 Ruby 常用类用法的在职程序员
Not a good fit for
- 希望直接学习 Rails 框架开发 Web 应用、跳过程序语言基础的读者
- 寻找 Ruby 高级元编程、性能优化或并发等进阶主题的资深开发者
- 只想了解编程概念、不打算动手写代码的纯理论型读者
Reading tips
- 按章节顺序推进,每章的示例代码务必亲手敲一遍,比读代码有效得多。
- 先花半天把附录 A 的环境搭好,确保 ruby 与 irb 都能正常运行,再进入第 1 章。
- 第 3 部分可按需跳读,把它当作类库速查表,遇到具体问题时再回来查。
- 读完第 23 章后,试着把「检索邮政编码」改写为自己的小需求,检验学习成果。
About the publisher
Posts & Telecom Press is known for its strengths in science and technology, computing, and information and communications titles, and has extended its publishing into photography, art, software learning, and inspirational growth, giving it a fairly diverse range. Its catalog includes computing and communications works such as Refactoring and Patterns (Revised Edition) and Huawei Switch Learning Guide (Second Edition), alongside bilingual collector's editions such as The Little Prince (Chinese-English-French illustrated collector's edition), The Great Gatsby, and Three Days to See. Beijing Ten Years: 1980-1990 and Ghost Blade: WLOP Personal Illustration Collection reflect its presence in photography and art. Its authors include Antoine de Saint-Exupéry, Helen Keller, Joshua Kerievsky, Wang Da, Zhang Zhaozeng, and WLOP.
Contents
- Part 1 First Taste of Ruby
- Chapter 1 A First Look at Ruby
- Chapter 2 Convenient Objects (Arrays, Hashes, Regular Expressions)
- Chapter 3 Creating Commands (Command-Line Input, File Reading, Method Definition)
- Part 2 Ruby Fundamentals
- Chapter 4 Objects, Variables, and Constants
- Chapter 5 Conditionals
- Chapter 6 Loops
- Chapter 7 Methods
- Chapter 8 Classes and Modules
- Chapter 9 Operators
- Chapter 10 Error Handling and Exceptions
- Chapter 11 Blocks
- Part 3 Ruby's Classes
- Chapter 12 Numeric Classes
- Chapter 13 The Array Class
- Chapter 14 The String Class
- Chapter 15 The Hash Class
- Chapter 16 The Regexp Class
- Chapter 17 The IO Class
- Chapter 18 The File and Dir Classes
- Chapter 19 The Encoding Class
- Chapter 20 The Time and Date Classes
- Chapter 21 The Proc Class
- Part 4 Building Tools by Hand
- Chapter 22 Text Processing
- Chapter 23 Postal Code Lookup
- Appendix A Setting Up a Ruby Environment
- Appendix B Ruby Reference
FAQ
这本书需要先有编程基础吗?
第5版对应哪个 Ruby 版本?现在还适用吗?
这本书和《Programming Ruby》有什么区别?
书中的练习题有答案吗?
Comments
Find this book
This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.