Ruby Best Practices (Paperback)
暫譯: Ruby 最佳實踐 (平裝本)

Gregory T Brown

  • 出版商: O'Reilly
  • 出版日期: 2009-07-21
  • 定價: $1,200
  • 售價: 8.8$1,056
  • 語言: 英文
  • 頁數: 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 最佳實踐》一起探索。