Ruby Best Practices (Paperback) (Ruby 最佳實踐)

Gregory T Brown

  • 出版商: O'Reilly
  • 出版日期: 2009-07-21
  • 定價: $1,200
  • 售價: 9.5$1,140
  • 貴賓價: 9.0$1,080
  • 語言: 英文
  • 頁數: 328
  • 裝訂: Paperback
  • ISBN: 0596523009
  • ISBN-13: 9780596523008
  • 相關分類: Ruby
  • 立即出貨 (庫存 < 3)

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

相關主題

商品描述

How do you write truly elegant code with Ruby? Ruby Best Practices is for programmers who want to use Ruby as experienced Rubyists do. Written by the developer of the Ruby project Prawn, this concise book explains how to design beautiful APIs and domain-specific languages with Ruby, as well as how to work with functional programming ideas and techniques that can simplify your code and make you more productive. You'll learn how to write code that's readable, expressive, and much more.

Ruby Best Practices will help you:

  • Understand the secret powers unlocked by Ruby's code blocks
  • Learn how to bend Ruby code without breaking it, such as mixing in modules on the fly
  • Discover the ins and outs of testing and debugging, and how to design for testability
  • Learn to write faster code by keeping things simple
  • Develop strategies for text processing and file management, including regular expressions
  • Understand how and why things can go wrong
  • Reduce cultural barriers by leveraging Ruby's multilingual capabilities

This book also offers you comprehensive chapters on driving code through tests, designing APIs, and project maintenance. Learn how to make the most of this rich, beautiful language with Ruby Best Practices.

商品描述(中文翻譯)

如何用Ruby寫出真正優雅的程式碼?《Ruby最佳實踐》是為那些想要像經驗豐富的Ruby開發者一樣使用Ruby的程式設計師而寫的。這本簡潔的書由Ruby專案Prawn的開發者撰寫,解釋了如何使用Ruby設計美觀的API和特定領域語言,以及如何使用能簡化程式碼並提高生產力的函數式編程思想和技巧。你將學習如何撰寫可讀性強、表達力強的程式碼,以及更多其他技巧。

《Ruby最佳實踐》將幫助你:
- 理解Ruby的程式碼塊所解鎖的秘密力量
- 學習如何在不破壞程式碼的情況下彎曲Ruby程式碼,例如即時混入模組
- 探索測試和除錯的方方面面,以及如何設計可測試性
- 通過保持簡單來撰寫更快的程式碼
- 開發文本處理和文件管理的策略,包括正則表達式
- 理解事情為什麼會出錯以及如何解決
- 利用Ruby的多語言能力來減少文化障礙

本書還提供了關於通過測試驅動程式碼、設計API和項目維護的全面章節。通過《Ruby最佳實踐》,學會如何充分利用這個豐富而美麗的語言。