reading_notes

Functional Programming Concepts

What is functional programming?

Functional programming means using functions to the best effect for creating clean and maintainable software usually described as a programming paradigm.

What is a pure function and how do we know if something is a pure function?

Pure functions returns the same result if given the same arguments, It does not cause any observable side effects

What are the benefits of a pure function?

Easy to: combine, test, and debug.

What is immutability?

Unchangeable data.

What is Referential transparency?

When a function consistently yields the same result for the same input, it is referentially transparent. (pure+immutable)


Node JS Tutorial for Beginners #6 - Modules and require()

What is a module?

packaging mechanism that enables you to package an application or API as a separate Javascript module.

What does the word ‘require’ do?

introduced a new module system in which a module-info. (look like import in React)

How do we bring another module into the file the we are working in?

Requires module directive specifies that this module depends on another module

What do we have to do to make a module available?

after describe the file name and path, Add the code, compile, and run it


Things I want to know more about

Of course more about node.js and modules and Functional Programming !