Ruby程序设计语言

出版时间:2008-5  出版社:东南大学出版社  作者:费拉纳根  页数:429  
Tag标签:无  

内容概要

《Ruby程序设计语言》是Ruby的权威指南,全面涵盖该语言的1.8版和1.9版。本书详尽但并不拘泥于语言规范,既适合首次接触Ruby的资深程序员,同样也适合那些想要挑战对这门语言的理解并更深入掌握它的Ruby程序员。本书首先通过一个快速指南带您熟悉这门语言,然后彻底解释它的细节,包括:  Ruby程序的词法和句法结构  数据类型和对象  表达式和操作符  语句和控制结构  Method、proc、lambda和closure  类和模块  反射和元编程  Ruby平台  《Ruby程序设计语言》包含了对Ruby平台的大量API的全面介绍,通过包含详尽注释的代码展示了如何将Ruby用于文本处理、数值处理、集合、输入/输出、网络和并发。  如果您真想要理解Ruby,本书不可或缺。

书籍目录

Preface1.Introduction 1.1 A Tour of Ruby 1.2 Try Ruby 1.3 About This Book 1.4 A Sudoku Solver in Ruby2.The Structure and Execution of Ruby Programs 2.1 Lexical Structure 2.2 Syntactic Structure 2.3 File Structure 2.4 Program Encoding 2.5 Program Execution3.Datatypes and Objects 3.1 Numbers 3.2 Text 3.3 Arrays 3.4 Hashes 3.5 Ranges 3.6 Symbols 3.7 True, False, and Nil 3.8 Objects4.Expressions and Operators 4.1 Literals and Keyword Literals 4.2 Variable References 4.3 Constant References 4.4 Method Invocations 4.5 Assignments 4.6 Operators5.Statements and Control Structures 5.1 Conditionals 5.2 Loops 5.3 Iterators and Enumerable Objects 5.4 Blocks 5.5 Altering Control Flow 5.6 Exceptions and Exception Handling 5.7 BEGIN and END 5.8 Threads, Fibers, and Continuations6.Methods, Procs, Lambflas, and Closures 6.1 Defining Simple Methods 6.2 Method Names 6.3 Methods and Parentheses 6.4 Method Arguments 6.5 Procs and Lambdas 6.6 Closures 6.7 Method Objects 6.8 Functional Programming7.Classes and Modules 7.1 Defining a Simple Class 7.2 Method Visibility: Public, Protected, Private 7.3 Subclassing and Inheritance 7.4 Object Creation and Initialization 7.5 Modules 7.6 Loading and Requiring Modules 7.7 Singleton Methods and the Eigenclass 7.8 Method Lookup 7.9 Constant Lookup8.Reflection and Metaprogramming 8.1 Types, Classes, and Modules 8.2 Evaluating Strings and Blocks 8.3 Variables and Constants 8.4 Methods 8.5 Hooks 8.6 Tracing 8.7 ObjectSpace and GC 8.8 Custom Control Structures 8.9 Missing Methods and Missing Constants 8.10 Dynamically Creating Methods 8.11 Alias Chaining 8.12 Domain-Specific Languages9.The Ruby Platform 9.1 Strings 9.2 Regular Expressions 9.3 Numbers and Math 9.4 Dates and Times 9.5 Collections 9.6 Files and Directories 9.7 Input/Output 9.8 Networking 9.9 Threads and Concurrency10. The Ruby Environment 10.1 Invoking the Ruby Interpreter 10.2 The Top-Level Environment 10.3 Practical Extraction and Reporting Shortcuts 10.4 Calling the OS 10.5 SecurityIndex

图书封面

图书标签Tags

评论、评分、阅读与下载


    Ruby程序设计语言 PDF格式下载


用户评论 (总计10条)

 
 

  •   Matz的这本Ruby的书,浅显易懂,把Ruby语言的精华展现给读者,其中还含有Ruby1.9版的内容和说明。如果你阅读英文没有问题的话,建议你直接阅读原文,减去翻译不准的问题。本书的英文属于易读那种,很容易读懂。结合各种Ruby例子的学习,你不会感到你在是阅读E文,因为Ruby的内容在牵引着你的好奇,想不断知道更多更多...
  •   确实是学习Ruby的好书,非常不错,影印版的价格也是还可以。如果想学习Ruby,这本书是必读。大师之作,详细完备,不过,也不是那么非常得完备。毕竟也就才400多页。

    以上是对书本身的评论。

    当当送我的,绝对是一本二手,又脏又破,苦于想避免来回折腾,就没有去更换或者退货了。我也懒得说了,反正当当对货品的外包装是从不在意,屡教不改。无奈乎,客户也需要一些书,作罢了。就这样吧。毕竟,也不是所有的情况都这样。我买的大部分书还是不错的。
  •   这本作为入门书也是可以的,很实用。书的内容浅显易懂,且包含了ruby所有重要的特性,样例也是给的非常充分。刚开始使用ruby的很长一段时间里手头都放着这本书,随时翻看查用。开始使用ruby的初期,这本书比rubycookbook对我的帮助更多
  •   Ruby的必读书,没什么好说的,买了没错。
  •   想买中文版的,结果买了英文版。英文版也还不错!
  •   给儿子订的,很满意,对工作有帮助。
  •   松本的经典书籍!
  •   考试正用上,及时方便。
  •   一本Ruby的百科全书式的教程。
    印刷和纸质相当不错。
    内容详实、细致,但需要一定编程能力和背景。
  •   还不错,正在学习当中。
 

250万本中文图书简介、评论、评分,PDF格式免费下载。 第一图书网 手机版

京ICP备13047387号-7