Modular Programming with Python
Erik Westra
- 出版商: Packt Publishing
- 出版日期: 2016-05-26
- 售價: $1,810
- 貴賓價: 9.5 折 $1,720
- 語言: 英文
- 頁數: 246
- 裝訂: Paperback
- ISBN: 1785884484
- ISBN-13: 9781785884481
-
相關分類:
Python、程式語言、R 語言
海外代購書籍(需單獨結帳)
相關主題
商品描述
Key Features
- The book would help you develop succinct, expressive programs using modular deign
- The book would explain best practices and common idioms through carefully explained and structured examples
- It will have broad appeal as far as target audience is concerned and there would be take away for all beginners to Python
Book Description
Python has evolved over the years and has become the primary choice of developers in various fields. The purpose of this book is to help readers develop readable, reliable, and maintainable programs in Python.
Starting with an introduction to the concept of modules and packages, this book shows how you can use these building blocks to organize a complex program into logical parts and make sure those parts are working correctly together.
Using clearly written, real-world examples, this book demonstrates how you can use modular techniques to build better programs. A number of common modular programming patterns are covered, including divide-and-conquer, abstraction, encapsulation, wrappers and extensibility. You will also learn how to test your modules and packages, how to prepare your code for sharing with other people, and how to publish your modules and packages on GitHub and the Python Package Index so that other people can use them. Finally, you will learn how to use modular design techniques to be a more effective programmer.
What you will learn
- Learn how to use modules and packages to organize your Python code
- Understand how to use the import statement to load modules and packages into your program
- Use common module patterns such as abstraction and encapsulation to write better programs
- Discover how to create self-testing Python packages
- Create reusable modules that other programmers can use
- Learn how to use GitHub and the Python Package Index to share your code with other people
- Make use of modules and packages that others have written
- Use modular techniques to build robust systems that can handle complexity and changing requirements over time
About the Author
Erik Westra has been a professional software developer for over 25 years, and has worked almost exclusively in Python for the past decade. Erik's early interest in graphical user interface design led to the development of one of the most advanced urgent courier dispatch systems used by messenger and courier companies worldwide. In recent years, Erik has been involved in the design and implementation of systems matching seekers and providers of goods and services across a range of geographical areas, as well as real-time messaging and payments systems. This work has included the creation of real-time geocoders and map-based views of constantly changing data. Erik is based in New Zealand, and works for companies worldwide.
Erik is also the author of the Packt titles Python Geospatial Development, Python Geospatial Analysis, and Building Mapping Applications with QGIS.
Table of Contents
- Introducing Modular Programming
- Writing Your First Modular Program
- Using Modules and Packages
- Using Modules for Real-World Programming
- Working with Module Patterns
- Creating Reusable Modules
- Advanced Module Techniques
- Testing and Deploying Modules
- Modular Programming as a Foundation for Good Programming Technique
商品描述(中文翻譯)
主要特點
- 本書將幫助您使用模組化設計開發簡潔、表達豐富的程式
- 本書將通過精心解釋和結構化的示例來解釋最佳實踐和常見的習慣用法
- 無論目標讀者是初學者還是Python專家,本書都具有廣泛的吸引力
書籍描述
Python多年來不斷發展,已成為各個領域開發人員的首選。本書的目的是幫助讀者在Python中開發可讀性、可靠性和可維護性的程式。
從介紹模組和套件的概念開始,本書展示了如何使用這些基本組件將複雜的程式組織成邏輯部分,並確保這些部分正確地協同工作。
通過清晰寫實的示例,本書演示了如何使用模組化技術構建更好的程式。涵蓋了許多常見的模組化編程模式,包括分而治之、抽象、封裝、包裝器和可擴展性。您還將學習如何測試模組和套件,如何準備代碼與他人共享,以及如何在GitHub和Python Package Index上發布模組和套件,以便其他人可以使用它們。最後,您將學習如何使用模組化設計技術成為一名更有效的程式設計師。
你將學到什麼
- 學習如何使用模組和套件組織您的Python代碼
- 了解如何使用import語句將模組和套件加載到您的程式中
- 使用常見的模組化模式,如抽象和封裝,編寫更好的程式
- 發現如何創建自測的Python套件
- 創建其他程式設計師可以使用的可重用模組
- 學習如何使用GitHub和Python Package Index與他人共享代碼
- 使用其他人編寫的模組和套件
- 使用模組化技術構建能夠處理複雜性和不斷變化需求的強大系統
關於作者
Erik Westra是一位擁有超過25年專業軟體開發經驗的軟體開發人員,過去十年幾乎專注於Python。Erik早期對圖形使用者介面設計的興趣導致了他開發了一個全球信使和快遞公司使用的最先進的緊急快遞調度系統。近年來,Erik參與了在各個地理區域內匹配貨物和服務提供者的系統設計和實施,以及實時消息和支付系統。這項工作包括創建實時地理編碼器和基於地圖的不斷變化數據視圖。Erik目前居住在紐西蘭,為全球各地的公司工作。
Erik還是Packt出版社的《Python地理空間開發》、《Python地理空間分析》和《使用QGIS構建地圖應用程式》等書籍的作者。
目錄
- 介紹模組化編程
- 撰寫您的第一個模組化程式
- 使用模組和套件
- 使用模組進行實際程式設計
- 使用模組化模式
- 創建可重用模組
- 高級模組技術
- 測試和部署模組
- 模組化編程作為良好編程技巧的基礎