Friday, Dec 9
Ships from: Amazon.com Sold by: Amazon.com
Other Sellers on Amazon
Follow the Author
Beyond the Basic Stuff with Python: Best Practices for Writing Clean Code
Enhance your purchase
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 and performance measurement, as well as object-oriented design and the 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.
- 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
From the Publisher
'A Small Goldmine of Knowledge'
"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."
'The Kind of Book Every Python Developer Can Use'
"This is the kind of book every python developer can use... I cannot recommend Beyond the Basic Stuff with Python enough for every person who wants to learn fundamentals surrounding coding and specifically coding in python."
—Ian Mizer, Atlanta Python Programmers Group
'A Great New Book'
"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 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
|Python for Kids by Jason Briggs||Python Crash Course 2nd edition by Eric Matthes||Automate the Boring Stuff 2nd edition by Al Sweigart||Real-World Python by Lee Vaughan||Beyond the Basic Stuff with Python by Al Sweigart||Serious Python by Julien Danjou|
|User experience level||Beginner||Beginner||Beginner||Beginner to Intermediate||Intermediate||Intermediate|
|For readers who want||A gentle, kid-friendly introduction to Python||A fast-paced, thorough introduction to Python||A practical guide to using Python for automating tedious tasks||A fun, project-based approach to useful Python tools and powerful programming techniques||Masterful tips to bridge the gap between beginning programmer and professional developer||Expert, practical advice and tutorials to perfect your professional Python skills|
|Compatible with Python version||Python 3||Python 3||Python 3||Python 3||Python 3||Python 2 & 3|
|Special features||Kid-friendly, full-color code and illustrations||Covers Django, matplotlib and plotly, and pygame||Covers working with files en masse, automating emails and texts, scraping the web, and more||Solve realistic problems by writing Python programs; explore computer vision, AI algorithms and more||Covers best practices of software development and how to use advanced tools, like code formatters and source control||Covers powerful techniques like using generators, handling time zones, and applying functional programming|
|Page count||344 pages||544 pages||592 pages||360 pages||384 pages||240 pages|
About the Author
Al Sweigart is a software developer and tech book author living in Seattle. Python is his favorite programming language, and he is the developer of several open source modules for it. His cat Zophie weighs 11 pounds.
About the Publisher
No Starch Press has published the finest in geek entertainment since 1994, creating both timely and timeless titles like Python Crash Course, Python for Kids, How Linux Works, and Hacking: The Art of Exploitation. An independent, San Francisco-based publishing company, No Starch Press focuses on a curated list of well-crafted books that make a difference. They publish on many topics, including computer programming, cybersecurity, operating systems, and LEGO. The titles have personality, the authors are passionate experts, and all the content goes through extensive editorial and technical reviews. Long known for its fun, fearless approach to technology, No Starch Press has earned wide support from STEM enthusiasts worldwide.
—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."
About the Author
- Publisher : No Starch Press (December 16, 2020)
- Language : English
- Paperback : 384 pages
- ISBN-10 : 1593279663
- ISBN-13 : 978-1593279660
- Item Weight : 1.6 pounds
- Dimensions : 7 x 0.94 x 9.25 inches
- Best Sellers Rank: #201,349 in Books (See Top 100 in Books)
- Customer Reviews:
About the author
Reviewed in the United States on February 14, 2021
Reviews with images
Top reviews from the United States
There was a problem filtering reviews right now. Please try again later.
The other benefit of this book is to learn how to write "clean", "pythonic" code. There are general conventions that professional software developers use that you will want to use from the beginning so you don't develop bad habits. If you've already done development, some of it may be a repeat for you and you'll simply skim past. If you're new to professional software development, you'll find this extremely helpful.
Keep in mind that the book does run through numerous applications of Python. It's a versatile language. You may have very specific needs and certain parts of the book may not pertain to you. Also, if you're just writing short scripts, this may not necessarily be for you (although you may want to pick up good habits if you think you might expand your use of Python later).
It offers a compilation of things you might learn the hard way after a few years of coming back to your code and wondering what "var1", "var2" and "tmp" were for... reading through print debugging statements, useless comments and duplicate code.
The practical benefit of good style is a major theme. It also includes a valuable survey of commonly misused syntax, gotchas, efficiency, and some "esoteric oddities", Python tricks and lessons I have not seen in any other books.
No Starch Press reliably puts out great books. The print quality, bold section headings, and immaculate editing made this a joy to read.
This book is just what I didn't know I wanted. Advice on how to automatically format code, how to dig into Github (where I have an account but am baffled), how to ask a good question on Stackexchange, how to name functions and variables clearly and consistently: these are all questions I have had without knowing how to articulate them.
Exceptionally well-written, clear, well-organized, and with a remarkable knack for separating wheat from chaff and understanding what a low-intermediate programmer like me will benefit from. It's superb.
Apparently before it was packaged some stick substance was spilled on the cover. It's kind of minor, but not getting a nice fresh and clean book is kind of annoying.