Название: Object-Oriented vs. Functional Programming Автор: Richard Warburton Издательство: O’Reilly Media ISBN: 9781491933428 Год: 2016 Страниц: 45 Язык: английский Формат: pdf (true), djvu Размер: 10.1 MB
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 report makes the case that a lot of the constructs of good object-oriented design also exist in functional programming. In order to make sure that we’re all on the same page, Chapter 1 explains a little bit about functional programming and the basics of lambda expressions in Java 8.
In Chapter 2, we take a look at the SOLID principles, identified by Robert Martin, and see how they map to functional languages and paradigms. This demonstrates the similarity in terms of higher-level concepts.
In Chapter 3, we look at some behavioral design patterns. Design patterns are commonly used as a vocabulary of shared knowledge amongst object-oriented programmers. They’re also often criticized by functional programmers. Here we’ll look at how some of the most common object-oriented design patterns exist in the functional world.
Most of the examples in this guide are written in the Java programming language. That’s not to say that Java is the only language that could have been used or that it’s even a good one! It is perfectly adequate for this task though and understood by many people. This guide is also motivated by the release of Java 8 and its introduction of lambda expressions to the language.
Скачать Object-Oriented vs. Functional Programming
Functional Programming for Java Developers Название: Functional Programming for Java Developers Автор: Dean Wampler Издательство: O’Reilly Media, Inc. Год: 2011 Формат: PDF Страниц: 88 Размер:...
Pro Functional PHP Programming Название: Pro Functional PHP Programming: Application Development Strategies for Performance Optimization, Concurrency, Testability, and Code Brevity...