reading-notes

Reading Class 09 Functional Programming

Why is this important?

Functional Programming Concepts

  1. “Functional programming is a programming paradigm — a style of building the structure and elements of computer programs — that treats computation as the evaluation of mathematical functions and avoids changing-state and mutable data” source

  2. A pure function is a function that is determined by it’s parameters and doesn’t have side effects.

  3. The benefits of a pure function are that if you continue to pass the same parameters you are guaranteed a certain return.

  4. “When data is immutable, its state cannot change after it’s created.” source;

  5. Referential Transparency is when a function does not depend on state in the application and only requires input into its parameters.

Node.JS Tutorial for Beginners

  1. A module is like a component: A set of code that has a particular job

  2. Require allows you to use certain functionalities globally(in different) filies

  3. require('./fileYouWant')

  4. You have to module.exports = whatever you want to make available.

Questions I have