Programming Ruby 1.9 & 2.0

书名:Programming Ruby 1.9 & 2.0ThePragmaticProgrammers'Guide
豆瓣评分: 9.2


Would you like to go from first idea to working code much, much faster? Do you currently spend more time satisfying the compiler instead of your clients or end users? Are you frustrated with demanding languages that seem to get in your way, instead of getting the work done? Are you using Rails, and want to dig deeper into the underlying Ruby language? If so, then we’ve got a language and book for you! Ruby is a fully object-oriented language, much like the classic object-oriented language, Smalltalk. Like Smalltalk, it is dynamically typed (as opposed to Java or C++), but unlike Smalltalk, Ruby features the same conveniences found in modern scripting languages such as Perl and Python. The combination of the power of a pure object-oriented language with the convenience of a scripting language makes Ruby a favorite tool of intelligent, forward-thinking programmers. The Pickaxe contains four major sections: An acclaimed tutorial on using Ruby. The definitive reference to the language. Complete documentation of all built-in classes, modules, and methods. Complete descriptions of all 97 standard libraries. This is the reference manual for Ruby, including a description of all the standard library modules, a complete reference to all built-in classes and modules (including all the new and changed methods introduced by Ruby 1.9, 1.9.2, 1.9.3, and 2.0¹). It also includes all the new and changed syntax and semantics introduced since Ruby 1.8. Learn about the new parameter passing rules, local variable scoping in blocks, fibers, and the new block declaration syntax, among other exciting new features. About Ruby 2.0 Ruby 2.0 is a minor update to Ruby 1.9, unlike the more major updates from Ruby 1.8 to Ruby 1.9. The major language changes in Ruby 2.0 are the addition of keyword arguments and the change to use UTF-8 as the default source file encoding. There are a number of additions to the standard library, including: Enumerator::Lazy, which adds support for lazy access to potentially infinite lists. Refinements allow you to encapsulate changes to third-party classes, and scope their application to individual source files, preventing your changes from polluting the global application. You’ll also find that Ruby 2 is faster, and has memory management improvements that make it more server-friendly. All told, there are over 110 sections of the book that have been flagged and cross-linked to indicate 2.0 content. What You Need This book assumes you have a basic understanding of object-oriented programming. In general, Ruby programmers tend to favor the the command line for running their code, and they tend to use text editors rather than IDEs. Ruby runs on Windows, Linux, and Macs.


Dave Thomas is a cornerstone of the Ruby community, and is personally responsible for many of its innovative directions and initiatives. He and original co-author Andy Hunt are founders of the Pragmatic Programmers and the Pragmatic Bookshelf. Chad Fowler is co-director of Ruby Central, Inc., and remains an active, driving force in the Ruby community.


@ y 入门好书 @ 曹磊 Ruby简直要比Python复杂好多啊。本书的组织结构不是一般的乱,为什么评价还这么高?23章之后没有认真看 @ zhaqiang GitHub repo: @ hoiyd 特别厚,主要读了duck type和元编程那章,其他的内容有需要的时候再去查阅吧。 @ stephansun 粗粗的翻了一遍,对本书的组织无爱啊无爱。 @ hoiyd 特别厚,主要读了duck type和元编程那章,其他的内容有需要的时候再去查阅吧。 @ 大傻在忽悠着你 心里是给4星的,实在太厚,不过讲的很好啊,就内容来说的确给5分,后面部分没看,感觉不实际写点东西的话看了收获不会太大,先用一段时间再说,在公司抽一点闲暇看看,前后看了好几个礼拜,最近觉得太拖沓所以抓紧过了一遍,其实几天就可以看完前十几章,个人建议最好一气呵成读完 @ lihuichaoo 很不错的入门书,非常易读,非常沉(有400多页的 lib reference…) @ 曹磊 Ruby简直要比Python复杂好多啊。本书的组织结构不是一般的乱,为什么评价还这么高?23章之后没有认真看 @ zhaqiang GitHub repo:


分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址