You may be wondering what’s the topic of this article. Perhaps you spotted the reference to Kendrick Lamar’s How Much A Dollar Cost.
So, what do Kendrick’s song and bytes have in common? Nothing, to be honest.
This whole article’s a mere storytelling experiment. Now, without further ado, let’s begin our story.
How much a byte really cost?
The question is detrimental, paralyzin’ my thoughts
It was 1996 — June the 4th precisely — and the European Space Agency was ready to launch a brand new rocket named Ariane 5 from its base in Kourou, French Guiana. …
The CIA triad is a widely used acronym in information security standing for:
These three are the fundamental properties of information to protect.
Thinking about these three when designing for security is crucial to build a robust system.
Let’s briefly analyze them in the order proposed by the acronym.
Confidentiality is the property of data to remain secret between the sender and the receiver.
The most mechanism to maintain confidentiality is encryption.
When you encrypt a message, you obscure it by transforming it into a seemingly meaningless one.
After encryption, the only way to restore a message…
Prerequisites: having Python installed on your pc or being registered for Google Colaboratory.
First of all, create a new directory for the project (if you use Google Colaboratory skip to step 1)
mkdir my_bar_chart_race
And create a new virtual environment, and activate it:
python3 -m venv venv
source venv/bin/activate
If you haven’t already, install pandas
pip3 install pandas
Install the library we’ll use to create the bar chart race named, you won’t guess it, bar_chart_race
pip3 install bar_chart_race
Now that we have the necessary libraries installed, let’s load our data.
In this tutorial, we’ll create a bar chart animation of…
Git is a DVCS: Distributed Version Control System.
Basically, with git you and your team can cooperate to create, modify, extend, maintain code working in parallel on the same codebase, without worrying about “breaking” the code.
When you want to develop a project using git you create a repository — a directory containing your project’s code and a .git subdirectory used by git itself to keep track of everything.
Note: repositories are often called repo for brevity.
The command to initialize a folder is:
git init
to initialize the current folder, or
git init <directory_name>
to initialize a specific directory.
…
Arrow functions are those weird functions using a funny syntax mimicking how humans write or draw them on paper:
(param1, param2) => { /* do something */ }
Are they just a shorter way to write function, or is there more?
The answer is yes, they’re mostly a shorter way to write functions, but there are some little differences.
The first thing you may note from the above snippet is that arrow functions haven’t got a name — they’re anonymous.
For instance, you cannot write something like this:
functionName(param) => { /* do smth */ }
But you can get…
MDN web docs give this great definition of what a closure is:
A closure is the combination of a function bundled together (enclosed) with references to its surrounding state (the lexical environment). In other words, a closure gives you access to an outer function’s scope from an inner function. In JavaScript, closures are created every time a function is created, at function creation time.
This example comes from this series about closures that I’ve made, but with a simpler syntax to be more beginner-friendly, and with some improvements, because in series you must be short:
In this example, the…
Being forced at home due to Italy’s lockdown, I had to find something to do, then finally someone gave me the idea: why don’t you create a SIR Model simulator? He was suggesting to create something like the simulations you can find here. The idea was interesting so I decided to give it a try (here’s the final result, and here’s the code).
Computer Engineering student at the University of Bologna