Ruby程序设计语言(影印版)
Ruby程序设计语言(影印版)
David Flanagan, Yukihiro Matsumoto
出版时间:2008年05月
页数:429
《Ruby程序设计语言》是Ruby的权威指南,全面涵盖该语言的1.8版和1.9版。本书详尽但并不拘泥于语言规范,既适合首次接触Ruby的资深程序员,同样也适合那些想要挑战对这门语言的理解并更深入掌握它的Ruby程序员。本书首先通过一个快速指南带您熟悉这门语言,然后彻底解释它的细节,包括:

* Ruby程序的词法和句法结构
* 数据类型和对象
* 表达式和操作符
* 语句和控制结构
* Method、proc、lambda和closure
* 类和模块
* 反射和元编程
* Ruby平台

《Ruby程序设计语言》包含了对Ruby平台的大量API的全面介绍,通过包含详尽注释的代码展示了如何将Ruby用于文本处理、数值处理、集合、输入/输出、网络和并发。

如果您真想要理解Ruby,本书不可或缺。

David Flanagan是一名程序员以及《Java技术手册》和《JavaScript权威指南》两本畅销书(同为O,Reilly出版)的作者,这两本书被认为是Java和JavaScript的标准参考。

Yukihiro Matsumoto(松本行弘)是Ruby语言的创造者、设计者及开发领导人。

“Flanagan的这本Ruby参考手册探寻所有的Ruby宝藏,再将其绘制成图,每个人都会希望阅读它。”
——Evan Phoenix,Rubinius实现的创造者
  1. Preface
  2. 1. Introduction
  3. 1.1 A Tour of Ruby
  4. 1.2 Try Ruby
  5. 1.3 About This Book
  6. 1.4 A Sudoku Solver in Ruby
  7. 2. The Structure and Execution of Ruby Programs
  8. 2.1 Lexical Structure
  9. 2.2 Syntactic Structure
  10. 2.3 File Structure
  11. 2.4 Program Encoding
  12. 2.5 Program Execution
  13. 3. Datatypes and Objects
  14. 3.1 Numbers
  15. 3.2 Text
  16. 3.3 Arrays
  17. 3.4 Hashes
  18. 3.5 Ranges
  19. 3.6 Symbols
  20. 3.7 True, False, and Nil
  21. 3.8 Objects
  22. 4. Expressions and Operators
  23. 4.1 Literals and Keyword Literals
  24. 4.2 Variable References
  25. 4.3 Constant References
  26. 4.4 Method Invocations
  27. 4.5 Assignments
  28. 4.6 Operators
  29. 5. Statements and Control Structures
  30. 5.1 Conditionals
  31. 5.2 Loops
  32. 5.3 Iterators and Enumerable Objects
  33. 5.4 Blocks
  34. 5.5 Altering Control Flow
  35. 5.6 Exceptions and Exception Handling
  36. 5.7 BEGIN and END
  37. 5.8 Threads, Fibers, and Continuations
  38. 6. Methods, Procs, Lambdas, and Closures
  39. 6.1 Defining Simple Methods
  40. 6.2 Method Names
  41. 6.3 Methods and Parentheses
  42. 6.4 Method Arguments
  43. 6.5 Procs and Lambdas
  44. 6.6 Closures
  45. 6.7 Method Objects
  46. 6.8 Functional Programming
  47. 7. Classes and Modules
  48. 7.1 Defining a Simple Class
  49. 7.2 Method Visibility: Public, Protected, Private
  50. 7.3 Subclassing and Inheritance
  51. 7.4 Object Creation and Initialization
  52. 7.5 Modules
  53. 7.6 Loading and Requiring Modules
  54. 7.7 Singleton Methods and the Eigenclass
  55. 7.8 Method Lookup
  56. 7.9 Constant Lookup
  57. 8. Reflection and Metaprogramming
  58. 8.1 Types, Classes, and Modules
  59. 8.2 Evaluating Strings and Blocks
  60. 8.3 Variables and Constants
  61. 8.4 Methods
  62. 8.5 Hooks
  63. 8.6 Tracing
  64. 8.7 ObjectSpace and GC
  65. 8.8 Custom Control Structures
  66. 8.9 Missing Methods and Missing Constants
  67. 8.10 Dynamically Creating Methods
  68. 8.11 Alias Chaining
  69. 8.12 Domain-Specific Languages
  70. 9. The Ruby Platform
  71. 9.1 Strings
  72. 9.2 Regular Expressions
  73. 9.3 Numbers and Math
  74. 9.4 Dates and Times
  75. 9.5 Collections
  76. 9.6 Files and Directories
  77. 9.7 Input/Output
  78. 9.8 Networking
  79. 9.9 Threads and Concurrency
  80. 10. The Ruby Environment
  81. 10.1 Invoking the Ruby Interpreter
  82. 10.2 The Top-Level Environment
  83. 10.3 Practical Extraction and Reporting Shortcuts
  84. 10.4 Calling the OS
  85. 10.5 Security
  86. Index
书名:Ruby程序设计语言(影印版)
国内出版社:东南大学出版社
出版时间:2008年05月
页数:429
书号:978-7-5641-0839-7
原版书出版商:O'Reilly Media
David Flanagan
 
David Flanagan是Mozilla的软件工程师,为O'Reilly撰写了若干 著作,包括《JavaScript权威指南》《Ruby编程语言》,以及本版的先前版本。

David Flanagan是一名程序员,也是一名作家,它的个人网站是http://davidflanagan.com。他在O’Reilly出版的其他畅销书还包括《JavaScript Pocket Reference》、《The Ruby Programming Language》以及《Java in a Nutshell》。David毕业于麻省理工学院,获得计算机科学与工程学位。他和妻子和孩子一起生活在西雅图和温哥华之间的美国太平洋西北海岸。
 
 
Yukihiro Matsumoto
 
Yukihiro Matsumoto("Matz"):Ruby的缔造者,一位专业程序员,为日本开源软件公司netlab.jp工作。Matz也是日本开源软件的布道者,发布了若干开源产品,cmail是其中之一,这是一个基于Emacs的邮件用户代理,完全用Emacs Lisp语言编写。Ruby是第一款他在日本之外被广泛熟知的软件。
Yukihiro Matsumoto (“Matz”), the creator of Ruby, is a professional programmer who worked for the Japanese open source company netlab.jp. Matz is also known as one of the open source evangelists in Japan. He’s released several open source products,including cmail, the Emacs-based mail user agent, written entirely in Emacs lisp. Ruby
is his first piece of software that has become known outside of Japan.
 
 
The animals on the cover of The Ruby Programming Language are Horned Sungem
hummingbirds (Heliactin bilophus). These small birds are native to South America,
living mainly in Brazil and Bolivia. They prefer dry, open habitats such as grasslands,
and they avoid dense or humid forests.
Hummingbirds have the fastest wingbeat of all birds, and the Horned Sungem is capable
of 90 wingbeats per second. (Contrast that with the vulture, the slowest of all birds,
capable of just 1 wingbeat per second.) Because hummingbirds are so fast and light,
they are able to hover in mid-air by rapidly flapping their wings. They can also fly
backward (the only birds who can do so) in order to keep position as they drink nectar
from flowers. Their long, thin bills allow them to reach deep within blossoms. Fittingly,
the Portuguese word for hummingbird is beija-flor, or “the bird that kisses flowers.”
The English word, of course, comes from the hum made by its fast-moving wings.
The male Horned Sungem has tufts of red, blue, and gold feathers on either side of its
head. Its back is iridescent green, its throat and breast are black, and its belly is white.
It has a long, pointed tail. The female looks similar to the male but lacks the dramatic
crown pattern. Because of the hummingbird’s vibrant colors, early Spanish explorers
named it Joyas voladoras, or “flying jewel.”
There are many myths about hummingbirds. In Brazil, a black hummingbird is a sign
of a death in the family. The ancient Aztecs honored them, and priests used staffs
covered with their feathers to remove curses. The hummingbird is also a symbol of
resurrection, as Aztecs believed that dead warriors were reincarnated as these birds.
The Aztec god of the Sun and war, Huitzilopochtli, was represented as one; his name
means “Hummingbird from the south,” the south being the location of the spirit world.
购买选项
定价:64.00元
书号:978-7-5641-0839-7
出版社:东南大学出版社