Eloquent Ruby (Paperback)

Russ Olsen

  • 出版商: Addison Wesley
  • 出版日期: 2011-02-11
  • 售價: $2,090
  • 貴賓價: 9.5$1,986
  • 語言: 英文
  • 頁數: 448
  • 裝訂: Paperback
  • ISBN: 0321584104
  • ISBN-13: 9780321584106
  • 相關分類: Ruby
  • 海外代購書籍(需單獨結帳)

買這商品的人也買了...

商品描述

It’s easy to write correct Ruby code, but to gain the fluency needed to write great Ruby code, you must go beyond syntax and absorb the “Ruby way” of thinking and problem solving. In Eloquent Ruby, Russ Olsen helps you write Ruby like true Rubyists do–so you can leverage its immense, surprising power.

 

 

Olsen draws on years of experience internalizing the Ruby culture and teaching Ruby to other programmers. He guides you to the “Ah Ha!” moments when it suddenly becomes clear why Ruby works the way it does, and how you can take advantage of this language’s elegance and expressiveness.

 

 

Eloquent Ruby starts small, answering tactical questions focused on a single statement, method, test, or bug. You’ll learn how to write code that actually looks like Ruby (not Java or C#); why Ruby has so many control structures; how to use strings, expressions, and symbols; and what dynamic typing is really good for.

 

 

Next, the book addresses bigger questions related to building methods and classes. You’ll discover why Ruby classes contain so many tiny methods, when to use operator overloading, and when to avoid it. Olsen explains how to write Ruby code that writes its own code–and why you’ll want to. He concludes with powerful project-level features and techniques ranging from gems to Domain Specific Languages.

 

 

A part of the renowned Addison-Wesley Professional Ruby Series, Eloquent Ruby will help you “put on your Ruby-colored glasses” and get results that make you a true believer.

商品描述(中文翻譯)

寫出正確的 Ruby 代碼很容易,但要獲得寫出優秀 Ruby 代碼所需的流暢度,你必須超越語法,吸收「Ruby 的方式」思考和解決問題。在《Eloquent Ruby》一書中,Russ Olsen幫助你像真正的 Ruby 程式設計師一樣寫 Ruby 代碼,以便你能充分利用它的巨大而令人驚訝的能力。

Olsen借助多年來內化 Ruby 文化和教授其他程式設計師 Ruby 的經驗,引導你在「啊哈!」的時刻,突然明白為什麼 Ruby 以這種方式運作,以及你如何利用這種語言的優雅和表達力。

《Eloquent Ruby》從小處著手,回答針對單個語句、方法、測試或錯誤的戰術性問題。你將學習如何寫出真正看起來像 Ruby(而不是 Java 或 C#)的代碼;為什麼 Ruby 有這麼多控制結構;如何使用字符串、表達式和符號;以及動態類型的真正優勢。

接下來,本書探討了與建立方法和類相關的更大問題。你將發現為什麼 Ruby 類包含如此多微小的方法,何時使用運算符重載,以及何時避免使用它。Olsen解釋了如何編寫能夠生成自己代碼的 Ruby 代碼,以及為什麼你會想要這樣做。他最後介紹了從寶石到特定領域語言等強大的項目級功能和技術。

作為著名的Addison-Wesley專業Ruby系列的一部分,《Eloquent Ruby》將幫助你「戴上你的Ruby色眼鏡」,並獲得讓你成為真正信徒的結果。