Clean Code: A Handbook of Agile Software Craftsmanship (Paperback)
暫譯: 乾淨的程式碼:敏捷軟體工藝手冊 (平裝本)

Robert C. Martin

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

相關主題

商品描述

Description

Even bad code can function. But if code isn’t clean, it can bring a development organization to its knees. Every year, countless hours and significant resources are lost because of poorly written code. But it doesn’t have to be that way.

Noted software expert Robert C. Martin presents a revolutionary paradigm with Clean Code: A Handbook of Agile Software Craftsmanship. Martin has teamed up with his colleagues from Object Mentor to distill their best agile practice of cleaning code “on the fly” into a book that will instill within you the values of a software craftsman and make you a better programmer—but only if you work at it.

What kind of work will you be doing? You’ll be reading code—lots of code. And you will be challenged to think about what’s right about that code, and what’s wrong with it. More importantly, you will be challenged to reassess your professional values and your commitment to your craft.

Clean Code is divided into three parts. The first describes the principles, patterns, and practices of writing clean code. The second part consists of several case studies of increasing complexity. Each case study is an exercise in cleaning up code—of transforming a code base that has some problems into one that is sound and efficient. The third part is the payoff: a single chapter containing a list of heuristics and “smells” gathered while creating the case studies. The result is a knowledge base that describes the way we think when we write, read, and clean code.

Readers will come away from this book understanding
  • How to tell the difference between good and bad code
  • How to write good code and how to transform bad code into good code
  • How to create good names, good functions, good objects, and good classes
  • How to format code for maximum readability
  • How to implement complete error handling without obscuring code logic
  • How to unit test and practice test-driven development
This book is a must for any developer, software engineer, project manager, team lead, or systems analyst with an interest in producing better code.
 

商品描述(中文翻譯)

書籍描述


即使是糟糕的程式碼也能運作。但如果程式碼不夠乾淨,可能會使一個開發組織陷入困境。每年,因為寫得不好的程式碼而浪費的時間和資源是無數的。但事情不必如此。



著名的軟體專家 Robert C. Martin 提出了革命性的範式,書名為 Clean Code: A Handbook of Agile Software Craftsmanship。Martin 與他的 Object Mentor 同事合作,將他們最佳的敏捷實踐——即「即時清理程式碼」的技巧,提煉成一本書,讓你內心植入軟體工匠的價值觀,並使你成為更好的程式設計師——但前提是你必須努力。



你將進行什麼樣的工作?你將閱讀程式碼——大量的程式碼。你將被挑戰去思考這些程式碼的正確之處和錯誤之處。更重要的是,你將被挑戰重新評估你的專業價值觀和對你工藝的承諾。



Clean Code 分為三個部分。第一部分描述了撰寫乾淨程式碼的原則、模式和實踐。第二部分包含幾個逐漸增加複雜度的案例研究。每個案例研究都是清理程式碼的練習——將有問題的程式碼基礎轉變為健全且高效的程式碼。第三部分是回報:一章包含在創建案例研究過程中收集的啟發式和「氣味」的清單。結果是一個知識庫,描述了我們在撰寫、閱讀和清理程式碼時的思考方式。



讀者將從這本書中獲得以下理解:



  • 如何區分好的程式碼和壞的程式碼

  • 如何撰寫好的程式碼以及如何將壞的程式碼轉變為好的程式碼

  • 如何創建好的名稱、好的函數、好的物件和好的類別

  • 如何格式化程式碼以達到最佳可讀性

  • 如何實現完整的錯誤處理而不模糊程式碼邏輯

  • 如何進行單元測試並實踐測試驅動開發



這本書是任何開發人員、軟體工程師、專案經理、團隊領導或系統分析師必讀的書籍,特別是對於有興趣產出更好程式碼的人。