Functional Programming
The building block of functional programming is a function
A function is an abstraction that receives an input and produces an output
f(x) ⇒ y
A pure function is a function that returns the same return for the same input.
Pure functions are easy to test as you don’t have to mock external parts and there is no side effects.
You can functional programs composing functions.
Types define which values are valid for a given variables or function argument or return.
We can only compose functions that one
Shares tags with
- Abstractionsblock An abstraction is something that helps us An abstraction can help build concrete things twitter thread React is the abstraction to build UI using components D3 is the low…
- Clojureconsole.log (print <variable) (require [taoensso.faraday :as far (require [clojure.tools.namespace.repl :refer [refresh docker run -p 8888:8000 amazon/dynamodb-local -jar…
- DichotomyDichotomy is to divide the whole in 2 parts We have many dichotomies in life and in code server/client we want to do some work on the server and some work in the client sync/async…
- EntropyCode entropy adding a new prop to your react component increases entropy adding a new parameter to your funciton increases entropy more code more entropy more parameters more…
- how to teach programminga DSL for finance excel spreadsheets are code the best part of programming is finding mistakes
Sign in with GitHub to reply.
Select any passage to quote it.
Comments