楼主: yunnandlg
742 2

Functional Python Programming:Create succinct and expressive implementations [推广有奖]

版主

但问耕耘,莫问收获

院士

0%

还不是VIP/贵宾

-

威望
0
论坛币
251627 个
通用积分
578.6351
学术水平
1667 点
热心指数
1686 点
信用等级
1650 点
经验
173131 点
帖子
1939
精华
0
在线时间
2580 小时
注册时间
2010-8-28
最后登录
2024-4-25

楼主
yunnandlg 在职认证  学生认证  发表于 2019-5-23 08:40:55 |只看作者 |坛友微信交流群|倒序 |AI写论文
相似文件 换一批

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币

What this book covers



Chapter 1, Introducing Functional Programming, introduces some of the techniquesthat characterize functional programming. We'll identify some of the ways to mapthese features to Python, and finally, we'll also address some ways that the benefitsof functional programming accrue when we use these design patterns to buildPython applications.




Chapter 2, Introducing Some Functional Features, will delve into six central featuresof the functional programming paradigm. We'll look at each in some detail tosee how they're implemented in Python. We'll also point out some features offunctional languages that don't apply well to Python. In particular, many functionallanguages have complex type-matching rules required to support compilationand optimization.




Chapter 3, Functions, Iterators, and Generators, will show how to leverage immutablePython objects and generator expressions, and adapt functional programmingconcepts to the Python language. We'll look at some of the built-in Pythoncollection and how we can leverage them without departing too far fromfunctional programming concepts.




Chapter 4, Working with Collections, shows how we can use a number of built-inPython functions to operate on collections of data. This section will focus on anumber of relatively simple functions such as any() and all(), which willreduce a collection of values to a single result.




Chapter 5, Higher-order Functions, examines the commonly used higher orderfunctions such as map() and filter(). The chapter also includes a number of otherfunctions that are also higher-order functions, as well as how we can create our ownhigher-order functions.




Chapter 6, Recursions and Reductions, shows how we can design an algorithm usingrecursion and then optimize it into a high performance for loop. We'll also look atsome other reductions that are widely used, including the collections.Counter()function.




Chapter 7, Additional Tuple Techniques, shows a number of ways in which we can useimmutable tuples and namedtuples instead of stateful objects. Immutable objectshave a much simpler interface: we never have to worry about abusing an attributeand setting an object into some inconsistent or invalid state.




Chapter 8, The Itertools Module, examines a number of functions in the standardlibrary module. This collection of functions simplifies writing programs that dealwith collections or generator functions.




Chapter 9, More Itertools Techniques, covers the combinatoric functions in the itertoolsmodule. These functions are somewhat less useful. This chapter includes someexamples that illustrate ill-considered uses of these functions and the consequencesof combinatoric explosion.




Chapter 10, The Functools Module, will show how to use some of the functions inthis module for functional programming. A few of the functions in this moduleare more appropriate for building decorators, and are left for the next chapter.The other functions, however, provide several more ways to design andimplement function programs.




Chapter 11, Decorator Design Techniques, shows how we can look at a decorator asa way to build a composite function. While there is considerable flexibility here,there are also some conceptual limitations: we'll look at ways in which overlycomplex decorators can become confusing rather than helpful.




Chapter 12, The Multiprocessing and Threading Modules, points out an importantconsequence of good functional design: we can distribute the processing workload.Using immutable objects means that we can't corrupt an object because of poorlysynchronized write operations.




Chapter 13, Conditional Expressions and the Operator Module, will show some ways inwhich we can break out of Python's strict order of evaluation. There are limitations towhat we can achieve here. We'll also look at the operator module and how the operatormodule can lead to some slight clarification of some simple kinds of processing.




Chapter 14, The PyMonad Library, examines some of the features of the PyMonadlibrary. This provides some additional functional programming features. Thisalso provides a way to learn more about monads. In some functional languages,monads are an important way to force a particular order for operations that mightget optimized into an undesirable order. Since Python already has strict ordering ofexpressions and statements, the monad feature is more instructive than practical.




Chapter 15, A Functional Approach to Web Services, shows how we can think of webservices as a nested collection of functions that transform a request into a reply.We'll see ways in which we can leverage functional programming concepts forbuilding responsive, dynamic web content.Chapter 16, Optimizations and Improvements, includes some additional tips onperformance and optimization. We'll emphasize techniques like memoizationbecause they're easy to implement and canin the right contextyield dramaticperformance improvements.



Functional Python Programming:Create succinct and expressive implementations.epub (1.31 MB)


Functional Python Programming:Create succinct and expressive implementations.pdf (2.33 MB, 需要: 1 个论坛币)





二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:Programming Implementa Functional implement function

已有 2 人评分经验 学术水平 热心指数 信用等级 收起 理由
cheetahfly + 100 奖励积极上传好的资料
宽客老丁 + 1 + 1 + 1 精彩帖子

总评分: 经验 + 100  学术水平 + 1  热心指数 + 1  信用等级 + 1   查看全部评分

Cause morning rolls around and it's another day of sun.
清晨不久就会来到,又是阳光明媚的一天。
沙发
宽客老丁 发表于 2019-5-23 11:57:49 |只看作者 |坛友微信交流群
虫响灯光薄,宵寒药气浓。

君怜垂翅客,辛苦尚相从。

使用道具

藤椅
cometwx 发表于 2019-6-14 17:01:41 |只看作者 |坛友微信交流群
感谢分享

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-25 16:10