The Pragmatic Programmer: your journey to mastery, 2/e (20th Anniversary Edition) (Hardcover)

David Thomas, Andrew Hunt



"One of the most significant books in my life." --Obie Fernandez, Author, The Rails Way

"Twenty years ago, the first edition of The Pragmatic Programmer completely changed the trajectory of my career. This new edition could do the same for yours." --Mike Cohn, Author of Succeeding with Agile, Agile Estimating and Planning, and User Stories Applied

". . . filled with practical advice, both technical and professional, that will serve you and your projects well for years to come." --Andrea Goulet, CEO, Corgibytes, Founder, LegacyCode.Rocks

". . . lightning does strike twice, and this book is proof." --VM (Vicky) Brasseur, Director of Open Source Strategy, Juniper Networks
The Pragmatic Programmer is one of those rare tech books you'll read, re-read, and read again over the years. Whether you're new to the field or an experienced practitioner, you'll come away with fresh insights each and every time.

Dave Thomas and Andy Hunt wrote the first edition of this influential book in 1999 to help their clients create better software and rediscover the joy of coding. These lessons have helped a generation of programmers examine the very essence of software development, independent of any particular language, framework, or methodology, and the Pragmatic philosophy has spawned hundreds of books, screencasts, and audio books, as well as thousands of careers and success stories.

Now, twenty years later, this new edition re-examines what it means to be a modern programmer. Topics range from personal responsibility and career development to architectural techniques for keeping your code flexible and easy to adapt and reuse. Read this book, and you'll learn how to:

  • Fight software rot
  • Learn continuously
  • Avoid the trap of duplicating knowledge
  • Write flexible, dynamic, and adaptable code
  • Harness the power of basic tools
  • Avoid programming by coincidence
  • Learn real requirements
  • Solve the underlying problems of concurrent code
  • Guard against security vulnerabilities
  • Build teams of Pragmatic Programmers
  • Take responsibility for your work and career
  • Test ruthlessly and effectively, including property-based testing
  • Implement the Pragmatic Starter Kit
  • Delight your users

Written as a series of self-contained sections and filled with classic and fresh anecdotes, thoughtful examples, and interesting analogies, The Pragmatic Programmer illustrates the best approaches and major pitfalls of many different aspects of software development. Whether you're a new coder, an experienced programmer, or a manager responsible for software projects, use these lessons daily, and you'll quickly see improvements in personal productivity, accuracy, and job satisfaction. You'll learn skills and develop habits and attitudes that form the foundation for long-term success in your career.

You'll become a Pragmatic Programmer.

Register your book for convenient access to downloads, updates, and/or corrections as they become available. See inside book for details.


「這是我生命中最重要的書之一。」──Obie Fernandez,《The Rails Way》作者

「二十年前,《The Pragmatic Programmer》的第一版完全改變了我的職業生涯軌跡。這本新版可能會對你的職業生涯產生同樣的影響。」──Mike Cohn,《Succeeding with Agile》、《Agile Estimating and Planning》和《User Stories Applied》作者

「......充滿了實用的建議,無論是技術上還是專業上,這些建議將在未來多年中為您和您的項目提供良好的服務。」──Andrea Goulet,Corgibytes CEO,LegacyCode.Rocks創始人

「......閃電確實會打兩次,這本書就是證明。」──VM(Vicky)Brasseur,Juniper Networks開源策略總監

《The Pragmatic Programmer》是那種你會一遍又一遍讀的稀有技術書籍。無論你是新手還是經驗豐富的從業者,每次閱讀都能帶給你新的見解。

Dave Thomas和Andy Hunt於1999年撰寫了這本具有影響力的書籍的第一版,旨在幫助他們的客戶創建更好的軟件並重新發現編碼的樂趣。這些教訓幫助了一代程序員研究軟件開發的本質,獨立於任何特定的語言、框架或方法論,而Pragmatic的理念創造了數百本書籍、屏幕錄像和音頻書籍,以及成千上萬的職業和成功故事。


- 對抗軟件腐敗
- 持續學習
- 避免重複知識的陷阱
- 編寫靈活、動態和適應性強的代碼
- 利用基本工具的力量
- 避免偶然編程
- 瞭解真正的需求
- 解決並發代碼的潛在問題
- 防範安全漏洞
- 建立Pragmatic程序員團隊
- 對自己的工作和職業負責
- 進行徹底有效的測試,包括基於屬性的測試
- 實施Pragmatic入門套件
- 讓用戶滿意





Dave Thomas and Andy Hunt are internationally recognized as leading voices in the software development community. They consult and speak around the world. Together, they founded the Pragmatic Bookshelf, publishing award-winning, leading-edge books for software developers. They were two of the authors of the Agile Manifesto.

Dave currently teaches college, turns wood, and plays with new technology and paradigms. Andy writes science fiction, is an active musician, and loves to tinker with technology. But, most of all, they're both driven to keep learning.


Dave Thomas和Andy Hunt被國際軟體開發社群公認為領先的聲音。他們在世界各地提供諮詢和演講。他們共同創立了Pragmatic Bookshelf,出版獲獎的領先軟體開發書籍。他們是敏捷宣言的兩位作者之一。