Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Functional Programming Principles

Alfin S.
December 22, 2023
21

Functional Programming Principles

Talk about core principles of functional programming

Alfin S.

December 22, 2023
Tweet

Transcript

  1. What’s up! Hello! I’m Alfin I write JavaScript, Python, Elixir

    FP enthusiast I also like to study AI & machine learning
  2. Think Different(ly) They must be very small They must do

    one thing only (single responsibility principle) They must have few arguments as possible (rules of three) They should not have side effects They should avoid flag arguments that create two internal paths in a function
  3. First-Class Functions Functions are treated as first-class citizens, meaning they

    can be assigned to variables, passed as arguments, or returned from other functions.