Gabriele Ferro Home

Functional Programming - Part. 2

JavaScript is an object-based language based on prototypes, rather than being class-based.

JavaScript is a bit confusing for developers experienced in class-based languages (like Java or C++)

Mozilla

Today I started studying Functional Programming with freeCodeCamp again.

I had some initial difficulties with the syntax: too many brackets!

This code block extracts the titles of films with a rating higher than 8

Functional Programming is based on some basic principles that can be summarized with : DO NOT MODIFY ANYTHING.

Use a function like a magical black box.

For this reason, it becomes imperative to understand the concept of Passing by Value vs Passing by Reference.

Avoid methods like push and splice because they modify the initial array. Prefer concat and slice instead.

I start writing the arrow functions with confidence and I begin to understand the various nuances of this.

Day 42: 12 September 2020

**Today’s Progress:**

14 / 24 Challenges completed.

The first challenge was more time consuming than I imagined. For this reason.

This is an implementation of the map method on a prototype

**Thoughts:**

**Link to tweet:**

[twitter-follow screen_name='20Gabriele20']

July 2024
MTWTFSS
1234567
891011121314
15161718192021
22232425262728
293031 

Archives

Gabriele Ferro Home
Copyright © Ferro Gabriele. All rights reserved.