Lott S.F., Phillips D. - Python Object-Oriented Programming, 4th Edition [2021, PDF/EPUB, ENG]

Страницы:  1
Ответить
 

iptcpudp37

Стаж: 15 лет

Сообщений: 909


iptcpudp37 · 03-Июл-21 09:14 (4 года назад)

Python Object-Oriented Programming, 4th Edition
Год издания: 2021
Автор: Lott S.F., Phillips D.
Издательство: Packt
ISBN: 978-1-80107-726-2
Язык: Английский
Формат: PDF/epub
Качество: Издательский макет или текст (eBook)
Интерактивное оглавление: Да
Количество страниц: 715
Описание: A comprehensive guide to exploring modern Python through data structures, design patterns, and effective object-oriented techniques.
Key Features:
  1. Build an intuitive understanding of object-oriented design, from introductory to mature programs
  2. Learn the ins and outs of Python syntax, libraries, and best practices
  3. Examine a machine-learning case study at the end of each chapter
What you will learn:
  1. Implement objects in Python by creating classes and defining methods
  2. Extend class functionality using inheritance
  3. Understand when to use object-oriented features, and more importantly, when not to use them
  4. Discover several widely used design patterns and how they are implemented in Python
  5. Uncover the simplicity of unit and integration testing and understand why they are so important
  6. Learn to statically type check your dynamic code
  7. Understand concurrency with asyncio and how it speeds up programs
Who This Book Is For:
If you are new to object-oriented programming techniques, or if you have basic Python skills and wish to learn how and when to correctly apply OOP principles in Python, this is the book for you. Moreover, if you are an object-oriented programmer coming from other languages or seeking a leg up in the new world of Python, you will find this book a useful introduction to Python. Minimal previous experience with Python is necessary.
Примеры страниц
Оглавление
Chapter 1, Object-Oriented Design, introduces the core concepts underlying object-
oriented design. This provides a road map through the ideas of state and behavior,
attributes and methods, and how objects are grouped into classes. This chapter also
looks an encapsulation, inheritance, and composition. The case study for this chapter
introduces the machine learning problem, which is an implementation of a k-nearest
neighbors (k-NN) classifier.
Chapter 2, Objects in Python, shows how class definitions work in Python. This
will include the type annotations, called type hints, class definitions, modules,
and packages. We'll talk about practical considerations for class definition and
encapsulation. The case study will begin to implement some of the classes for the
k-NN classifier.
Chapter 3, When Objects Are Alike, addresses how classes are related to each other.
This will include how to make use of inheritance and multiple inheritance. We'll
look at the concept of polymorphism among the classes in a class hierarchy. The case
study will look at alternative designs for the distance computations used to find the
nearest neighbors.
Chapter 4, Expecting the Unexpected, looks closely at Python's exceptions and exception
handling. We'll look at the built-in exception hierarchy. We'll also look at how
unique exceptions can be defined to reflect a unique problem domain or application.
In the case study, we'll apply exceptions to data validation.
Chapter 5, When to Use Object-Oriented Programming, dives more deeply into design
techniques. This chapter will look at how attributes can be implemented via Python's
properties. We'll also look at the general concept of a manager for working with
collections of objects. The case study will apply these ideas to expand on the k-NN
classifier implementation.
Chapter 6, Abstract Base Classes and Operator Overloading, is a deep dive into the idea
of abstraction, and how Python supports abstract base classes. This will involve
comparing duck typing with more formal methods of Protocol definition. It will
include the techniques for overloading Python's built-in operators. It will also look at
metaclasses and how these can be used to modify class construction. The case study
will redefine some of the existing classes to show how abstraction must be used
carefully to lead to simplification of a design.
Chapter 7, Python Data Structures, examines a number of Python's built-in collections.
This chapter examines tuples, dictionaries, lists, and sets. It also looks at how
dataclasses and named tuples can simplify a design by providing a number of
common features of a class. The case study will revise some earlier class definitions
to make use of these new techniques.
Chapter 8, The Intersection of Object-Oriented and Functional Programming, looks at
Python constructs that aren't simply class definitions. While all of Python is object-
oriented, function definitions allow us to create callable objects without the clutter of
a class definition. We'll also look at Python's context manager construct and the with
statement. In the case study, we'll look at alternative designs that avoid some class
clutter.
Chapter 9, Strings, Serialization, and File Paths, covers the way objects are serialized as
strings and how strings can be parsed to create objects. We'll look at several physical
formats, including Pickle, JSON, and CSV. The case study will revisit how sample
data is loaded and processed by the k-NN classifier.
Chapter 10, The Iterator Pattern, describes the ubiquitous concept of iteration in
Python. All of the built-in collections are iterable, and this design pattern is central
to a great deal of how Python works. We'll look at Python comprehensions and
generator functions, also. The case study will revisit some earlier designs using
generator expressions and list comprehensions to partition samples for testing and
training.
Chapter 11, Common Design Patterns, looks at some common object-oriented design.
This will include the Decorator, Observer, Strategy, Command, State, and Singleton
design patterns.
Chapter 12, Advanced Design Patterns, looks at some more advanced object-oriented
design. This will include the Adapter, Façade, Flyweight, Abstract Factory,
Composite, and Template patterns.
Chapter 13, Testing Object-Oriented Programs, shows how to use unittest and pytest
to provide an automated unit test suite for a Python application. This will look
at some more advanced testing techniques, like using mock objects to isolate the
unit under test. The case study will show how to create test cases for the distance
computations covered in Chapter 3.
Chapter 14, Concurrency, looks at how we can make use of multi-core and multi-
processor computer systems to do computations rapidly and write software that is
responsive to external events. We'll look at threads and multiprocessing, as well as
Python's asyncio module. The case study will show how to use these techniques to
do hyperparameter tuning on the k-NN model.
Code: https://github.com/PacktPublishing/Python-Object-Oriented-Programming---4th-edition
Download
Rutracker.org не распространяет и не хранит электронные версии произведений, а лишь предоставляет доступ к создаваемому пользователями каталогу ссылок на торрент-файлы, которые содержат только списки хеш-сумм
Как скачивать? (для скачивания .torrent файлов необходима регистрация)
[Профиль]  [ЛС] 

vi0

Стаж: 13 лет 7 месяцев

Сообщений: 40


vi0 · 24-Сен-21 15:03 (спустя 2 месяца 21 день)

полистал, мне показалось что воды многовато. хотя может для новичков норм
Цитата:
Все знают, что является объектом: ощутимая вещь, которую мы можем чувствовать, чувствовать, а также
манипулировать. Самые ранние объекты, с которыми мы взаимодействуем, являются типическими игрушками. деревянный
Блоки, пластиковые формы и кусочки головоломки с надветом являются обычными первыми объектами. Дети
Узнайте быстро, что некоторые объекты делают определенные вещи: кольцо колокольчиков, кнопки нажаты,
и рычаги натянуты.
Определение объекта в разработке программного обеспечения не является ужасно другим. Программное обеспечение
объекты не могут быть ощутимыми вещами, которые вы можете забрать, смысл или чувствовать, но они
Модели чего-то, что может сделать определенные вещи и иметь определенные вещи для них.
Формально объект представляет собой набор данных и связанное поведенческое поведение.
Учитывая, что является объектом, что значит быть объектно-ориентированным? в
Словарь, ориентированные средства, направленные навстречу. Объектно-ориентированные средства программирования
Письменный код, направленный к моделированию объектов. Это одна из используемых методов
для описания действий сложных систем. Это определяется путем описания коллекции
взаимодействия объектов через их данные и поведение.
Если вы прочитали любую шумиху, вы, наверное, столкнулись с условиями объектно-ориентированных
анализ, ориентированный объектно-ориентированный дизайн, объектно-ориентированный анализ и дизайн, а также объектно-ориентированный
программирование. Это все связанные концепции под общем объектно-ориентированным зонтиком.
Фактически, анализ, дизайн и программирование - это все этапы разработки программного обеспечения.
Призыв их объектно-ориентированным просто указывает, какая разработка программного обеспечения
преследуется.
Объектно-ориентированный анализ (OOA) - это процесс рассмотрения проблемы, системы,
или задача (что кто-то хочет превратиться в приложение для рабочего программного обеспечения) и
Определение объектов и взаимодействий между этими объектами. Стадия анализа
Все о том, что нужно сделать.
Вывод этапа анализа - это описание системы, часто в форме
требований. Если бы мы завершили этап анализа за один шаг, мы бы
Повернули задачу, например, как ботаник, мне нужен сайт, чтобы помочь пользователям классифицировать растения
Таким образом, я могу помочь с правильной идентификацией, в набор необходимых функций. В качестве примера,
Вот некоторые требования к тому, что может потребоваться посетитель сайта. Каждый
элемент - это действие, связанное с объектом; Мы написали их с курсивом, чтобы подчеркнуть
Действия и смелые, чтобы выделить объекты
[Профиль]  [ЛС] 

iptcpudp37

Стаж: 15 лет

Сообщений: 909


iptcpudp37 · 29-Сен-21 09:18 (спустя 4 дня)

vi0 писал(а):
82025812полистал, мне показалось что воды многовато.
Это не вода, это бульон.
[Профиль]  [ЛС] 

vi0

Стаж: 13 лет 7 месяцев

Сообщений: 40


vi0 · 29-Сен-21 18:08 (спустя 8 часов)

iptcpudp37 писал(а):
82051416
vi0 писал(а):
82025812полистал, мне показалось что воды многовато.
Это не вода, это бульон.
жидковат
[Профиль]  [ЛС] 

bebe1346

Стаж: 7 лет 10 месяцев

Сообщений: 39


bebe1346 · 04-Фев-24 16:27 (спустя 2 года 4 месяца)

выходит издание этой книгги на русском:
https://www.piter.com/collection/soon/product/obektno-orientirovannyy-python-4-e-izd
[Профиль]  [ЛС] 

iptcpudp37

Стаж: 15 лет

Сообщений: 909


iptcpudp37 · 06-Май-24 09:54 (спустя 3 месяца 1 день)

bebe1346 писал(а):
85833753выходит издание этой книгги на русском:
https://www.piter.com/collection/soon/product/obektno-orientirovannyy-python-4-e-izd
Спустя 2.5 года, когда большая часть заинтересованных уже прочитала в оригинале.
[Профиль]  [ЛС] 
 
Ответить
Loading...
Error