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

0
(0)

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

  • Author:Al Sweigart
  • Length: 384 pages
  • Edition: 1
  • Publisher: No Starch Press
  • Publication Date: 2020-12-15
  • ISBN-10: 1593279663
  • ISBN-13: 9781593279660
  • Sales Rank: #108730 (See Top 100 Books)
  • Download:Register/Login to Download
  • Buy Print:Buy from amazon


    Book Description

    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

    中文:

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

    在新手和专业人士之间架起一座桥梁

    你已经完成了基本的Python编程教程,或者读完了Al Sweigart的畅销书《。使用Python自动处理枯燥的事情。要成为一名有能力、自信的软件开发人员,下一步是什么?

    欢迎来到除了使用Python的基本功能之外。不仅仅是编写干净代码的高级语法和高超技巧的集合,您还将学习如何通过使用命令行和其他专业工具(如代码格式化程序、类型检查器、链接器和版本控制)来提高您的Python编程技能。Sweigart将向您介绍有关设置开发环境、命名变量和提高可读性的最佳实践,然后介绍文档、组织和性能测量,以及面向对象的设计和编码访谈中常用的Big-O算法分析。你学到的技能将提高你的编程能力,不仅是用Python编程,而且是用任何语言编程。

    You’ll learn:

    • 编码风格,以及如何使用Python的黑色自动格式化工具来更干净地编写代码
    • 常见的错误来源,以及如何使用静态分析器检测它们
    • 如何使用Cookiecuter模板工具来组织代码项目中的文件
    • 函数式编程技术,如lambda和高阶函数
    • 如何使用Python的内置功能来分析代码的速度 timeitCProfile三个模块
    • 大O算法分析背后的计算机科学
    • 如何使您的注释和文档字符串具有信息性,以及编写它们的频率
    • 如何在面向对象编程中创建类,以及为什么用它们来组织代码

    在这本书的最后,你将阅读两款经典命令行游戏–河内塔(一种逻辑谜题)和四人一排(一种双人扔瓷砖游戏)的详细源代码细分,以及它们的代码如何遵循本书的最佳实践的细分。你将通过亲自实施该计划来测试你的技能。

    当然,没有哪本书能让你成为一名专业的软件开发人员。但除了使用Python的基本功能之外这将使您在这条道路上走得更远,并使您成为一名更好的程序员,因为您将学习编写易于调试和完美的Pythonic的可读代码

    所需经费:涵盖了Python3.6和更高版本

  • 下载电子版:下载地址
  • 购买纸质版:亚马逊商城

    点击星号评分!

    平均分 0 / 5. 投票数: 0

    还没有投票!请为他投一票。

  • 推荐阅读

    评论 抢沙发

    评论前必须登录!

     

    登录

    找回密码

    注册