article

what is functional programming

[WHAT]

  1. [] what is funcitonal programming - by Don Sagrott, founder @ sospep.com -
    1. [] functional programming is a programming paradigm where programs are designed/constructed of mathematical functions
    2. [] functional programs avoid changing state
    3. [] functional program avoid muteable data
    4. [] pure functions ( that have no side effects)
  2. [] what is functional programming?
    1. [] a programming pardadigm where computation is treated as the evaluation of mathematical functions, avoids changing state and muteable data,
    2. [] a declarative (versus an imperative) programming paradigm, where programming is done with expressions or declarations VS statements
    3. [] In functional code, the output value of a function depends only on its arguments, so calling a function with the same value for an argument always produces the same result. This is in contrast to imperative programming where, in addition to a function's arguments, global program state can affect a function's resulting value. Eliminating side effects, that is, changes in state that do not depend on the function inputs, can make understanding a program easier, which is one of the key motivations for the development of functional programming.
    4. [] key concepts include [] pure functions, [] higher order functions,
  3. [] what is a functional programming language?
    1. [] some examples of FP languages include - lisp, scheme, clojure, haskell, f#
    2. [] state of fp, where lisp is the granddaddy, clojure is the popular, f# is msft's baby

[WHY]

  1. ]

[WHERE]

  1. ] READ THE FULL ARTICLE
    1. ] this is it

[WHEN]

  1. ] 2019-11-05

[EXAMPLE]

  1. ]

[HOW-TO]

  1. ]

[REFERENCE]

  1. [] table of contents - BOOK -language-javascript (this)
  2. [] https://en.wikipedia.org/wiki/Functional_programming
  3. [] g?= compare declarative and imperative programming
  4. [] https://tylermcginnis.com/imperative-vs-declarative-programming/
[double]
[] function double(arg){ elms =[]; arg.forEach( (elm) => { elms.push(elm *2)} ); return elms;};
[add]
[] function add2(args){const total = (accumulator, currentValue) => accumulator + currentValue;  return args.reduce(total) };

 

Details Photos Edit more

Details

ID: 5760

NAME: 001-what-is-functional-programming

DESCRIPTION: what-is-functional-programming - by Don Sagrott, founder @sospep.com - an overview look at the functional programming paradigm.

AUTHOR: article.author/s

EDITOR: article.editor/s

PUBLISHER: article.publisher/s

STATUS: Write

PRIORITY: -5

OWNER ID: 75

Content Photos Edit more

photos

page_photo

actions

Email Email-Owner SMS and