Beyond the Basic Stuff with Python Best Practices for Writing Clean Code

by
Format: Paperback
Pub. Date: 2020-12-16
Publisher(s): No Starch Press
  • Free Shipping Icon

    This Item Qualifies for Free Shipping!*

    *Excludes marketplace orders.

List Price: $41.99

Buy New

Arriving Soon. Will ship when available.
$39.99

Rent Book

Select for Price
There was a problem. Please try again later.

Used Book

We're Sorry
Sold Out

eBook

We're Sorry
Not Available

How Marketplace Works:

  • This item is offered by an independent seller and not shipped from our warehouse
  • Item details like edition and cover design may differ from our description; see seller's comments before ordering.
  • Sellers much confirm and ship within two business days; otherwise, the order will be cancelled and refunded.
  • Marketplace purchases cannot be returned to eCampus.com. Contact the seller directly for inquiries; if no response within two days, contact customer service.
  • Additional shipping costs apply to Marketplace purchases. Review shipping costs at checkout.

Summary

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 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.

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

Author Biography

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).

Table of Contents

Introduction

Part I: Getting Started

1.     Dealing with Errors and Asking for Help
2.     Environmental Setup
3.     Formatting with the Black Module
 
Part II: Best Practices, Tools, and Techniques
4.     Choosing Useful Names
5.     Finding Code Smells
6.     Writing Pythonic Code
7.     Programming Jargon
8.     Common Python Gotchas
9.     Esoteric Python Oddities
10.   Crafting Effective Functions
11.   Comments and Type Hints
12.   Version Control with Git
13.   Profiling Code
 
Part III: Practice Problems
14.   Tower of Hanoi
15.   Connect Four
 
Part IV: Readable Object-Oriented Programming
16.   Classes and Objects
17.   Inheritance
18.   Pythonic Object-Oriented Programming
 
Index

An electronic version of this book is available through VitalSource.

This book is viewable on PC, Mac, iPhone, iPad, iPod Touch, and most smartphones.

By purchasing, you will be able to view this book online, as well as download it, for the chosen number of days.

Digital License

You are licensing a digital product for a set duration. Durations are set forth in the product description, with "Lifetime" typically meaning five (5) years of online access and permanent download to a supported device. All licenses are non-transferable.

More details can be found here.

A downloadable version of this book is available through the eCampus Reader or compatible Adobe readers.

Applications are available on iOS, Android, PC, Mac, and Windows Mobile platforms.

Please view the compatibility matrix prior to purchase.