Practices of the Python Pro introduces several concepts that software developers in almost any language can use to improve their work. This would be a great book to read after learning the fundamentals of the Python language.
Practices of the Python Pro is for anyone in the early stages of their programming journey. In fact, people outside the software industry altogether who use software to supplement their work can find value in this book. The concepts contained in these pages will help readers build software that’s more maintainable, which in turn makes their software easier to collaborate on.
In the sciences, reproducibility and provenance are important aspects of the research process. As more research comes to rely on software, code that people can understand, update, and improve is a major consideration. But college curricula are still catching up to this intersection of software with other disciplines. For those with limited experience in formal software development, this book provides a set of principles for producing shareable, reusable software.
If you’re seasoned in object-oriented programming and domain-driven design, you may find this book too introductory for your benefit. On the other hand, if you’re relatively new to Python, software, or software design, give this book a try. There’s something in here for you.
Practices of the Python Pro consists of 11 chapters in 4 parts. Parts 1 and 2 provide discussion along with short examples and an occasional exercise. Part 3 builds on what you’ve learned in earlier chapters and contains a variety of exercises. Part 4 provides strategies for learning more, along with recommendations about what to try after reading this book.
Part 1, “Why it all matters,” sets the stage for Python’s rise to fame and why software design is valuable.
Part 2, “Foundations of design,” covers the high-level concepts that underpin software design and development.
Part 3, “Nailing down large systems,” walks you through building a real application using the principles you’ve learned.
Part 4, “What’s next?” gives you some recommendations for how and what to learn next.
You can get the full source code for the book’s examples and exercises in the book’s repository on GitHub (https://github.com/daneah/practices-of-the-python-pro). Alternatively, you can visit the book’s homepage (www.manning.com/books/practices-of-the-python-pro) and click Source Code to download the code.
This book contains many examples of source code, both in numbered listings and in line with normal text. In both cases, source code is formatted in a fixed-width font like this to separate it from ordinary text.
In many cases, the original source code has been reformatted; we’ve added line breaks and reworked indentation to accommodate the available page space in the book. In rare cases, even this was not enough, and listings include line-continuation markers (å). Additionally, comments in the source code have often been removed from the listings when the code is described in the text. Code annotations accompany many of the listings, highlighting important concepts.
For each chapter, the code is organized into Python modules that are referenced in the text. In general, you’re expected to write your own version of the code and use the provided source only to check your work. In part 3, the projects in each chapter build on the code from previous chapters, but each chapter provides a full working copy of the source.
All code in this book is written in Python 3, and more specifically is intended to work with Python 3.7+. Most of the code could be made to work on earlier versions without much fuss, but consider installing a relatively new version of Python for use with this book.
Purchase of Practices of the Python Pro includes free access to a private web forum run by Manning Publications where you can make comments about the book, ask technical questions, and receive help from the author and from other users. To access the forum, go to https://livebook.manning.com/#!/book/practices-of-the-python-pro/discussion. You can also learn more about Manning’s forums and the rules of conduct at https://livebook.manning.com/#!/discussion.
Manning’s commitment to our readers is to provide a venue where a meaningful dialogue between individual readers and between readers and the author can take place. It is not a commitment to any specific amount of participation on the part of the author, whose contribution to the forum remains voluntary (and unpaid). We suggest you try asking the author some challenging questions lest his interest stray! The forum and the archives of previous discussions will be accessible from the publisher’s website as long as the book is in print.
13.59.173.242