
۴۴٬۰۰۰تومان
نوع فایل دانلود: EPUB
پس از خرید، یک فایل EPUB دریافت میکنید.
این فایل با Calibre، Apple Books و سایر کتابخوانهای دیجیتال مناسب است.
با ساخت الگوهای طراحی گوناگون، هنر حل مسئله با پایتون را بیاموزید.
درباره این کتاب
با قدرت پایتون، پیادهسازی الگوهای طراحی را ساده کنید. هر الگو همراه با یک مثال واقعی است که ویژگیهای اصلیاش را نشان میدهد. این راهنما آسانخوان است و روی جنبههای عملی الگوهای طراحی پایتون تمرکز دارد.
این کتاب برای چه کسانی است
این کتاب برای برنامهنویسان پایتون با سطح متوسط است که به الگوهای طراحی نوشتهشده به سبک رایج پایتون علاقه دارند. برنامهنویسان زبانهای دیگر هم که به پایتون علاقه دارند میتوانند از آن سود ببرند؛ بهتر است اول کمی مطالب مقدماتی بخوانند تا ببینند کارها در پایتون چگونه انجام میشود.
چه چیزهایی یاد میگیرید
روش کارخانه و کارخانه انتزاعی را برای ساخت اشیا بررسی کنید. با الگوی پیشنمون، اشیا را کپی کنید. با الگوی آداپتر، رابطهای ناسازگار را سازگار کنید. با الگوی پراکسی، یک رابط را ایمن کنید. با الگوی استراتژی، الگوریتم را بهصورت پویا انتخاب کنید. با الگوی دکوراتور، بدون ساخت زیرکلاس، یک شیء را گسترش دهید. با الگوی MVC، منطق را از رابط کاربری جدا نگه دارید.
جزئیات بیشتر
پایتون زبانی شیءگرا و اسکریپتی است که در حوزههای بسیاری به کار میرود. در مهندسی نرمافزار، الگوی طراحی راهحلی پیشنهادی برای یک مسئله طراحی نرمافزار است. هرچند موضوع تازهای نیست، الگوهای طراحی همچنان از داغترین مباحث مهندسی نرمافزارند و مرجعی آماده برای توسعهدهندگاناند تا مشکلات رایجی را که در کار با آنها روبهرو میشوند حل کنند.
این کتاب تکتک الگوهای طراحی را با کمک مثالهای واقعی توضیح میدهد. هدف کتاب این است که جزئیات و مفاهیم سطح پایینتری درباره نوشتن کد پایتونیک معرفی کند؛ نه اینکه فقط روی راهحلهای رایجی تمرکز کند که در جاوا و سیپلاسپلاس پیاده شدهاند. بخشهای کوتاهی هم درباره عیبیابی، بهترین شیوهها، معماری سیستم و جنبههای طراحی آن دارد. با کمک این کتاب میتوانید مفاهیم و چارچوب الگوهای طراحی پایتون، و نیز مسائل و راهحلهایشان را بفهمید. روی هر ۱۶ الگوی طراحیای تمرکز میکنید که برای حل مسائل روزمره به کار میروند.
Create various design patterns to master the art of solving problems using PythonAbout This Book Simplify design pattern implementation using the power of Python Each pattern is accompanied with a real-world example demonstrating its key features This is an easy-to-follow guide focusing on the practical aspects of Python design patterns Who This Book Is ForThis book is for Python programmers with an intermediate background and an interest in design patterns implemented in idiomatic Python. Programmers of other languages who are interested in Python can also benefit from this book, but it would be better if they first read some introductory materials that explain how things are done in Python.What You Will Learn Explore Factory Method and Abstract Factory for object creation Clone objects using the Prototype pattern Make incompatible interfaces compatible using the Adapter pattern Secure an interface using the Proxy pattern Choose an algorithm dynamically using the Strategy pattern Extend an object without subclassing using the Decorator pattern Keep the logic decoupled from the UI using the MVC pattern In DetailPython is an object-oriented, scripting language that is used in wide range of categories. In software engineering, a design pattern is a recommended solution to a software design problem. Although not new, design patterns remain one of the hottest topics in software engineering and they come as a ready reference for software developers to solve the common problems they face at work.This book will take you through each and every design pattern explained with the help of real-world examples. The aim of the book is to introduce more low-level detail and concepts on how to write Pythonic code, not just focusing on common solutions as implemented in Java and C++. It includes small sections on troubleshooting, best practices, system architecture, and its design aspects. With the help of this book, you will be able to understand Python design pattern concepts and the framework, as well as issues and their resolution. You'll focus on all 16 design patterns that are used to solve everyday problems.