Ostash.Dev

Code is a poetry

Recent posts

Oct 3, 2020
A value mutability Mutating a value. When you receive a data structure that is in its identity mutable, like an array or object, the best thing to do is to always assume that it is a read-only data structure and that you are not allowed to mutate it.…
Sep 17, 2020
Higher order functions What is a higher order function(HOF)? If a function receives as its input one or more functions or/and returns the function we can called it HOF.…
Aug 20, 2020
Currying Currying is an act of taking one function that receives more than one argument and refactoring it so it becomes HOF(a higher order function) that returns series of functions each accepting only one argument and only evaluating once we receive our final argument.…
Jul 8, 2020
Arity Before we explain what arity is, let’s make a clear distinction between parameters and arguments in a function. The parameter is a variable declared in the function expression.…
Jun 15, 2020
Functional purity What is a function? For the function to be a function it has to return something, otherwise is a procedure. Function is a semantic relationship between input and computed output.…