In this article, we are going to:
We want to route requests to custom urls (like
my-app.local) to specific web-servers. This is the role of a reverse proxy.
We are going to use nginx as a reverse-proxy. We could manually setup and configure nginx, but this has some…
In this article, we are going to
- install Docker on your computer.
As an example, we’ll take a very simple Node.js / Express / MongoDB aplication. Here is the package.json of this app:
"dev": "nodemon ./index.js",
"start": "node ./index.js"
It has two scripts:
Functional programming is the process of building software by composing pure functions, avoiding shared state, mutable data, and side-effects.
Imperative code has a few problems:
With a large codebase, this is difficult to maintain and test. Functional programming aims to solving these problems.
So let’s refactor the imperative code from the previous article and use concepts related to functional programming: pure functions, closures and functions composition.
Given an array of tuples representing the coordinates of a…