Tagged “functional-programming”
-
TIL writing a clean function testing functional-programming
Write an assert at the beginning of the function. Then, write down all the conditions that must be met.
-
TIL about the proposed pipe operator javascript functional-programming
In functional programming, you chain functions to provide a result. Witht he Pipe operator, it can look like this: const total = money |> removeOneDollar |> addTwoDollars |> addFiveDollars
-
TIL Avoiding dependencies in your helper functions helpers javascript testing functional-programming
Impure functions for helpers? What is this... 1999?
-
TIL mutations and how to sort without mutating javascript functional-programming arrays
Mutation isn't bad. It CAN cause side effects and ruin your life. There's times when you want to have your objects mutate. For everything else, switch to functional programming and passing the data.
-
TIL Pure and Impure Functions functional-programming javascript clean-code
A important piece of Functional Programming is creating Pure Functions. NO SIDE EFFECTS
See all tags.