ورود به حساب

نام کاربری گذرواژه

گذرواژه را فراموش کردید؟ کلیک کنید

حساب کاربری ندارید؟ ساخت حساب

ساخت حساب کاربری

نام نام کاربری ایمیل شماره موبایل گذرواژه

برای ارتباط با ما می توانید از طریق شماره موبایل زیر از طریق تماس و پیامک با ما در ارتباط باشید


09117307688
09117179751

در صورت عدم پاسخ گویی از طریق پیامک با پشتیبان در ارتباط باشید

دسترسی نامحدود

برای کاربرانی که ثبت نام کرده اند

ضمانت بازگشت وجه

درصورت عدم همخوانی توضیحات با کتاب

پشتیبانی

از ساعت 7 صبح تا 10 شب

دانلود کتاب Python Object-Oriented Programming: Build robust and maintainable object-oriented Python applications and libraries

دانلود کتاب برنامه نویسی شی گرا پایتون: ایجاد برنامه ها و کتابخانه های قوی و قابل نگهداری شی گرا

Python Object-Oriented Programming: Build robust and maintainable object-oriented Python applications and libraries

مشخصات کتاب

Python Object-Oriented Programming: Build robust and maintainable object-oriented Python applications and libraries

ویرایش: 4 
نویسندگان: ,   
سری:  
ISBN (شابک) : 1801077266, 9781801077262 
ناشر: Packt Publishing 
سال نشر: 2021 
تعداد صفحات: 715 
زبان: English 
فرمت فایل : PDF (درصورت درخواست کاربر به PDF، EPUB یا AZW3 تبدیل می شود) 
حجم فایل: 7 مگابایت 

قیمت کتاب (تومان) : 37,000



ثبت امتیاز به این کتاب

میانگین امتیاز به این کتاب :
       تعداد امتیاز دهندگان : 9


در صورت تبدیل فایل کتاب Python Object-Oriented Programming: Build robust and maintainable object-oriented Python applications and libraries به فرمت های PDF، EPUB، AZW3، MOBI و یا DJVU می توانید به پشتیبان اطلاع دهید تا فایل مورد نظر را تبدیل نمایند.

توجه داشته باشید کتاب برنامه نویسی شی گرا پایتون: ایجاد برنامه ها و کتابخانه های قوی و قابل نگهداری شی گرا نسخه زبان اصلی می باشد و کتاب ترجمه شده به فارسی نمی باشد. وبسایت اینترنشنال لایبرری ارائه دهنده کتاب های زبان اصلی می باشد و هیچ گونه کتاب ترجمه شده یا نوشته شده به فارسی را ارائه نمی دهد.


توضیحاتی در مورد کتاب برنامه نویسی شی گرا پایتون: ایجاد برنامه ها و کتابخانه های قوی و قابل نگهداری شی گرا



راهنمای جامع برای کاوش در پایتون مدرن از طریق ساختارهای داده، الگوهای طراحی و تکنیک‌های موثر شی گرا

ویژگی‌های کلیدی

  • Build درک بصری از طراحی شی گرا، از مقدماتی تا برنامه های بالغ
  • یادگیری نکات دستوری، کتابخانه ها و بهترین شیوه های Python
  • مطالعه موردی یادگیری ماشینی را در پایان هر فصل

توضیحات کتاب

برنامه نویسی شی گرا پایتون، ویرایش چهارم عمیقاً به جنبه های مختلف OOP، پایتون به عنوان یک زبان OOP، رایج و الگوهای طراحی پیشرفته و دستکاری داده ها و آزمایش سیستم های OOP پیچیده تر. این مفاهیم با تمرین‌های پایان باز، و همچنین یک مطالعه موردی در دنیای واقعی در پایان هر فصل، که به تازگی برای این نسخه نوشته شده است، ادغام می‌شوند. همه کدهای نمونه اکنون با نحو Python 3.9+ سازگار هستند و برای سهولت یادگیری با نکات نوع به روز شده اند.

استیون و داستی یک تور دوستانه و جامع از مفاهیم مهم OOP، مانند وراثت، ترکیب، ارائه می کنند. و چند شکلی، و توضیح دهید که چگونه آنها با کلاس ها و ساختارهای داده پایتون کار می کنند تا طراحی خوب را تسهیل کنند. نمودارهای کلاس UML به طور سخاوتمندانه در سراسر متن برای درک روابط کلاس استفاده می شوند. فراتر از تمرکز کتاب بر OOP، نگاهی عمیق به مدیریت استثناهای پایتون و نحوه تلاقی برنامه‌نویسی کاربردی با OOP دارد. نه یک، بلکه دو سیستم تست خودکار بسیار قدرتمند unittest و pytest در این کتاب معرفی شده اند. فصل آخر بحث مفصلی در مورد اکوسیستم برنامه نویسی همزمان پایتون ارائه می دهد.

در پایان کتاب، شما درک کاملی از نحوه تفکر و اعمال اصول شی گرا با استفاده از نحو پایتون خواهید داشت و قادر خواهید بود. برای ایجاد مطمئن برنامه های قوی و قابل اعتماد.

آنچه یاد خواهید گرفت

  • با ایجاد کلاس ها و تعریف روش ها، اشیاء را در پایتون پیاده سازی کنید
  • عملکرد کلاس را با استفاده از گسترش دهید. وراثت
  • از استثناها برای رسیدگی به موقعیت‌های غیرمعمول استفاده کنید
  • درک زمان استفاده از ویژگی‌های شی گرا و مهمتر از آن، زمانی که از آنها استفاده نکنید
  • چندین را به طور گسترده کشف کنید الگوهای طراحی استفاده شده و نحوه پیاده سازی آنها در پایتون
  • آزمایش واحد و ادغام ساده را کشف کنید و بفهمید چرا آنها بسیار مهم هستند
  • یاد بگیرید تایپ استاتیک کد پویا خود را بررسی کنید
  • درک همزمانی با asyncio و چگونگی افزایش سرعت برنامه‌ها را بدانید

این کتاب برای چه کسی است

اگر در تکنیک‌های برنامه‌نویسی شی گرا تازه کار هستید، یا شما مهارت های اولیه پایتون را دارید و می خواهید یاد بگیرید که چگونه و چه زمانی اصول OOP را به درستی در پایتون به کار ببرید، این کتاب برای شماست. علاوه بر این، اگر یک برنامه نویس شی گرا هستید که از زبان های دیگر می آیید یا به دنبال یک پا در دنیای جدید پایتون هستید، این کتاب را به عنوان یک مقدمه مفید برای پایتون خواهید یافت. حداقل تجربه قبلی با پایتون ضروری است.

فهرست محتوا

  1. طراحی شی گرا
  2. اشیاء در پایتون
  3. وقتی اشیا شبیه هم هستند
  4. انتظار غیرمنتظره
  5. زمان استفاده از برنامه نویسی شی گرا
  6. کلاس های پایه انتزاعی و بارگذاری بیش از حد اپراتور
  7. ساختارهای داده پایتون
  8. تقاطع برنامه نویسی شی گرا و تابعی
  9. رشته ها، سریال سازی و مسیرهای فایل
  10. الگوی تکرار کننده
  11. الگوهای طراحی رایج
  12. الگوهای طراحی پیشرفته
  13. آزمایش برنامه های شی گرا
  14. همزمانی

توضیحاتی درمورد کتاب به خارجی

A comprehensive guide to exploring modern Python through data structures, design patterns, and effective object-oriented techniques

Key Features

  • Build an intuitive understanding of object-oriented design, from introductory to mature programs
  • Learn the ins and outs of Python syntax, libraries, and best practices
  • Examine a machine-learning case study at the end of each chapter

Book Description

Python Object-Oriented Programming, Fourth Edition dives deep into the various aspects of OOP, Python as an OOP language, common and advanced design patterns, and hands-on data manipulation and testing of more complex OOP systems. These concepts are consolidated by open-ended exercises, as well as a real-world case study at the end of every chapter, newly written for this edition. All example code is now compatible with Python 3.9+ syntax and has been updated with type hints for ease of learning.

Steven and Dusty provide a friendly, comprehensive tour of important OOP concepts, such as inheritance, composition, and polymorphism, and explain how they work together with Python's classes and data structures to facilitate good design. UML class diagrams are generously used throughout the text for you to understand class relationships. Beyond the book's focus on OOP, it features an in-depth look at Python's exception handling and how functional programming intersects with OOP. Not one, but two very powerful automated testing systems, unittest and pytest, are introduced in this book. The final chapter provides a detailed discussion of Python's concurrent programming ecosystem.

By the end of the book, you will have a thorough understanding of how to think about and apply object-oriented principles using Python syntax and be able to confidently create robust and reliable programs.

What you will learn

  • Implement objects in Python by creating classes and defining methods
  • Extend class functionality using inheritance
  • Use exceptions to handle unusual situations cleanly
  • Understand when to use object-oriented features, and more importantly, when not to use them
  • Discover several widely used design patterns and how they are implemented in Python
  • Uncover the simplicity of unit and integration testing and understand why they are so important
  • Learn to statically type check your dynamic code
  • 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.

Table of Contents

  1. Object-Oriented Design
  2. Objects in Python
  3. When Objects Are Alike
  4. Expecting the Unexpected
  5. When to Use Object-Oriented Programming
  6. Abstract Base Classes and Operator Overloading
  7. Python Data Structures
  8. The Intersection of Object-Oriented and Functional Programming
  9. Strings, Serialization, and File Paths
  10. The Iterator Pattern
  11. Common Design Patterns
  12. Advanced Design Patterns
  13. Testing Object-Oriented Programs
  14. Concurrency


فهرست مطالب

Cover
Copyright
Contributors
Table of Contents
Preface
Chapter 1: Object-Oriented Design
	Introducing object-oriented
	Objects and classes
	Specifying attributes and behaviors
		Data describes object state
		Behaviors are actions
	Hiding details and creating the public interface
	Composition
	Inheritance
		Inheritance provides abstraction
		Multiple inheritance
	Case study
		Introduction and problem overview
		Context view
		Logical view
		Process view
		Development view
		Physical view
		Conclusion
	Recall
	Exercises
	Summary
Chapter 2: Objects in Python
	Introducing type hints
		Type checking
	Creating Python classes
		Adding attributes
		Making it do something
			Talking to yourself
			More arguments
		Initializing the object
		Type hints and defaults
		Explaining yourself with docstrings
	Modules and packages
		Organizing modules
			Absolute imports
			Relative imports
			Packages as a whole
		Organizing our code in modules
	Who can access my data?
	Third-party libraries
	Case study
		Logical view
		Samples and their states
		Sample state transitions
		Class responsibilities
		The TrainingData class
	Recall
	Exercises
	Summary
Chapter 3: When Objects Are Alike
	Basic inheritance
		Extending built-ins
		Overriding and super
	Multiple inheritance
		The diamond problem
		Different sets of arguments
	Polymorphism
	Case study
		Logical view
		Another distance
	Recall
	Exercises
	Summary
Chapter 4: Expecting the Unexpected
	Raising exceptions
		Raising an exception
		The effects of an exception
		Handling exceptions
		The exception hierarchy
		Defining our own exceptions
		Exceptions aren't exceptional
	Case study
		Context view
		Processing view
		What can go wrong?
		Bad behavior
		Creating samples from CSV files
		Validating enumerated values
		Reading CSV files
		Don't repeat yourself
	Recall
	Exercises
	Summary
Chapter 5: When to Use Object-Oriented Programming
	Treat objects as objects
	Adding behaviors to class data with properties
		Properties in detail
		Decorators – another way to create properties
		Deciding when to use properties
	Manager objects
		Removing duplicate code
		In practice
	Case study
		Input validation
		Input partitioning
		The sample class hierarchy
		The purpose enumeration
		Property setters
		Repeated if statements
	Recall
	Exercises
	Summary
Chapter 6: Abstract Base Classes and Operator Overloading
	Creating an abstract base class
		The ABCs of collections
		Abstract base classes and type hints
		The collections.abc module
		Creating your own abstract base class
		Demystifying the magic
	Operator overloading
	Extending built-ins
	Metaclasses
	Case study
		Extending the list class with two sublists
		A shuffling strategy for partitioning
		An incremental strategy for partitioning
	Recall
	Exercises
	Summary
Chapter 7: Python Data Structures
	Empty objects
	Tuples and named tuples
		Named tuples via typing.NamedTuple
	Dataclasses
	Dictionaries
		Dictionary use cases
		Using defaultdict
			Counter
	Lists
		Sorting lists
	Sets
	Three types of queues
	Case study
		Logical model
		Frozen dataclasses
		NamedTuple classes
		Conclusion
	Recall
	Exercises
	Summary
Chapter 8: The Intersection of Object-Oriented and Functional Programming
	Python built-in functions
		The len() function
		The reversed() function
		The enumerate() function
	An alternative to method overloading
		Default values for parameters
			Additional details on defaults
		Variable argument lists
		Unpacking arguments
	Functions are objects, too
		Function objects and callbacks
		Using functions to patch a class
		Callable objects
	File I/O
		Placing it in context
	Case study
		Processing overview
		Splitting the data
		Rethinking classification
		The partition() function
		One-pass partitioning
	Recall
	Exercises
	Summary
Chapter 9: Strings, Serialization, and File Paths
	Strings
		String manipulation
		String formatting
			Escaping braces
			f-strings can contain Python code
			Making it look right
			Custom formatters
			The format() method
		Strings are Unicode
			Decoding bytes to text
			Encoding text to bytes
			Mutable byte strings
	Regular expressions
		Matching patterns
			Matching a selection of characters
			Escaping characters
			Repeating patterns of characters
			Grouping patterns together
		Parsing information with regular expressions
			Other features of the re module
			Making regular expressions efficient
	Filesystem paths
	Serializing objects
		Customizing pickles
		Serializing objects using JSON
	Case study
		CSV format designs
		CSV dictionary reader
		CSV list reader
		JSON serialization
		Newline-delimited JSON
		JSON validation
	Recall
	Exercises
	Summary
Chapter 10: The Iterator Pattern
	Design patterns in brief
	Iterators
		The iterator protocol
	Comprehensions
		List comprehensions
		Set and dictionary comprehensions
		Generator expressions
	Generator functions
		Yield items from another iterable
		Generator stacks
	Case study
		The Set Builder background
		Multiple partitions
		Testing
		The essential k-NN algorithm
		k-NN using the bisect module
		k-NN using the heapq module
		Conclusion
	Recall
	Exercises
	Summary
Chapter 11: Common Design Patterns
	The Decorator pattern
		A Decorator example
		Decorators in Python
	The Observer pattern
		An Observer example
	The Strategy pattern
		A Strategy example
		Strategy in Python
	The Command pattern
		A Command example
	The State pattern
		A State example
		State versus Strategy
	The Singleton pattern
		Singleton implementation
	Case study
	Recall
	Exercises
	Summary
Chapter 12: Advanced Design Patterns
	The Adapter pattern
		An Adapter example
	The Façade pattern
		A Façade example
	The Flyweight pattern
		A Flyweight example in Python
		Multiple messages in a buffer
		Memory optimization via Python's __slots__
	The Abstract Factory pattern
		An Abstract Factory example
		Abstract Factories in Python
	The Composite pattern
		A Composite example
	The Template pattern
		A Template example
	Case study
	Recall
	Exercises
	Summary
Chapter 13: Testing Object-Oriented Programs
	Why test?
		Test-driven development
		Testing objectives
		Testing patterns
	Unit testing with unittest
	Unit testing with pytest
		pytest's setup and teardown functions
		pytest fixtures for setup and teardown
		More sophisticated fixtures
		Skipping tests with pytest
	Imitating objects using Mocks
		Additional patching techniques
		The sentinel object
	How much testing is enough?
	Testing and development
	Case study
		Unit testing the distance classes
		Unit testing the Hyperparameter class
	Recall
	Exercises
	Summary
Chapter 14: Concurrency
	Background on concurrent processing
	Threads
		The many problems with threads
			Shared memory
			The global interpreter lock
			Thread overhead
	Multiprocessing
		Multiprocessing pools
		Queues
		The problems with multiprocessing
	Futures
	AsyncIO
		AsyncIO in action
		Reading an AsyncIO future
		AsyncIO for networking
			Design considerations
		A log writing demonstration
		AsyncIO clients
	The dining philosophers benchmark
	Case study
	Recall
	Exercises
	Summary
Packt Page
Other Books You May Enjoy
Index




نظرات کاربران