Polished Ruby Programming: Build better software with more intuitive, maintainable, scalable, and high-performance Ruby code
暫譯: 精緻的 Ruby 程式設計:以更直觀、可維護、可擴展及高效能的 Ruby 代碼構建更好的軟體

Evans, Jeremy

  • 出版商: Packt Publishing
  • 出版日期: 2021-07-16
  • 售價: $1,980
  • 貴賓價: 9.5$1,881
  • 語言: 英文
  • 頁數: 434
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1801072728
  • ISBN-13: 9781801072724
  • 相關分類: RubyJVM 語言
  • 立即出貨 (庫存=1)

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

商品描述

Become an accomplished Ruby programmer by understanding the design principles, best practices, and trade-offs involved in implementation approaches to keep your Ruby applications maintainable in the long term


Key Features:

  • Understand the design principles behind polished Ruby code and trade-offs between implementation approaches
  • Use metaprogramming and DSLs to reduce the amount of code needed without decreasing maintainability
  • Learn Ruby web application design principles and strategies for databases, security, and testing


Book Description:

Most successful Ruby applications become difficult to maintain over time as the codebase grows in size. Polished Ruby Programming provides you with recommendations and advice for designing Ruby programs that are easy to maintain in the long term.


This book takes you through implementation approaches for many common programming situations, the trade-offs inherent in each approach, and why you may choose to use different approaches in different situations. You'll start by learning fundamental Ruby programming principles, such as correctly using core classes, class and method design, variable usage, error handling, and code formatting. Moving on, you'll learn higher-level programming principles, such as library design, use of metaprogramming and domain-specific languages, and refactoring. Finally, you'll learn principles specific to web application development, such as how to choose a database and web framework, and how to use advanced security features.


By the end of this Ruby programming book, you'll have gained the skills you need to design robust, high-performance, scalable, and maintainable Ruby applications.


While most code examples and principles discussed in the book apply to all Ruby versions, some examples and principles are specific to Ruby 3.0, the latest release at the time of publication.


What You Will Learn:

  • Use Ruby's core classes and design custom classes effectively
  • Explore the principles behind variable usage and method argument choice
  • Implement advanced error handling approaches such as exponential backoff
  • Design extensible libraries and plugin systems in Ruby
  • Use metaprogramming and DSLs to avoid code redundancy
  • Implement different approaches to testing and understand their trade-offs
  • Discover design patterns, refactoring, and optimization with Ruby
  • Explore database design principles and advanced web app security


Who this book is for:

If you already know how to program in Ruby and want to learn more about the principles and best practices behind writing maintainable, scalable, optimized, and well-structured Ruby code, then this Ruby book is for you. Intermediate to advanced-level working knowledge of the Ruby programming language is expected to get the most out of this book.

商品描述(中文翻譯)

透過理解設計原則、最佳實踐及實作方法中的取捨,成為一名出色的 Ruby 程式設計師,以保持您的 Ruby 應用程式在長期內可維護

主要特點:


  • 理解精緻 Ruby 代碼背後的設計原則及實作方法之間的取捨

  • 使用元編程和領域特定語言(DSL)來減少所需的代碼量,同時不降低可維護性

  • 學習 Ruby 網頁應用程式的設計原則及數據庫、安全性和測試的策略

書籍描述:
隨著代碼庫的增長,大多數成功的 Ruby 應用程式隨著時間的推移變得難以維護。《精緻 Ruby 程式設計》為您提供了設計易於長期維護的 Ruby 程式的建議和指導。

本書將帶您了解許多常見編程情境的實作方法、每種方法固有的取捨,以及為什麼您可能會在不同情境中選擇使用不同的方法。您將首先學習基本的 Ruby 程式設計原則,例如正確使用核心類別、類別和方法設計、變數使用、錯誤處理和代碼格式化。接下來,您將學習更高層次的程式設計原則,例如庫設計、元編程和領域特定語言的使用,以及重構。最後,您將學習特定於網頁應用程式開發的原則,例如如何選擇數據庫和網頁框架,以及如何使用先進的安全功能。

在這本 Ruby 程式設計書的結尾,您將獲得設計穩健、高效能、可擴展且可維護的 Ruby 應用程式所需的技能。

雖然書中討論的大多數代碼範例和原則適用於所有 Ruby 版本,但某些範例和原則特定於 Ruby 3.0,即出版時的最新版本。

您將學到的內容:


  • 有效使用 Ruby 的核心類別並設計自定義類別

  • 探索變數使用和方法參數選擇背後的原則

  • 實作先進的錯誤處理方法,例如指數退避

  • 在 Ruby 中設計可擴展的庫和插件系統

  • 使用元編程和 DSL 來避免代碼冗餘

  • 實作不同的測試方法並理解其取捨

  • 發現設計模式、重構和優化的 Ruby 方法

  • 探索數據庫設計原則和先進的網頁應用程式安全性

本書適合誰:
如果您已經知道如何使用 Ruby 編程,並希望了解更多關於撰寫可維護、可擴展、優化和結構良好的 Ruby 代碼的原則和最佳實踐,那麼這本 Ruby 書籍適合您。期望讀者具備中級到高級的 Ruby 程式設計語言工作知識,以便充分利用本書。