Mark summerfield python in practice

Python in Practice: Create Better Programs Using Concurrency, Libraries, and Patterns

Winner of the 2014 Jolt Award for «Best Book» «Whether you are an experienced programmer or are starting your career, Python in Practice is full of valuable advice and example to help you improve your craft by thinking about problems from different perspectives, introducing tools, and detailing techniques to create more effective solutions.»Doug Hellmann, Senior Developer, DreamHost If you’re an experienced Python programmer, Python in Practice will help you improve the quality, reliability, speed, maintainability, and usability of all your Python programs. Mark Summerfield focuses on four key themes: design patterns for coding elegance, faster processing through concurrency and compiled Python (Cython), high-level networking, and graphics. He identifies well-proven design patterns that are useful in Python, illuminates them with expert-quality code, and explains why some object-oriented design patterns are irrelevant to Python. He also explodes several counterproductive myths about Python programming—showing, for example, how Python can take full advantage of multicore hardware. All examples, including three complete case studies, have been tested with Python 3.3 (and, where possible, Python 3.2 and 3.1) and crafted to maintain compatibility with future Python 3.x versions. All code has been tested on Linux, and most code has also been tested on OS X and Windows. All code may be downloaded at www.qtrac.eu/pipbook.html. Coverage includes
Leveraging Python’s most effective creational, structural, and behavioral design patterns
Supporting concurrency with Python’s multiprocessing, threading, and concurrent.futures modules
Avoiding concurrency problems using thread-safe queues and futures rather than fragile locks
Simplifying networking with high-level modules, including xmlrpclib and RPyC
Accelerating Python code with Cython, C-based Python modules, profiling, and other techniques
Creating modern-looking GUI applications with Tkinter
Leveraging today’s powerful graphics hardware via the OpenGL API using pyglet and PyOpenGL

Читайте также:  Detect eof in java

First published August 14, 2013

About the author

Profile Image for Mark Summerfield.

Mark Summerfield

Ratings & Reviews

Friends & Following

Community Reviews

The first few chapters explain most of the Gang of Four design patterns in Python . After patterns, the author tackles concurrency (with separate sections on CPU-bound and I/O-bound concurrency), integration with other languages, high-level networking, and writing portable GUIs. The latter topic is based on Tkinter

Profile Image for Jascha.

I’ve started reading this book right after finishing Learning Python Design Patterns, since I was mainly interested in design patterns. Aware of the fact that only one of the four parts of this title covers the subject, I quickly went through all of its three hundred and some pages. This allowed me to both explore more in depth the concepts I was interested in and, at the same time, have a couple of titles to compare. I’ve ended up with a bitter sweet taste in my mouth: the design patters coverage is not bad, not at all. But the author tries to cover way too many different topics in such a thin book, ending up providing little value.

Python in Practice is not a book for beginners. It does not aim to teach the reader how to write “Hello World” in Python. The author makes it as clear as day that this targets expert developers interested in improving their knowledge with this advanced material.

But let’s dive into the book itself! As aforementioned, this book is divided into four sections covering, in order, design patterns, improving processing speed, network programming and graphics.

Design patterns are covered in the first three chapters. While the first one was honestly painful to get through, overall this section was good: the author concisely presents creational, structural and behavioral patterns with good examples and step by step explanations. I would have liked to see more images and schemas, but I’m satisfied with the meal.

The second to fourth parts of the book were instead disappointing. Mind, I don’t mainly refer to the readability or the way the concepts are presented, but rather to the choice of the author to cover all those subjects, which are worthy a book each just to get introduced to them, in some two hundred pages.

For example, the part dedicated to improving the processing speed obviously resolves to Cython. I hardly doubt anyone can get a good grasp of the language with only those little pages. Same with graphic libraries: Tkinter deserves way more pages to get you properly started. This results in the reader getting confused and either skipping chapters or getting mad finding documentation online.

So, final thoughts… I was interested in design patters. That subject is decently covered. Still, I do prefer Learning Python Design Patterns. Talking about the other topics, I think that the intentions of the author were good, but the result was different than expected.

Learning Python Design Patterns: a title fully dedicated to design patterns. Definitely recommended.

Learning Cython Programming: since this book introduces Cython, here’s a book that definitely covers the subject as it should be. It requires some good knowledge of both Python and C.

Источник

Python на практике. Создание качественных программ с использованием параллелизма, библиотек и паттернов

Также данная книга доступна ещё в библиотеке. Запишись сразу в несколько библиотек и получай книги намного быстрее.

Посоветуйте книгу друзьям! Друзьям – скидка 10%, вам – рубли

По вашей ссылке друзья получат скидку 10% на эту книгу, а вы будете получать 10% от стоимости их покупок на свой счет ЛитРес. Подробнее

По абонементу вы каждый месяц можете взять из каталога одну книгу до 700 ₽ и две книги из специальной подборки. Узнать больше

Если вы – опытный программист на Python, то после прочтения данной книги ваши программы станут более качественными, надежными, быстрыми, удобными для сопровождения и использования. В центре внимания Марка Саммерфилда находятся четыре основных темы: повышение элегантности кода с помощью паттернов проектирования, повышения быстродействия с помощью распараллеливания и компиляции Python-программ (Cython), высокоуровневое сетевое программирование и графика. Он описывает паттерны, доказавшие свою полезность в Python, иллюстрирует их на примерах высококачественного кода и объясняет, почему некоторые из них не слишком существенны. Издание предназначено для программистов, уже работающих на Python, но также может быть полезно и начинающим пользователям языка.

Возрастное ограничение: 0+ Дата выхода на ЛитРес: 25 января 2017 Дата перевода: 2016 Дата написания: 2014 Объем: 340 стр.

ISBN: 978-5-97060-215-7 Общий размер: 1 MB Общее кол-во страниц: 340 Размер страницы: Переводчик: Правообладатель: ДМК Пресс

«Python на практике. Создание качественных программ с использованием параллелизма, библиотек и паттернов» — читать онлайн бесплатно фрагмент книги. Оставляйте комментарии и отзывы, голосуйте за понравившиеся.

Источник

Python in Practice : Create Better Programs Using Concurrency, Libraries, and Patterns

“Whether you are an experienced programmer or are starting your career, Python in Practice is full of valuable advice and example to help you improve your craft by thinking about problems from different perspectives, introducing tools, and detailing techniques to create more effective solutions.”

Doug Hellmann, Senior Developer, DreamHost

If you’re an experienced Python programmer, Python in Practice will help you improve the quality, reliability, speed, maintainability, and usability of all your Python programs.

Mark Summerfield focuses on four key themes: design patterns for coding elegance, faster processing through concurrency and compiled Python (Cython), high-level networking, and graphics. He identifies well-proven design patterns that are useful in Python, illuminates them with expert-quality code, and explains why some object-oriented design patterns are irrelevant to Python. He also explodes several counterproductive myths about Python programming—showing, for example, how Python can take full advantage of multicore hardware.

All examples, including three complete case studies, have been tested with Python 3.3 (and, where possible, Python 3.2 and 3.1) and crafted to maintain compatibility with future Python 3.x versions. All code has been tested on Linux, and most code has also been tested on OS X and Windows. All code may be downloaded at www.qtrac.eu/pipbook.html.

  • Leveraging Python’s most effective creational, structural, and behavioral design patterns
  • Supporting concurrency with Python’s multiprocessing, threading, and concurrent.futures modules
  • Avoiding concurrency problems using thread-safe queues and futures rather than fragile locks
  • Simplifying networking with high-level modules, including xmlrpclib and RPyC
  • Accelerating Python code with Cython, C-based Python modules, profiling, and other techniques
  • Creating modern-looking GUI applications with Tkinter
  • Leveraging today’s powerful graphics hardware via the OpenGL API using pyglet and PyOpenGL

Источник

Python in Practice: Create Better Programs Using Concurrency, Libraries, and Patterns

Python in Practice: Create Better Programs Using Concurrency, Libraries, and Patterns

Read it now on the O’Reilly learning platform with a 10-day free trial.

O’Reilly members get unlimited access to books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.

Book description

Winner of the 2014 Jolt Award for «Best Book»

“Whether you are an experienced programmer or are starting your career, Python in Practice is full of valuable advice and example to help you improve your craft by thinking about problems from different perspectives, introducing tools, and detailing techniques to create more effective solutions.”

Doug Hellmann, Senior Developer, DreamHost

If you’re an experienced Python programmer, Python in Practice will help you improve the quality, reliability, speed, maintainability, and usability of all your Python programs.

Mark Summerfield focuses on four key themes: design patterns for coding elegance, faster processing through concurrency and compiled Python (Cython), high-level networking, and graphics. He identifies well-proven design patterns that are useful in Python, illuminates them with expert-quality code, and explains why some object-oriented design patterns are irrelevant to Python. He also explodes several counterproductive myths about Python programming—showing, for example, how Python can take full advantage of multicore hardware.

All examples, including three complete case studies, have been tested with Python 3.3 (and, where possible, Python 3.2 and 3.1) and crafted to maintain compatibility with future Python 3.x versions. All code has been tested on Linux, and most code has also been tested on OS X and Windows. All code may be downloaded at www.qtrac.eu/pipbook.html.

Table of contents

  1. About This eBook
  2. Title Page
  3. Copyright Page
  4. Dedication Page
  5. Contents at a Glance
  6. Contents
  7. Introduction to Python in Practice
    1. Acknowledgments
    1. 1.1. Abstract Factory Pattern
    2. 1.2. Builder Pattern
    3. 1.3. Factory Method Pattern
    4. 1.4. Prototype Pattern
    5. 1.5. Singleton Pattern
    1. 2.1. Adapter Pattern
    2. 2.2. Bridge Pattern
    3. 2.3. Composite Pattern
    4. 2.4. Decorator Pattern
    5. 2.5. Façade Pattern
    6. 2.6. Flyweight Pattern
    7. 2.7. Proxy Pattern
    1. 3.1. Chain of Responsibility Pattern
    2. 3.2. Command Pattern
    3. 3.3. Interpreter Pattern
    4. 3.4. Iterator Pattern
    5. 3.5. Mediator Pattern
    6. 3.6. Memento Pattern
    7. 3.7. Observer Pattern
    8. 3.8. State Pattern
    9. 3.9. Strategy Pattern
    10. 3.10. Template Method Pattern
    11. 3.11. Visitor Pattern
    12. 3.12. Case Study: An Image Package
    1. 4.1. CPU-Bound Concurrency
    2. 4.2. I/O-Bound Concurrency
    3. 4.3. Case Study: A Concurrent GUI Application
    1. 5.1. Accessing C Libraries with ctypes
    2. 5.2. Using Cython
    3. 5.3. Case Study: An Accelerated Image Package
    1. 6.1. Writing XML-RPC Applications
    2. 6.2. Writing RPyC Applications
    1. 7.1. Introduction to Tkinter
    2. 7.2. Creating Dialogs with Tkinter
    3. 7.3. Creating Main-Window Applications with Tkinter
    1. 8.1. A Perspective Scene
    2. 8.2. An Orthographic Game
    1. Production

    Product information

    • Title: Python in Practice: Create Better Programs Using Concurrency, Libraries, and Patterns
    • Author(s):
    • Release date: August 2013
    • Publisher(s): Addison-Wesley Professional
    • ISBN: 9780133373271

    You might also like

    Check it out now on O’Reilly

    Dive in for free with a 10-day trial of the O’Reilly learning platform—then explore all the other resources our members count on to build skills and solve problems every day.

    Источник

Оцените статью