
۴۴٬۰۰۰تومان
نوع فایل دانلود: EPUB
پس از خرید، یک فایل EPUB دریافت میکنید.
این فایل با Calibre، Apple Books و سایر کتابخوانهای دیجیتال مناسب است.
راهنمایی جامع برای کشف پایتون مدرن از طریق ساختارهای داده، الگوهای طراحی و تکنیکهای مؤثر شیءگرا. ویژگیهای کلیدی: درک شهودی از طراحی شیءگرا، از برنامههای مقدماتی تا پیشرفته؛ یادگیری زیر و بم سینتکس پایتون، کتابخانهها و بهترین روشها؛ بررسی یک مطالعه موردی یادگیری ماشین در انتهای هر فصل. درباره کتاب: برنامهنویسی شیءگرا (OOP) یک شیوه طراحی پرطرفدار است که در آن دادهها و رفتارها به گونهای کپسوله میشوند که بتوان آنها را با هم دستکاری کرد. ویرایش چهارم کتاب «برنامهنویسی شیءگرا در پایتون» عمیقاً به جنبههای مختلف شیءگرایی، پایتون به عنوان یک زبان شیءگرا، الگوهای طراحی رایج و پیشرفته، و دستکاری عملی دادهها و تست سیستمهای پیچیدهتر شیءگرا میپردازد. این مفاهیم با تمرینهای باز و همچنین یک مطالعه موردی واقعی در انتهای هر فصل که به تازگی برای این ویرایش نوشته شدهاند، تثبیت میشوند. تمامی کدهای نمونه اکنون با سینتکس پایتون ۳.۹ به بالا سازگار هستند و برای یادگیری آسانتر با راهنماییهای نوع (type hints) بهروز شدهاند. استیون و داستی گشتی جامع و مصور از مفاهیم مهم شیءگرا مانند ارثبری، ترکیب و چندریختی ارائه میدهند و توضیح میدهند که چگونه آنها با کلاسها و ساختارهای داده پایتون برای تسهیل طراحی خوب کار میکنند. علاوه بر این، کتاب نگاهی عمیق به مدیریت استثناها در پایتون و تلاقی برنامهنویسی تابعمحور با شیءگرایی دارد. دو سیستم تست خودکار بسیار قدرتمند به نامهای unittest و pytest معرفی شدهاند. فصل پایانی بحثی مفصل درباره اکوسیستم برنامهنویسی همروند پایتون ارائه میدهد. تا انتهای این کتاب، درکی کامل از نحوه تفکر و اعمال اصول شیءگرا با استفاده از سینتکس پایتون خواهید داشت و میتوانید با اطمینان، برنامههایی قوی و قابل اعتماد ایجاد کنید. آنچه خواهید آموخت: پیادهسازی اشیاء در پایتون با ایجاد کلاسها و تعریف متدها؛ گسترش قابلیتهای کلاس با استفاده از ارثبری؛ استفاده از استثناها برای مدیریت تمیز موقعیتهای غیرمعمول؛ درک زمان استفاده از ویژگیهای شیءگرا و مهمتر از آن، زمان عدم استفاده از آنها؛ کشف چندین الگوی طراحی پرکاربرد و نحوه پیادهسازی آنها در پایتون؛ کشف سادگی تست واحد و یکپارچهسازی و درک چرایی اهمیت آنها؛ یادگیری بررسی نوع استاتیک کدهای پویا؛ درک همروندی با asyncio و نحوه تسریع برنامهها. این کتاب برای چه کسانی است: اگر با تکنیکهای برنامهنویسی شیءگرا آشنایی ندارید، یا اگر مهارتهای پایهای پایتون را دارید و میخواهید یاد بگیرید که چگونه و چه زمانی اصول شیءگرا را به درستی در پایتون اعمال کنید، این کتاب برای شماست. علاوه بر این، اگر برنامهنویس شیءگرایی هستید که از زبانهای دیگر میآید یا به دنبال پیشرفتی در دنیای جدید پایتون هستید، این کتاب را مقدمهای مفید برای پایتون خواهید یافت. داشتن تجربه قبلی بسیار کم با پایتون کافی است.
A comprehensive guide to exploring modern Python through data structures, design patterns, and effective object-oriented techniquesKey FeaturesBuild an intuitive understanding of object-oriented design, from introductory to mature programsLearn the ins and outs of Python syntax, libraries, and best practicesExamine a machine-learning case study at the end of each chapterBook DescriptionObject-oriented programming (OOP) is a popular design paradigm in which data and behaviors are encapsulated in such a way that they can be manipulated together. 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 comprehensive, illustrative 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. In addition, the book also features an in-depth look at Python's exception handling and how functional programming intersects with OOP. Two very powerful automated testing systems, unittest and pytest, are introduced. 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 learnImplement objects in Python by creating classes and defining methodsExtend class functionality using inheritanceUse exceptions to handle unusual situations cleanlyUnderstand when to use object-oriented features, and more importantly, when not to use themDiscover several widely used design patterns and how they are implemented in PythonUncover the simplicity of unit and integration testing and understand why they are so importantLearn to statically type check your dynamic codeUnderstand concurrency with asyncio and how it speeds up programsWho this book is forIf 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.