下载  >  开发技术  >  Python  > how to make mistakes in python

how to make mistakes in python 评分

How to make mistakes in Python
OREILLY S Additional Resources 4 Easy Ways to Learn More and Stay current Programming Newsletter Get programming related news and content delivered weekly to your inbox oreilly. com/programming/newsletter Free Webcast series Learn about popular programming topics from experts live, online webcasts. oreilly. com O'Reilly Radar Read more insight and analysis about emerging technologies radar.oreilly.com Conferences Immerse yourself in learning at an upcoming O Reilly conference conferences. oreilly. com @2015 O'Reilly Media, Inc. The O'Reilly logo is a registered trademark of O'Reilly Media, InC. #15305 How to Make mistakes in Python Mike pirnat Beijing. Boston.Farnham Sebastopol. Tokyo OREILLY How to Make Mistakes in Python by Mike Pirnat Copyright O 2015 O'Reilly Media, Inc. All rights reserved Printed in the United States of America Published by oreilly Media, Inc, 1005 Gravenstein Highway North, Sebastopol,CA 95472 OReilly books may be purchased for educational, business, or sales promotional use Onlineeditionsarealsoavailableformosttitles(http://safaribooksonline.com).For more information, contact our corporate/institutional sales department: 800-998-9938orcorporate@oreilly.com Editor: Meghan blanchette Interior Designer: David Futato Production editor: Kristen brown Cover Designer: Karen Montgomery Copyeditor: Sonia Aruba Illustrator rebecca demarest October 2015 First edition Revision history for the first Edition 2015-09-25: First Release The O reilly logo is a registered trademark of o reilly media, Inc. How to Make mis takes in Python, the cover image, and related trade dress are trademarks of o reilly Media Inc While the publisher and the author have used good faith efforts to ensure that the information and instructions contained in this work are accurate, the publisher and the author disclaim all responsibility for errors or omissions, including without limi tation responsibility for damages resulting from the use of or reliance on this work Use of the information and instructions contained in this work is at your own risk any code samples or other technology this work contains or describes is subject to open source licenses or the intellectual property rights of others, it is your responsi bility to ensure that your use thereof complies with such licenses and/or rights 978-1-491-93447-0 ILSI] To my daughter, Claire, who enables me to see the world anew, and to my wife, Elizabeth, partner in the adventure of life Table of contents Introduction Setup. 鲁·春鲁 Polluting the System Python Using the Default rEPL 4 2. Silly thil Forgetting to return a value 7 Misspellings Mixing Up Def and Class 10 3. Style 13 Hungarian notation 13 PEP-8 Violations 15 Bad Naming 17 Inscrutable lambdas 19 Incomprehensible comprehensions 20 4. Structure Pathological If/Elif Blocks 23 nnecessary Getters and Setters 25 Getting Wrapped Up in Decorators 27 Breaking the Law of 29 Overusing Private Attributes God Objects and God Methods 33 X Global State 5. Surprises......... 41 Importing Everything 41 Overbroadly Silencing Exceptions 43 Reinventing the Wheel 46 Mutable Keyword Argument Defaults 48 Overeager Code 50 Poisoning persistent state 56 Assuming Logging Is Unnecessary 59 Assuming Tests are unnecessary 6. Further resources.............. 65 Philosophy 65 Tools 66 x Table of Contents

...展开详情
所需积分/C币:10 上传时间:2016-12-11 资源大小:1.8MB
举报 举报 收藏 收藏
分享 分享
How-to-Make-Mistakes-in-Python.pdf.pdf

How-to-Make-Mistakes-in-Python.pdf

立即下载
how to make mistakes in python

How to make mistakes in Python

立即下载
How to make mistakes in python

How to make mistakes in python

立即下载
How.to.Use.Objects.Code.and.Concepts.0321995546

While most developers today use object-oriented languages, the full power of objects is available only to those with a deep understanding of the object paradigm. How to Use Objects will help you gain that understanding, so you can write code that works exceptionally well in the real world. Author H

立即下载
How Linux and the Free Software Movement Undercut the High-Tech Titans

This is just a book about the free software movement. It wouldn’t be possible without the hard work and the dedication of the thousands if not millions of people who like to spend their free time hacking code. I salute you. Thank you. Many people spoke to me during the process of assembling this boo

立即下载
英文原版-The Art of Scrum How Scrum Masters Bind Dev Teams and Unleash Agility 1st Edition

This book covers the nuts and bolts of scrum—its framework, roles, team structures, ceremonies, and artifacts—from the scrum master’s perspective.The Art of Scrum details the scum master’s responsibilities and core functions in planning and facilitating the ceremonies and artifacts of a scrum team:

立即下载
The.Art.of.Scrum.How.Scrum.Masters.Bind.Dev.Teams.and.Unleash.Agility.

This book covers the nuts and bolts of scrum―its framework, roles, team structures, ceremonies, and artifacts―from the scrum master’s perspective. The Art of Scrum details the scum master’s responsibilities and core functions in planning and facilitating the ceremonies and artifacts of a scrum team

立即下载
Stephen M. Kosslyn Clear and to the Point

True or False? Most PowerPoint presentations are: BLcompelling BLilluminating BLinformative BLclear and to the point Answer: False Make a change following the principles of Stephen Kosslyn: BLa world authority on the visual brain BLa clear and engaging writer Making PowerPoint presentations that are

立即下载
Programmers.Guide.to.Drupal.Principles.Practices.and.Pitfalls.2nd.pdf

If you’re a web programmer new to Drupal, this book shows you which programming techniques you can use—and which you should avoid—when building custom web applications with this content management framework. Drupal has its own set of programming principles that require a different approach, and many

立即下载
Single Page Web Applications JavaScript end-to-end

In Single Page Web Applications you’ll learn to build modern browser-based apps that take advantage of stronger client platforms and more predictable bandwidth. You’ll learn the SPA design approach, and then start exploring new techniques like structured JavaScript and responsive design. And you’ll

立即下载
Python.Crash.Course.A.Hands-On.Project-Based.Introduction.to.Programming

Python Crash Course is a fast-paced, thorough introduction to programming with Python that will have you writing programs, solving problems, and making things that work in no time. In the first half of the book, you'll learn about basic programming concepts, such as lists, dictionaries, classes, an

立即下载
Building.Intelligent.Systems.A.Guide.to.Machine.Learning.Engineering.

Produce a fully functioning Intelligent System that leverages machine learning and data from user interactions to improve over time and achieve success. This book teaches you how to build an Intelligent System from end to end and leverage machine learning in practice. You will understand how to app

立即下载
The.Way.To.Go 文字版.pdf

Contents Preface................................................................................................................................. xix PART 1—WHY LEARN GO—GETTING STARTED Chapter 1—Origins, Context and Popularity of Go...............................................................1 1.

立即下载
[Go语言入门(含源码)] The Way to Go (with source code)

The Way to Go,: A Thorough Introduction to the Go Programming Language 英文书籍,已Cross the wall,从Google获得书中源代码,分享一下。喜欢请购买正版。 目录如下: Contents Preface................................................................................................................................. xix PART 1—WHY LEARN G

立即下载
DevOps on the Microsoft Stack(Apress,2016)

This book tells you everything you need to know to help your organization implement DevOps on the Microsoft platform. You will learn how to use Visual Studio, Visual Studio Team Services, and Azure to implement a complete DevOps process in your company. You will learn about Agile Project Management,

立即下载
BeagleBone Essentials(PACKT,2015)

The BeagleBone Black is an embedded system that is able to run complete GNU/Linux distributions such as Debian or Ubuntu. Having powerful distribution capabilities, and packed with an easily expandable embedded board, the BeagleBone Black is a device that will allow users to build powerful and versa

立即下载
《Better PHP Development》- 2017 英文原版

Better PHP Development Published June 2017 Tools and techniques to make you a better developer PHP powers the vast majority of the web today. It is by far the most ubiquitous and accessible mature web language, and welcomes thousands of new developers every day. It is this ease of access that can

立即下载
Hacking Android(PACKT,2016)

With the mass explosion of Android mobile phones in the world, mobile devices have become an integral part of our everyday lives. Security of Android devices is a broad subject that should be part of our everyday lives to defend against ever-growing smartphone attacks. Everyone, starting with end us

立即下载
DevOps.on.the.Microsoft.Stack.1484214471

This book tells you everything you need to know to help your organization implement DevOps on the Microsoft platform. You will learn how to use Visual Studio, Visual Studio Team Services, and Azure to implement a complete DevOps process in your company. You will learn about Agile Project Management,

立即下载
ModbusTCP/RTU网关设计

基于UIP协议栈,实现MODBUS联网,可参考本文档资料,有MODBUS协议介绍

立即下载