Posts tagged functional programming

Functional Programming – How to Write Functional Code in PHP

  • 09
  • May

Date: 09th May 2013 Author: admin Categories: PHP 0

Tags: , , , ,

Functional Programming - How to Write Functional Code in PHP

Functional Programming – How to Write Functional Code in PHP

Functional programming can be defined in simple terms as a programming paradigm that do not change the state of a program instead it uses pure functions. A pure function is a function that has the ability to accept a value and return another value without changing the input supplied to it. It is characterized by its ability to support functions that are of high order. This implies that these functions take and return other functions. Also functional programming supports systems that are elaborated in nature, that is, they can prevent the issue of null pointers that is a problem in object oriented programming. A programming paradigm that is functional has the following attributes: do not alter the states which make parallelism easier, deals mostly with a function which is the smallest unit hence enhances readability of code, has deterministic functions that enable stability of a program.
Read more