Brett Slatkin

OK
Os clientes também compraram itens de
Você é um autor?
Atualizações do Autor
Livros de Brett Slatkin
It’s easy to start developing programs with Python, which is why the language is so popular. However, Python’s unique strengths, charms, and expressiveness can be hard to grasp, and there are hidden pitfalls that can easily trip you up.
This second edition of Effective Python will help you master a truly “Pythonic” approach to programming, harnessing Python’s full power to write exceptionally robust and well-performing code. Using the concise, scenario-driven style pioneered in Scott Meyers’ best-selling Effective C++, Brett Slatkin brings together 90 Python best practices, tips, and shortcuts, and explains them with realistic code examples so that you can embrace Python with confidence.
Drawing on years of experience building Python infrastructure at Google, Slatkin uncovers little-known quirks and idioms that powerfully impact code behavior and performance. You’ll understand the best way to accomplish key tasks so you can write code that’s easier to understand, maintain, and improve. In addition to even more advice, this new edition substantially revises all items from the first edition to reflect how best practices have evolved.
Key features include
- 30 new actionable guidelines for all major areas of Python
- Detailed explanations and examples of statements, expressions, and built-in types
- Best practices for writing functions that clarify intention, promote reuse, and avoid bugs
- Better techniques and idioms for using comprehensions and generator functions
- Coverage of how to accurately express behaviors with classes and interfaces
- Guidance on how to avoid pitfalls with metaclasses and dynamic attributes
- More efficient and clear approaches to concurrency and parallelism
- Solutions for optimizing and hardening to maximize performance and quality
- Techniques and built-in modules that aid in debugging and testing
- Tools and best practices for collaborative development
Python Eficaz ajudará o leitor a dominar o mais verdadeiro estilo "pythônico" da arte de programar, empregando todo o potencial do Python para escrever códigos robustos e de desempenho exemplar. Usando o estilo conciso e baseado em cenários, visto no best-seller C++ Eficaz, de Scott Meyers, o autor Brett Slatkin reúne 59 das melhores práticas e dicas em Python, e as explica com exemplos realistas de código.
Com anos de experiência ajudando a construir a infraestrutura do Google em Python, Slatkin revela trechos simples de código e peculiaridades da linguagem que causam profundo impacto no comportamento e desempenho do código. Serão mostradas as melhores maneiras de realizar tarefas cruciais e, dessa forma, escrever códigos fáceis de entender, manter e aprimorar.
O livro inclui
Instruções práticas para todas as principais áreas de desenvolvimento em Python 3.x e 2.x, com explicações detalhadas e exemplos
Melhores práticas para escrever funções claras, que incentivam sua reutilização e evitam erros
Explicação sobre como expressar comportamentos com precisão usando classes e objetos
Orientação para evitar armadilhas com metaclasses e atributos dinâmicos
Abordagem mais eficiente para implementar simultaneidade e paralelismo
Técnicas e expressões mais adequadas para uso dos módulos nativos do Python
Ferramentas e melhores práticas para o desenvolvimento colaborativo
Soluções para depuração, testes e otimização de forma a melhorar a qualidade e o desempenho
“Each item in Slatkin’s Effective Python teaches a self-contained lesson with its own source code. This makes the book random-access: Items are easy to browse and study in whatever order the reader needs. I will be recommending Effective Python to students as an admirably compact source of mainstream advice on a very broad range of topics for the intermediate Python programmer.”
—Brandon Rhodes, software engineer at Dropbox and chair of PyCon 2016-2017
It’s easy to start coding with Python, which is why the language is so popular. However, Python’s unique strengths, charms, and expressiveness can be hard to grasp, and there are hidden pitfalls that can easily trip you up.
Effective Python will help you master a truly “Pythonic” approach to programming, harnessing Python’s full power to write exceptionally robust and well-performing code. Using the concise, scenario-driven style pioneered in Scott Meyers’ best-selling Effective C++, Brett Slatkin brings together 59 Python best practices, tips, and shortcuts, and explains them with realistic code examples.
Drawing on years of experience building Python infrastructure at Google, Slatkin uncovers little-known quirks and idioms that powerfully impact code behavior and performance. You’ll learn the best way to accomplish key tasks, so you can write code that’s easier to understand, maintain, and improve.
Key features include
- Actionable guidelines for all major areas of Python 3.x and 2.x development, with detailed explanations and examples
- Best practices for writing functions that clarify intention, promote reuse, and avoid bugs
- Coverage of how to accurately express behaviors with classes and objects
- Guidance on how to avoid pitfalls with metaclasses and dynamic attributes
- More efficient approaches to concurrency and parallelism
- Better techniques and idioms for using Python’s built-in modules
- Tools and best practices for collaborative development
- Solutions for debugging, testing, and optimization in order to improve quality and performance
- Bewährte Verfahren, Tipps und Tricks für robusten, leistungsfähigen und wartungsfreundlichen Code
- Grundlegende Aufgaben besser und effektiver erledigen
- Lösungen für das Debuggen, Testen und Optimieren zur Verbesserung von Qualität und Performance
Der Einstieg in die Python-Programmierung ist einfach, daher ist die Sprache auch so beliebt. Pythons einzigartige Stärken und Ausdrucksmöglichkeiten sind allerdings nicht immer offensichtlich. Zudem gibt es diverse verborgene Fallstricke, über die man leicht stolpern kann.
Dieses Buch vermittelt insbesondere eine Python-typische Herangehensweise an die Programmierung. Brett Slatkin nutzt dabei die Vorzüge von Python zum Schreiben von außerordentlich stabilem und schnellem Code. Er stellt 90 bewährte Verfahren, Tipps und Tricks vor, die er anhand praxisnaher Codebeispiele erläutert. Er setzt dabei den kompakten, an Fallbeispielen orientierten Stil von Scott Meyers populärem Buch »Effektiv C++ programmieren« ein.
Auf Basis seiner jahrelangen Erfahrung mit der Python-Infrastruktur bei Google demonstriert Slatkin weniger bekannte Eigenarten und Sprachelemente, die großen Einfluss auf das Verhalten des Codes und die Performance haben. Sie erfahren, wie sich grundlegende Aufgaben am besten erledigen lassen, damit Sie leichter verständlichen, wartungsfreundlicheren und einfach zu verbessernden Code schreiben können.
Aus dem Inhalt:- Umsetzbare Richtlinien für alle wichtigen Bereiche der Entwicklung in Python 3 mit detaillierten Erklärungen und Beispielen
- Funktionen so definieren, dass Code leicht wiederverwendet und Fehler vermieden werden können
- Bessere Verfahren und Idiome für die Verwendung von Abstraktionen und Generatorfunktionen
- Systemverhalten mithilfe von Klassen und Interfaces präzise definieren
- Stolpersteine beim Programmieren mit Metaklassen und dynamischen Attributen umgehen
- Effizientere und klare Ansätze für Nebenläufigkeit und parallele Ausführung
- Tipps und Tricks zur Nutzung von Pythons Standardmodulen
- Tools und Best Practices für die Zusammenarbeit mit anderen Entwicklern
- Lösungen für das Debuggen, Testen und Optimieren zur Verbesserung von Qualität und Performance