Functional Programming with PHP
Offered By: LinkedIn Learning
Course Description
Overview
Learn functional programming with PHP. Discover how to take up this popular programming paradigm to write more readable, maintainable code.
Syllabus
Introduction
- A functional approach to transform code
- What you should know
- Installing and running PHP
- Why use functional programming?
- What is declarative programming?
- Immutability in functional programming
- Separation of data and functions
- First-class functions
- Functions as data, part 1
- Functions as data, part 2
- Passing functions as arguments
- Returning functions
- Closure
- Higher-order functions
- Arrow functions in PHP
- Working with arrays, functionally
- The spread operator and array_merge
- Mapping
- Filtering
- Passing keys to array functions
- Sorting
- Custom sorting behavior with usort
- Reducing
- Combining array functions
- Challenge: Recreating the array_map function
- Solution: Recreating the array_map function
- Advanced functional concepts
- Partial application and currying
- Recursion
- Composition, part 1
- Composition, part 2
- Challenge: Property getter
- Solution: Property getter
- Challenge: Tallying votes
- Solution: Tallying votes
- Challenge: Value or array
- Solution: Value or array
- Next steps
Taught by
Shaun Wassell
Related Courses
Introduction to Functional ProgrammingDelft University of Technology via edX Introduction to Office 365 Development and APIs
Microsoft via edX Web Development and Design using Wordpress
California Institute of the Arts via Kadenze Build a Basic PHP Website Course (How To)
Treehouse Web Applications for Everybody
Independent