← All projects/4 - Connecting to the World/Javascript - Functional programming

Guide: Javascript - Functional programming

Description

In programming there are many “paradigms”,  which (put simply) define general ways of doing things in your code. In web development it's safe to say that the biggest player are Functional programming and Object-oriented programming, with the first getting more prominence in the current days, at least in the front-end side.

It is important to understand both, but we will take the Functional Programming route to dive deeper in this Guide. Do not stop yourself from going further and studying Object-oriented programming as well!

This Guide's deliverable is an article, which you will write and share. But the knowledge you acquire here should be transported and used in all subsequent work in the course.

Knowledge

  • Understand what is a programming paradigm
  • Understand what is Functional programming
  • Understand what is Object-oriented programming
  • Understand what are pure functions

Skills

  • Be able to create code using the Functional programming paradigm

Topics

  • What is Functional programming
  • Functional programming vs Object-oriented programming
  • Pure functions
  • Function composition
  • Higher-order functions
  • Array methods .find(), .forEach(), .filter(), .map(), .reduce()

Action Points

  • Read up on Programmign paradigms as a whole
  • Find out the main differences between Functional programming and Object-oriented programming in Javascript
  • Learn what are pure functions
  • Exercise array methods .find(), .forEach(), .filter(), .map(), .reduce() in CodePen or similar

Deliverable: Technical Article

  • Submit:
    • Article’s public URL
  • Minimum requirements: 
    • Technical article about Functional Programming
    • Add a part to explain the difference between Object-Oriented Programming and Functional Programming
    • Add code examples in Functional Programming