Clean Ruby: A Guide to Crafting Better Code for Rubyists (Paperback)
暫譯: 乾淨的 Ruby:為 Ruby 開發者打造更好代碼的指南 (平裝本)

DiLeo, Carleton

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

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

相關主題

商品描述

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 程式碼時擁有獨特的視角。