© Rob Aley 2017

Rob Aley, Pro Functional PHP Programming, https://doi.org/10.1007/978-1-4842-2958-3_6

6. Managing Business Logic with Functions

Rob Aley

(1)Oxford, UK

In this chapter, you’ll look at some other common uses for functional programming. You’ll start by looking at how functional code can help you to manage the business logic implemented in your programs. You’ll then look at what event-based programming is and how functional programming can help you deal with the complexities of managing incoming events and keep your data flows straight. Finally, you’ll take a quick look at asynchronous programming and see why functional programming is a useful tool in that domain too.

Managing Business Logic

Most (useful) programs perform a multitude ...

Get Pro Functional PHP Programming: Application Development Strategies for Performance Optimization, Concurrency, Testability, and Code Brevity now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.