Today A long time ago I implemented the CPF (Physical Persons Register) validation algorithm in javascript and rust to demonstrate how it is possible to not execute a single variable declaration (considering that receiving a parameter does not count as a declaration) using the method chaining programming style.
This week When I started writing this article a crazy idea came to me: would it be possible to implement a relational database using only map, filter and reduce?
The answer is: It is possible, and my implementation can be found in this repository. Keep in mind that this implementation is just a creative exercise, so don't blame me for it not being a complete database.
Now let's get straight to the point: The goal of this article is to explain through examples how to use filter, map and reduce in common situations a programmer faces.
...keep readingHi, my name is Luiz Paulo, I'm a bachelor in information systems at UEMS and I've created this space to write about system architecture, programming and system administration by use of rust, javascript, shellscript and php as programming languages as well as linux and docker as technology.
...keep reading