توضیحات
Python isn’t all about object-oriented programming. Discover a valuable way of thinking about code design through a function-first approach – and learn when you need to use it. Now with detailed exercises at the end of every chapter!
Purchase of the print or Kindle book includes a free eBook in PDF format.
Key Features
- Learn how, when, and why to adopt functional elements in your projects
- Explore the Python modules essential to functional programming, like itertools and functools
- Revised to cover new features of Python 3.10, exercises at the end of every chapter, and more
Book Description
Not enough developers understand the benefits of functional programming, or even what it is. Author Steven Lott demystifies the approach, teaching you how to improve the way you code in Python and make gains in memory use and performance.
Starting from the fundamentals, this book shows you how to apply functional thinking and techniques in a range of scenarios, with examples centered around data cleaning and exploratory data analysis. You’ll learn how to use generator expressions, list comprehensions, and decorators to your advantage. You don’t have to abandon object-oriented design completely, though – you’ll also see how Python’s native object-orientation is used in conjunction with functional programming techniques.
By the end of this book, you’ll be well versed in the essential functional programming features of Python, and understand why and when functional thinking helps. You’ll also have all the tools you need to pursue any additional functional topics that are not part of the Python language.
What you will learn
- Use Python’s libraries to avoid the complexities of state-changing classes
- Leverage built-in higher-order functions to avoid rewriting common algorithms
- Write generator functions to create lazy processing
- Design and implement decorators for functional composition
- Make use of Python type annotations to describe parameters and results of functions
- Apply functional programming to concurrency and web services
- Explore the PyMonad library for stateful simulations
Who this book is for
The functional paradigm is very useful for programmers working in data science, but any Python developer who wants to create more reliable, succinct, and expressive code will have much to learn from this book.
No prior knowledge of functional programming is required to get started, though Python programming knowledge is assumed. A running Python environment is essential.
Table of Contents
- Understanding Functional Programming
- Introducing Essential Functional Concepts
- Functions, Iterators, and Generators
- Working with Collections
- Higher-Order Functions
- Recursions and Reductions
- Complex Stateless Objects
- The Itertools Module
- Itertools for Combinatorics – Permutations and Combinations
- The Functools Module
- The Toolz Package
- Decorator Design Techniques
- The PyMonad Library
- The Multiprocessing, Threading, and Concurrent.Futures Modules
- A Functional Approach toWeb Services
- A Chi-Squared Case Study
————————————————————–
ترجمه ماشینی :
پایتون همه چیز در مورد برنامه نویسی شی گرا نیست. یک روش ارزشمند برای تفکر در مورد طراحی کد را از طریق رویکرد تابع اول کشف کنید – و زمانی که نیاز به استفاده از آن دارید یاد بگیرید. اکنون با تمرینهای دقیق در پایان هر فصل!
خرید کتاب چاپی یا Kindle شامل یک کتاب الکترونیکی رایگان در قالب PDF است.
- بیاموزید چگونه، چه موقع و چرا عناصر کاربردی را در پروژه های خود بکار ببرید li>
- کاوش در ماژول های پایتون ضروری برای برنامه نویسی عملکردی، مانند itertools و functools
- بازبینی شده برای پوشش ویژگی های جدید از Python 3.10، تمرینهای پایان هر فصل، و موارد دیگر
توضیحات کتاب
< span> توسعه دهندگان به اندازه کافی مزایای برنامه نویسی عملکردی یا حتی چیستی آن را درک نمی کنند. نویسنده استیون لات این رویکرد را ابهام می کند و به شما می آموزد که چگونه روش کدنویسی در پایتون را بهبود ببخشید و در استفاده و عملکرد حافظه به دست آورید.
با شروع از اصول، این کتاب به شما نشان می دهد. نحوه به کارگیری تفکر عملکردی و تکنیک ها در طیف وسیعی از سناریوها، با مثال هایی که حول پاکسازی داده ها و تجزیه و تحلیل داده های اکتشافی متمرکز شده اند. شما یاد خواهید گرفت که چگونه از عبارات مولد، درک لیست و تزئینات به نفع خود استفاده کنید. البته لازم نیست طراحی شی گرا را به طور کامل کنار بگذارید – همچنین خواهید دید که چگونه شی گرایی بومی پایتون در ارتباط با تکنیک های برنامه نویسی تابعی استفاده می شود.
توسط در پایان این کتاب، شما به خوبی با ویژگی های برنامه نویسی تابعی ضروری پایتون آشنا خواهید شد و درک خواهید کرد که چرا و چه زمانی تفکر عملکردی کمک می کند. شما همچنین تمام ابزارهایی را که برای پیگیری موضوعات کاربردی اضافی که بخشی از زبان پایتون نیستند، در اختیار خواهید داشت.
آنچه خواهید آموخت
- از کتابخانههای پایتون برای جلوگیری از پیچیدگیهای کلاسهای تغییر وضعیت استفاده کنید
- اهرم داخلی توابع درجه بالاتر برای جلوگیری از بازنویسی الگوریتم های رایج
- نوشتن توابع مولد برای ایجاد پردازش تنبل
- از حاشیه نویسی نوع Python برای توصیف پارامترها و نتایج توابع استفاده کنید< /span>
- اعمال برنامهنویسی کاربردی در خدمات همزمان و وب
- کاوش کتابخانه PyMonad برای شبیه سازی های حالتی
< li>طراحی و پیاده سازی دکوراتورها برای ترکیب عملکردی
این کتاب برای چه کسی است
پارادایم عملکردی برای برنامه نویسانی که در علم داده کار می کنند بسیار مفید است، اما هر توسعه دهنده پایتون که بخواهد کد قابل اعتماد، مختصر و گویاتری ایجاد کند، چیزهای زیادی برای یادگیری از این کتاب خواهد داشت.
خیر. برای شروع به دانش قبلی برنامه نویسی تابعی نیاز است، اگرچه دانش برنامه نویسی پایتون فرض می شود. یک محیط در حال اجرا پایتون ضروری است.
فهرست مطالب
- درک برنامه نویسی تابعی
- معرفی مفاهیم ضروری عملکردی
- توابع، تکرار کننده ها و مولدها< /span>
- کار با مجموعه ها
- عملکردهای مرتبه بالاتر span>
- بازگشت ها و کاهش ها
- اشیاء پیچیده بدون حالت
- ماژول Itertools
- Itertools برای ترکیبات – جایگشت و ترکیب
- ماژول Functools
- بسته ابزار
- تکنیک های طراحی دکوراتور
- کتابخانه PyMonad span>
- ماژول های چند پردازشی، رشته ای و همزمان. خدمات
- مطالعه موردی Chi-Squared
tag : دانلود کتاب برنامه نویسی کاربردی پایتون: از یک رویکرد کاربردی برای نوشتن کد پایتون مختصر، رسا و کارآمد، ویرایش سوم استفاده کنید. , Download برنامه نویسی کاربردی پایتون: از یک رویکرد کاربردی برای نوشتن کد پایتون مختصر، رسا و کارآمد، ویرایش سوم استفاده کنید. , دانلود برنامه نویسی کاربردی پایتون: از یک رویکرد کاربردی برای نوشتن کد پایتون مختصر، رسا و کارآمد، ویرایش سوم استفاده کنید. , Download Functional Python Programming: Use a functional approach to write succinct, expressive, and efficient Python code, 3rd Edition Book , برنامه نویسی کاربردی پایتون: از یک رویکرد کاربردی برای نوشتن کد پایتون مختصر، رسا و کارآمد، ویرایش سوم استفاده کنید. دانلود , buy برنامه نویسی کاربردی پایتون: از یک رویکرد کاربردی برای نوشتن کد پایتون مختصر، رسا و کارآمد، ویرایش سوم استفاده کنید. , خرید کتاب برنامه نویسی کاربردی پایتون: از یک رویکرد کاربردی برای نوشتن کد پایتون مختصر، رسا و کارآمد، ویرایش سوم استفاده کنید. , دانلود کتاب Functional Python Programming: Use a functional approach to write succinct, expressive, and efficient Python code, 3rd Edition , کتاب Functional Python Programming: Use a functional approach to write succinct, expressive, and efficient Python code, 3rd Edition , دانلود Functional Python Programming: Use a functional approach to write succinct, expressive, and efficient Python code, 3rd Edition , خرید Functional Python Programming: Use a functional approach to write succinct, expressive, and efficient Python code, 3rd Edition , خرید کتاب Functional Python Programming: Use a functional approach to write succinct, expressive, and efficient Python code, 3rd Edition ,

نقد و بررسیها
هنوز بررسیای ثبت نشده است.