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

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

by: Al Sweigart (Author)

Publisher: No Starch Press

Publication Date: 2020/12/16

Language: English

Print Length: 384 pages

ISBN-10: 1593279663

ISBN-13: 9781593279660

Book Description

BRIDGE THE GAP BETWEEN NOVICE AND PROFESSIONALYou’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 lea 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 lea will boost your ability to program–not just in Python but in any language.You’ll lea: Coding style, and how to use Python’s Black auto-formatting tool for cleaner codeCommon sources of bugs, and how to detect them with static analyzersHow to structure the files in your code projects with the Cookiecutter template toolFunctional programming techniques like lambda and higher-order functionsHow to profile the speed of your code with Python’s built-in timeit and cProfile modulesThe computer science behind Big-O algorithm analysisHow to make your comments and docstrings informative, and how often to write themHow 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 lea to write readable code that’s easy to debug and perfectly PythonicRequirements: Covers Python 3.6 and higher

About the Author

BRIDGE THE GAP BETWEEN NOVICE AND PROFESSIONALYou’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 lea 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 lea will boost your ability to program–not just in Python but in any language.You’ll lea: Coding style, and how to use Python’s Black auto-formatting tool for cleaner codeCommon sources of bugs, and how to detect them with static analyzersHow to structure the files in your code projects with the Cookiecutter template toolFunctional programming techniques like lambda and higher-order functionsHow to profile the speed of your code with Python’s built-in timeit and cProfile modulesThe computer science behind Big-O algorithm analysisHow to make your comments and docstrings informative, and how often to write themHow 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 lea to write readable code that’s easy to debug and perfectly PythonicRequirements: Covers Python 3.6 and higher

资源下载资源下载价格10立即购买
未经允许不得转载:Wow! eBook » Beyond the Basic Stuff with Python: Best Practices for Writing Clean Code