Clean Ruby: A Guide to Crafting Better Code for Rubyists (Paperback)

DiLeo, Carleton

  • 出版商: Apress
  • 出版日期: 2019-11-30
  • 售價: $1,400
  • 貴賓價: 9.5$1,330
  • 語言: 英文
  • 頁數: 113
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1484255453
  • ISBN-13: 9781484255452
  • 相關分類: Ruby
  • 立即出貨 (庫存 < 3)

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

商品描述

Learn how to make better decisions and write cleaner Ruby code. This book shows you how to avoid messy code that is hard to test and which cripples productivity. Author Carleton DiLeo shares hard-learned lessons gained from years of experience across numerous codebases both large and small. Each chapter covers the topics you need to know to make better decisions and optimize your productivity. Many books will tell you how to do something; this book will tell you why you should do it. Start writing code you love.

What You Will Learn

  • Build better classes to help promote code reuse
  • Improve your decision making and make better, smarter choices
  • Identify bad code and fixed it
  • Create quality names for all of your variables, classes, and modules
  • Write better, concise classes
  • Improve the quality of your methods
  • Properly use modules
  • Clarify your Boolean logic
  • See when and how you refactor
  • Improve your understanding of TDD and write better tests

Who This Book Is For
This book is written for Ruby developers. There is no need to learn a new language or translate concepts to Ruby.

商品描述(中文翻譯)

學習如何做出更好的決策並撰寫更乾淨的 Ruby 程式碼。本書將向您展示如何避免難以測試且影響生產力的混亂程式碼。作者 Carleton DiLeo 分享了多年來在各種大小專案中所獲得的寶貴經驗和教訓。每個章節都涵蓋了您需要了解的主題,以幫助您做出更好的決策並提升生產力。許多書籍會告訴您如何做某件事,而本書將告訴您為什麼應該這麼做。開始寫出您喜愛的程式碼吧。

您將學到以下內容:

- 建立更好的類別以促進程式碼重複使用
- 改善您的決策能力,做出更好、更明智的選擇
- 辨識並修正糟糕的程式碼
- 為變數、類別和模組創建高品質的命名
- 撰寫更好、更簡潔的類別
- 提升方法的品質
- 正確使用模組
- 澄清您的布林邏輯
- 知道何時以及如何進行重構
- 提升對測試驅動開發 (TDD) 的理解,撰寫更好的測試

本書適合 Ruby 開發者閱讀,無需學習新的語言或將概念轉換為 Ruby。

作者簡介

Carleton DiLeo has been writing code ever since he built his first computer from parts in a dumpster. He has written code from high-traffic websites to back-end big data systems for video games. This wide base of knowledge provides Carleton with a unique perspective when writing Ruby code.

作者簡介(中文翻譯)

Carleton DiLeo自從他從垃圾箱中組裝了第一台電腦以來,就一直在寫程式。他曾經為高流量的網站和視頻遊戲的後端大數據系統編寫過程式碼。這種廣泛的知識基礎使得Carleton在編寫Ruby程式碼時擁有獨特的觀點。