Python Programming with Design Patterns

Cooper, James

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

商品描述

Improve Your Python Code with Modern Object-Oriented Design Patterns

To write clean, efficient, maintainable code, developers everywhere turn to design patterns. Now there's a Python-specific patterns guide that's friendly and practical enough for every Python developer, regardless of experience.

Best-selling patterns author James W. Cooper presents visual, example-driven explanations of 23 proven patterns for writing superior object-oriented code. Through clear and intuitive code samples, he introduces modern techniques for creating Python objects that interact effectively in powerful, flexible programs. Python newcomers--including those moving from other languages--will find a succinct introduction designed to get them up to speed fast.

Cooper's wide-ranging patterns coverage addresses abstract classes, multiple inheritance, GUI programming and widgets, graphical classes, drawing and plotting, math, databases, Python decorators, images, threads, iterators, creating executable code, and more. Throughout, his informal visual presentation makes patterns far easier to work with--so you can confidently build sophisticated programs that use Python's rich capabilities.

  • Review the essentials of Python objects and visual programming
  • Learn what design patterns are, and how they help you write better code
  • Use creational patterns to enhance flexibility and avoid unnecessary complexity
  • Apply structural patterns to ensure that program elements work together well in large programs
  • Optimize communication between objects with behavioral patterns

 

商品描述(中文翻譯)

以現代物件導向設計模式改進你的 Python 程式碼

為了撰寫乾淨、高效且易於維護的程式碼,開發者們通常會使用設計模式。現在有一本針對 Python 的模式指南,對於每位 Python 開發者來說都非常友善且實用,無論他們的經驗如何。

暢銷模式作家 James W. Cooper 提供了 23 個經過驗證的模式的視覺化、以範例驅動的解釋,以幫助撰寫優秀的物件導向程式碼。透過清晰且直觀的程式碼範例,他介紹了創建 Python 物件的現代技巧,這些物件在強大且靈活的程式中能夠有效地互動。對於初學 Python 的人來說,包括那些從其他語言轉換過來的人,這本書提供了簡潔的介紹,旨在讓他們快速上手。

Cooper 的廣泛模式涵蓋了抽象類別、多重繼承、GUI 程式設計和小工具、圖形類別、繪圖和繪製、數學、資料庫、Python 裝飾器、圖片、執行緒、迭代器、創建可執行程式碼等等。在整本書中,他以非正式的視覺呈現方式使模式更容易理解,因此你可以自信地建立使用 Python 豐富功能的複雜程式。


  • 回顧 Python 物件和視覺化程式設計的基礎

  • 了解設計模式是什麼,以及它們如何幫助你撰寫更好的程式碼

  • 使用創建模式增強彈性並避免不必要的複雜性

  • 應用結構模式以確保程式元素在大型程式中能夠良好地協同工作

  • 使用行為模式優化物件之間的通訊

作者簡介

James W. Cooper holds a PhD in chemistry and worked in academia, for the scientific instrument industry, and for IBM for 25 years, primarily as a computer scientist at IBM's Thomas J. Watson Research Center. Now retired, he is the author of 20 books, including 3 on design patterns in various languages. His most recent books are Flameout: The Rise and Fall of IBM Instruments (2019) and Food Myths Debunked (2014).

James holds 11 patents and has written 60 columns for JavaPro Magazine. He has also written nearly 1,000 columns for the now vanished Examiner.com on foods and chemistry, and he currently writes his own blog: FoodScienceInstitute.com. Recently, he has written columns on Python for Medium.com and Substack.

He is also involved in local theater groups and is the treasurer for Troupers Light Opera, where he performs regularly.

作者簡介(中文翻譯)

James W. Cooper 擁有化學博士學位,曾在學術界、科學儀器行業和 IBM 工作了 25 年,主要在 IBM 的 Thomas J. Watson 研究中心擔任計算機科學家。現已退休,是 20 本書的作者,其中包括 3 本關於不同語言的設計模式的書籍。他最近的著作有《Flameout: The Rise and Fall of IBM Instruments》(2019年)和《Food Myths Debunked》(2014年)。

James 擁有 11 項專利,並為《JavaPro Magazine》撰寫了 60 篇專欄文章。他還曾為現已消失的 Examiner.com 寫了近 1,000 篇關於食物和化學的專欄文章,目前他在自己的博客 FoodScienceInstitute.com 上撰寫文章。最近,他還在 Medium.com 和 Substack 上撰寫了關於 Python 的專欄文章。

他還參與當地的劇團,並擔任 Troupers Light Opera 的財務主管,定期演出。