Object-Oriented vs. Functional Programming - Bridging the Divide between Opposing Paradigms

Object-Oriented vs. Functional Programming - Bridging the Divide between Opposing Paradigms

简介:

功能程序员和面向对象程序员之间的分裂实际上是一个错误的二进制文件。是的,第一个小组认为FP在多核世界中是优越的,而第二个小组坚持认为OOP在将技术解决方案与业务问题相匹配方面更好。然而,正如O'Reilly的这份报告所解释的那样,这不是一个非此即彼的命题。本书讨论了这些编程范例之间的相似之处,并指出FP和OOP实际上都在向彼此靠近。一个突出的例子是在Java和其他OOP语言 (如C # 、C和Swift) 中使用lambda表达式。通过以下用Java编写的示例,您将:

了解lambdas (又名匿名函数) 如何使OOP语言更适合处理并行性和并发性了解SOLID-OOP的五个编程基本原则如何映射到函数式语言和范式探索一些最常见的OOP设计模式-以及它们在功能世界中的存在方式

英文简介:

The schism between the functional and object-oriented programmers is really a false binary. Yes, the first group argues that FP is superior for a multicore world, while the second insists that OOP is better at matching technical solutions to business problems. However, as this O'Reilly report explains, this is not an either-or proposition.

This book discusses similarities between these programming paradigms and points out that both FP and OOP are actually moving closer toward one another. One prominent example is the use of lambda expressions in Java and other OOP languages such as C#, C++, and Swift.

By following examples written in Java, you will:

Learn how lambdas (aka anonymous functions) make OOP languages better suited for dealing with parallelism and concurrencyUnderstand how SOLID—OOP’s five basic principles of programming—map to functional languages and paradigmsExplore some of the most common OOP design patterns—and how they exist in the functional world

书名
Object-Oriented vs. Functional Programming - Bridging the Divide between Opposing Paradigms
译名
面向对象与函数式编程——弥合对立范式之间的鸿沟
语言
英语
年份
2016
页数
46页
大小
1.52 MB
标签
  • 函数式编程
  • 面向对象编程
  • 下载
    pdf iconObject-Oriented vs. Functional Programming - Bridging the Divide between Opposing Paradigms.pdf
    密码
    65536

    最后更新:2025-04-12 23:54:37

    ←The Java Web Scraping Handbook

    →High-Performance Java Platform Computing: Multithreaded and Networked Programming