Beyond the Basic Stuff with Python: Best Practices for Writing Clean Code
Author: Al Sweigart
Publisher finelybook 出版社: No Starch Press
Publication Date 出版日期: December 16, 2020
Language 语言: English
Print Length 页数: 384 pages
ISBN-10: 1593279663
ISBN-13: 9781593279660
Format: Paperback,替换成
Book Description
By finelybook
Bridge the Gap Between Novice and Professional
You’ve completed a basic Python programming tutorial or finished Al Sweigart’s bestseller, Automate the Boring Stuff with Python. What’s the next step toward becoming a capable, confident software developer?
Welcome to Beyond the Basic Stuff with Python. More than a mere collection of advanced syntax and masterful tips for writing clean code, you’ll learn how to advance your Python programming skills by using the command line and other professional tools like code formatters, type checkers, linters, and version control. Sweigart takes you through best practices for setting up your development environment, naming variables, and improving readability, then tackles documentation, organization, performance measurement, object-oriented design, and Big-O algorithm analysis commonly used in coding interviews. The skills you learn will boost your ability to program—not just in Python but in any language.
You’ll Learn:
- Coding style, and how to use Python’s Black auto-formatting tool for cleaner code.
- Common sources of bugs, and how to detect them with static analyzers.
- How to structure the files in your code projects with the Cookiecutter template tool.
- Functional programming techniques like lambda and higher-order functions.
- How to profile the speed of your code with Python’s built-in timeit and cProfile modules.
- The computer science behind Big-O algorithm analysis.
- How to make your comments and docstrings informative, and how often to write them.
- How to create classes in object-oriented programming, and why they’re used to organize code.
Toward the end of the book, you’ll read a detailed source-code breakdown of two classic command-line games, the Tower of Hanoi (a logic puzzle) and Four-in-a-Row (a two-player tile-dropping game), and a breakdown of how their code follows the book’s best practices. You’ll test your skills by implementing the program yourself.
Of course, no single book can make you a professional software developer. But Beyond the Basic Stuff with Python will get you further down that path and make you a better programmer, as you learn to write readable code that’s easy to debug and perfectly Pythonic.
Requirements:
Covers Python 3.6 and higher.
Review
“A great new book . . . Sweigart focuses on three major subjects: common difficulties in getting started (seeking help, setting up a work environment); best practices, tools, and techniques; and using object-oriented Python. The second section is the largest in the book . . . but each section can be read on its own. The book is all the more useful for collecting together between one pair of covers material that you would typically dig up from multiple resources.”
—Serdar Yegulalp, InfoWorld
“My early Python programs work but could be improved massively with what Al writes about . . . a small goldmine of knowledge that beginners, intermediates, and probably even advanced programmers will benefit from.”
—GeekTechStuff
About the Author
Al Sweigart is a professional software developer who teaches programming to kids and adults. Sweigart has written several bestselling programming books for beginners, including Automate the Boring Stuff with Python, Invent Your Own Computer Games with Python, Coding with Minecraft, and Cracking Codes with Python (all from No Starch Press).
相关文件下载地址
相关推荐
- Practical Business Statistics, 8th Edition
- Mastering Unity Game Development with C#: Harness the full potential of Unity 2022 game development using C#
- Ethical Password Cracking: Decode passwords using John the Ripper, hashcat, and advanced methods for password breaking
- Computational Intelligence for Autonomous Finance: Challenges and Future Directions
- Building AI Applications with Microsoft Semantic Kernel: Easily integrate generative AI capabilities and copilot experiences into your applications
- Autodesk Civil 3D 2025 Unleashed: Elevate your civil engineering designs and advance your career with Autodesk Civil 3D