The Book of Ruby: A Hands-On Guide for the Adventurous (Paperback)

Huw Collingbourne

  • 出版商: No Starch Press
  • 出版日期: 2011-07-11
  • 定價: $1,320
  • 售價: 2.3$299
  • 語言: 英文
  • 頁數: 400
  • 裝訂: Paperback
  • ISBN: 1593272944
  • ISBN-13: 9781593272944
  • 相關分類: Ruby
  • 立即出貨(限量) (庫存=4)

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

商品描述

Ruby is famous for being easy to learn, but most users only scratch the surface of what it can do. While other books focus on Ruby's trendier features, The Book of Ruby reveals the secret inner workings of one of the world's most popular programming languages, teaching you to write clear, maintainable code.

You'll start with the basics—types, data structures, and control flows—and progress to advanced features like blocks, mixins, metaclasses, and beyond. Rather than bog you down with a lot of theory, The Book of Ruby takes a hands-on approach and focuses on making you productive from day one. As you follow along, you'll learn to:

  • Leverage Ruby's succinct and flexible syntax to maximize your productivity
  • Balance Ruby's functional, imperative, and object-oriented features
  • Write self-modifying programs using dynamic programming techniques
  • Create new fibers and threads to manage independent processes concurrently
  • Catch and recover from execution errors with robust exception handling
  • Develop powerful web applications with the Ruby on Rails framework

Each chapter includes a "Digging Deeper" section that shows you how Ruby works under the hood, so you'll never be caught off guard by its deceptively simple scoping, multithreading features, or precedence rules.

Whether you're new to programming or just new Ruby, The Book of Ruby is your guide to rapid, real-world software development with this unique and elegant language.

商品描述(中文翻譯)

《Ruby 程式設計之書》是一本揭示世界上最受歡迎的程式語言之一的秘密內部運作的書籍。Ruby 以易學聞名,但大多數使用者只是停留在表面。儘管其他書籍專注於 Ruby 的時髦功能,《Ruby 程式設計之書》則教導您撰寫清晰、易於維護的程式碼。

您將從基礎開始,包括類型、資料結構和控制流程,並進一步學習高級功能,如區塊、混入、元類等等。《Ruby 程式設計之書》不會讓您陷入理論的泥沼,而是採取實踐的方式,專注於讓您從第一天開始就能提高生產力。在跟隨書中的示例時,您將學會:

- 利用 Ruby 簡潔靈活的語法最大化生產力
- 平衡 Ruby 的函數式、命令式和物件導向特性
- 使用動態編程技巧撰寫自我修改的程式
- 創建新的纖程和執行緒以同時管理獨立的處理程序
- 通過強大的例外處理機制捕獲和恢復執行錯誤
- 使用 Ruby on Rails 框架開發強大的網絡應用程式

每個章節都包含一個「深入挖掘」的部分,向您展示 Ruby 在幕後的運作方式,這樣您就不會被它看似簡單的作用域、多線程功能或優先順序規則所困擾。

無論您是初學者還是初次接觸 Ruby, 《Ruby 程式設計之書》都是您快速進入真實世界軟體開發的指南,讓您體驗這個獨特而優雅的程式語言。