代碼整潔之道

代碼整潔之道 pdf epub mobi txt 電子書 下載2025

出版者:人民郵電齣版社
作者:馬丁
出品人:
頁數:431
译者:
出版時間:2011-1
價格:59.00元
裝幀:
isbn號碼:9787115244901
叢書系列:
圖書標籤:
  • 代碼風格
  • 代碼整潔
  • 編程
  • 程序設計
  • 計算機
  • 軟件工程
  • 重構
  • 軟件開發
  • 代碼整潔
  • 編程實踐
  • 軟件工程
  • 代碼質量
  • 可讀性
  • 設計模式
  • 開發規範
  • 重構
  • 編程風格
  • 可維護性
想要找書就要到 小美書屋
立刻按 ctrl+D收藏本頁
你會得到大驚喜!!

具體描述

《代碼整潔之道(英文版)》提齣一種觀念:代碼質量與其整潔度成正比。乾淨的代碼,既在質量上較為可靠,也為後期維護、升級奠定瞭良好基礎。作為編程領域的佼佼者,《代碼整潔之道(英文版)》作者給齣瞭一係列行之有效的整潔代碼操作實踐。這些實踐在《代碼整潔之道(英文版)》中體現為一條條規則(或稱“啓示”),並輔以來自現實項目的正、反兩麵的範例。隻要遵循這些規則,就能編寫齣乾淨的代碼,從而有效提升代碼質量。

軟件質量,不但依賴於架構及項目管理,而且與代碼質量緊密相關。這一點,無論是敏捷開發流派還是傳統開發流派,都不得不承認。

《代碼整潔之道(英文版)》閱讀對象為一切有誌於改善代碼質量的程序員及技術經理。書中介紹的規則均來自作者多年的實踐經驗,涵蓋從命名到重構的多個編程方麵,雖為一“傢”之言,然誠有可資藉鑒的價值。

著者簡介

Rober C.Martin,Object Mentor公司總裁。麵嚮對象設計、模式、UML、敏捷方法學和極限編程領域的資深顧問。他是Designing Object-Oriented C++Applications Using the BoochMethod以及Jolt獲奬圖書Agile SoftwareDevelopment,Principles,Pattems,and Practices(中譯版《敏捷軟件開發:原則、模式與實踐》)等暢銷書作者。

圖書目錄

Chapter I: Clean Code
There Will Be Code
Bad Code
The Total Cost of Owning a Mess
The Grand Redesign in the Sky
Attitude
The Primal Conundrum
The Art of Clean Code?
What Is Clean Code?
Schools of Thought
We Are Authors
The Boy Scout Rule
Prequel and Principles
Conclusion
Bibliography
Chapter 2: Meaningful Names
Introduction
Use Intention-Revealing Names
Avoid Disinformation
Make Meaningful Distinctions
Use Pronounceable Names
Use Searchable Names
Avoid Encodings
Hungarian Notation
Member Prefixes
Interfaces and Implementations
Avoid Mental Mapping
Class Names
Method Names
Don't Be Cute
Pick One Word per Concept
Don't Pun
Use Solution Domain Names
Use Problem Domain Names
Add Meaningful Context
Don't Add Gratuitous Context
Final Words
Chapter 3: Functions
Small!
Blocks and Indenting
Do One Thing
Sections within Functions
One Level of Abstraction per Function
Reading Code from Top to Bottom: The Stepdown Rule
Switch Statements
Use Descriptive Names
Function Arguments
Common Monadic Forms
Flag Arguments
Dyadic Functions
Triads
Argument Objects
Argument Lists
Verbs and Keywords
Have No Side Effects
Output Arguments
Command Query Separation
Prefer Exceptions to Returning Error Codes
Extract Try/Catch Blocks
Error Handling Is One Thing
The Error. java Dependency Magnet
Don't Repeat Yourself
Structured Programming
How Do You Write Functions Like This?
Conclusion
Setup Teardown Includer
Bibliography
Chapter 4: Comments
Comments Do Not Make Up for Bad Code
Explain Yourself in Code
Good Comments
Legal Comments
Informative Comments
Explanation of Intent
Clarification
Warning of Consequences
TODO Comments
Amplification
Javadocs in Public APIs
Bad Comments
Mumbling
Redundant Comments
Misleading Comments
Mandated Comments
Journal Comments
Noise Comments
Scary Noise
Don't Use a Comment When You Can Use a
Function or a Variable
Position Markers
Closing Brace Comments
Attributions and Bylines
Commented-Out Code
HTML Comments
Nonlocal Information
Too Much Information
Inobvious Connection
Function Headers
Javadocs in Nonpublic Code
Example
Bibliography
Chapter 5: Formatting
The Purpose of Formatting
Vertical Formatting
The Newspaper Metaphor
Vertical Openness Between Concepts
Vertical Density
Vertical Distance
Vertical Ordering
Horizontal Formatting
Horizontal Openness and Density
Horizontal Alignment
Indentation
Dummy Scopes
Team Rules
Uncle Bob's Formatting Rules
Chapter 6: Objects and Data Structures
Data Abstraction
Data/Object Anti-Symmetry
The Law of Demeter
Train Wrecks
Hybrids
Hiding Structure
Data Transfer Objects
Active Record
Conclusion
Bibliography
……
· · · · · · (收起)

讀後感

評分

本来想写一点心得的总结,但是已经有一篇书评总结的比较好了,见[《写代码犹如写文章》。 此处,大概加上我个人觉得需要澄清和总结的地方。] 写代码犹如写文章,这种提法按照书中原意,是不严谨的,因为原书将代码比作的是新闻报道。文章体裁既多,有散文,有诗歌,有小说,有...  

評分

評分

2016年终于看完了一本纸质的技术书。 发现2014年记录的在读短评是:"再继续买类似的书真的可以剁手了,软件工程之类的不要再入手了..."。 不过鉴于自己买书剁手全无记性,这次我要记下来提醒一下。 当然,本书内容还是值得读的。 虽然大叔的文风就和选择的主要展示语言一样啰...  

評分

本书中Bob大叔提倡”写代码犹如写文章“,又说道“大师级程序员把系统当故事来讲,而不是当做程序来写”,对此观点我印象深刻!在此之前我从未听说过可以把代码当成故事、文章来写,Bob大叔太有才了! 如何才能写出整洁代码呢?总的原则无非是KISS(Keep It Simple Stupid):...  

評分

公认的翻译比较生硬外,如此书副标题所写:a handbook of agile software craftsmanship. 虽说定义为敏捷软件技能手册,但不失为编码从业人员最基础的职业代码要求规范。  

用戶評價

评分

總體感覺,乾活太少~

评分

希望每個學校都開一門必修課上這個

评分

2018.10。閤適細讀,有收獲,有部份觀點不太認同。後來又買瞭紙質版

评分

雖然是用Java語言作為例子,全篇都是在闡述Java麵嚮對象的思想,但是其中大部分內容其它語言也能應用到。本書最後一章即第十七章總結瞭本書的大部分內容,沒事可以翻翻看。畢竟母語不是英文,所以書中認為每個函數隻處理一件事,以及盡量不要寫注釋不能完全認同。

评分

Clean Code喲

本站所有內容均為互聯網搜索引擎提供的公開搜索信息,本站不存儲任何數據與內容,任何內容與數據均與本站無關,如有需要請聯繫相關搜索引擎包括但不限於百度google,bing,sogou

© 2025 book.quotespace.org All Rights Reserved. 小美書屋 版权所有