Programming Ruby 1.9 & 2.0: The Pragmatic Programmers' Guide, 4/e (Paperback)
Dave Thomas, Andy Hunt, Chad Fowler
- 出版商: Pragmatic Bookshelf
- 出版日期: 2013-08-06
- 定價: $1,800
- 售價: 6.0 折 $1,080
- 語言: 英文
- 頁數: 888
- 裝訂: Paperback
- ISBN: 1937785491
- ISBN-13: 9781937785499
-
相關分類:
Ruby
-
其他版本:
Programming Ruby 3.3: The Pragmatic Programmers' Guide (Paperback)
買這商品的人也買了...
-
$1,200$948 -
$1,558Introduction to Algorithms, 3/e (IE-Paperback)
-
$1,410$1,340 -
$2,110$2,005 -
$580$464 -
$580$458 -
$1,350Practical Object-Oriented Design in Ruby: An Agile Primer (Paperback)
-
$300$234 -
$300$234 -
$580$458 -
$900Programming in Lua, 3/e (Paperback)
-
$580$452 -
$1,130$961 -
$300$234 -
$400$380 -
$1,500$1,275 -
$420$210 -
$349$297 -
$940$700 -
$680$578 -
$480$408 -
$680$578 -
$1,754Foundations of Algorithms, 5/e (Paperback)
-
$1,580$1,501 -
$420$332
相關主題
商品描述
Ruby is the fastest growing and most exciting dynamic language out there. If you need to get working programs delivered fast, you should add Ruby to your toolbox.
This book is the only complete reference for both Ruby 1.9 and Ruby 2.0, the very latest version of Ruby.
2013 marks the 20th anniversary of the Ruby language. We're proud that throughout its history, we've continued to cover the latest version of Ruby.
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.
商品描述(中文翻譯)
Ruby是目前增長最快且最令人興奮的動態語言。如果你需要快速交付工作中的程式,你應該將Ruby加入你的工具箱。
這本書是唯一一本完整參考Ruby 1.9和Ruby 2.0的書籍,也是最新版本的Ruby。
2013年標誌著Ruby語言的20週年。我們很自豪地宣稱,在整個歷史中,我們一直在介紹最新版本的Ruby。
你想從第一個想法快速轉換為可運行的程式嗎?你目前花更多時間滿足編譯器而不是你的客戶或最終用戶嗎?你對那些似乎阻礙你進展的要求嚴格的語言感到沮喪嗎?你正在使用Rails,並想更深入地了解底層的Ruby語言嗎?如果是的話,那麼我們有一個適合你的語言和書籍!
Ruby是一種完全面向對象的語言,就像經典的面向對象語言Smalltalk一樣。與Smalltalk一樣,它是動態類型的(與Java或C++相反),但與Smalltalk不同,Ruby具有Perl和Python等現代腳本語言中的相同便利性。
純面向對象語言的強大結合與腳本語言的便利性使Ruby成為聰明、有前瞻性的程序員的首選工具。
這本書分為四個主要部分:
- 一個廣受好評的Ruby使用教程。
- 該語言的權威參考。
- 所有內置類、模塊和方法的完整文檔。
- 所有97個標準庫的完整描述。
這是Ruby的參考手冊,包括對所有標準庫模塊的描述,對所有內置類和模塊的完整參考(包括Ruby 1.9、1.9.2、1.9.3和2.0引入的所有新方法和更改的方法)。它還包括自Ruby 1.8以來引入的所有新的和更改的語法和語義。了解新的參數傳遞規則、塊中的局部變量作用域、纖維和新的塊聲明語法等令人興奮的新功能。
關於Ruby 2.0:
Ruby 2.0是對Ruby 1.9的較小更新,不像從Ruby 1.8到Ruby 1.9的較大更新。
Ruby 2.0的主要語言變化是添加了關鍵字參數並更改了使用UTF-8作為默認源文件編碼。
標準庫中還有一些新增功能,包括:
- Enumerator::Lazy,它增加了對潛在無窮列表的惰性訪問支持。
- Refinements允許您封裝對第三方類的更改,並將其應用於單個源文件,防止您的更改污染全局應用程序。
你還會發現Ruby 2更快,並且具有改進的內存管理,使其更適合作為服務器使用。
總之,本書中有超過110個章節被標記並交叉連結,以指示2.0內容。
你需要什麼:
本書假設你對面向對象編程有基本的理解。
一般來說,Ruby程序員傾向於使用命令行運行他們的代碼,而不是使用集成開發環境。
Ruby適用於Windows、Linux和Mac系統。