Serious Python: Black-Belt Advice on Deployment, Scalability, Testing, and More (深入 Python:部署、擴展性、測試及更多的專業建議)

Julien Danjou

  • 出版商: No Starch Press
  • 出版日期: 2018-12-27
  • 售價: $1,220
  • 貴賓價: 9.5$1,159
  • 語言: 英文
  • 頁數: 240
  • 裝訂: Paperback
  • ISBN: 1593278780
  • ISBN-13: 9781593278786
  • 相關分類: Python程式語言JVM 語言
  • 立即出貨 (庫存 < 3)

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

相關主題

商品描述

An indispensable collection of practical tips and real-world advice for tackling common Python problems and taking your code to the next level. Features interviews with high-profile Python developers who share their tips, tricks, best practices, and real-world advice gleaned from years of experience.

Sharpen your Python skills as you dive deep into the Python programming language with Serious Python. You'll cover a range of advanced topics like multithreading and memorization, get advice from experts on things like designing APIs and dealing with databases, and learn Python internals to help you gain a deeper understanding of the language itself. Written for developers and experienced programmers, Serious Python brings together over 15 years of Python experience to teach you how to avoid common mistakes, write code more efficiently, and build better programs in less time.

As you make your way through the book's extensive tutorials, you'll learn how to start a project and tackle topics like versioning, layouts, coding style, and automated checks. You'll learn how to package your software for distribution, optimize performance, use the right data structures, define functions efficiently, pick the right libraries, build future-proof programs, and optimize your programs down to the bytecode. You'll also learn how to:

- Make and use effective decorators and methods, including abstract, static, and class methods
- Employ Python for functional programming using generators, pure functions, and functional functions
- Extend flake8 to work with the abstract syntax tree (AST) to introduce more sophisticated automatic checks into your programs
- Apply dynamic performance analysis to identify bottlenecks in your code
- Work with relational databases and effectively manage and stream data with PostgreSQL

If you've been looking for a way to take your Python skills from good to great, Serious Python will help you get there. Learn from the experts and get seriously good at Python with Serious Python!

商品描述(中文翻譯)

《Serious Python》是一本不可或缺的實用技巧和現實世界建議的集合,幫助您解決常見的Python問題,並提升您的程式碼水平。書中還包含了與知名Python開發人員的訪談,他們分享了自己多年經驗中獲得的技巧、訣竅、最佳實踐和現實世界建議。

在《Serious Python》中,您將深入探索Python編程語言,提升您的Python技能。書中涵蓋了多線程和記憶化等一系列高級主題,並從專家那裡獲得關於設計API和處理數據庫等方面的建議,還將學習Python內部原理,幫助您更深入地理解語言本身。《Serious Python》針對開發人員和有經驗的程序員撰寫,匯集了超過15年的Python經驗,教您如何避免常見錯誤,更高效地編寫代碼,並在更短的時間內構建更好的程序。

在閱讀本書的詳盡教程時,您將學習如何啟動項目,並解決版本控制、佈局、編碼風格和自動檢查等問題。您還將學習如何將軟件打包進行分發,優化性能,使用正確的數據結構,高效定義函數,選擇合適的庫,構建面向未來的程序,並將程序優化到字節碼級別。您還將學習以下內容:

- 使用有效的裝飾器和方法,包括抽象、靜態和類方法
- 使用生成器、純函數和函數式函數在Python中進行函數式編程
- 擴展flake8以與抽象語法樹(AST)一起工作,將更複雜的自動檢查引入您的程序中
- 應用動態性能分析來識別代碼中的瓶頸
- 使用關聯數據庫,有效管理和流式傳輸數據,如PostgreSQL

如果您一直在尋找提升Python技能的方法,《Serious Python》將幫助您實現目標。向專家學習,通過《Serious Python》真正精通Python!

目錄大綱

Chapter 1: Starting Your Project
Chapter 2: Modules, Libraries, and Frameworks
Chapter 3: Documentation and Good API Practice
Chapter 4: Handling Timestamps and Time Zones
Chapter 5: Distributing Your Software
Chapter 6: Unit Testing
Chapter 7: Methods and Decorators
Chapter 8: Functional Programming
Chapter 9: The Abstract Syntax Tree, Hy, and Lisp-like Attributes
Chapter 10: Performances and Optimizations
Chapter 11: Scaling and Architecture
Chapter 12: Managing Relational Databases
Chapter 13: Write Less, Code More

目錄大綱(中文翻譯)

第1章:開始你的專案
第2章:模組、函式庫和框架
第3章:文件和良好的API實踐
第4章:處理時間戳和時區
第5章:軟體分發
第6章:單元測試
第7章:方法和裝飾器
第8章:函數式編程
第9章:抽象語法樹、Hy和類似Lisp的屬性
第10章:效能和優化
第11章:擴展和架構
第12章:管理關聯式資料庫
第13章:寫得更少,程式碼更多