Malexandre
Thoughts from a random software engineer

Code

Keep Learning and Having Fun

Code, Python, Todoist, HackerRank, LeetCode · Published the 22 Oct 17
874 words · 5 min read
I’ve been coding for a long time, my first steps were in the very late 90s. I became serious about it only around 2004. I started being paid for my work since 2008, and working full time since february 2010. I started by being heavily invested in C++, then move to web development in 2012, and still going at it today. And what’s awesome is that I’m still having so much fun.
Read more →

Mocking Redis & Expiration in Python

Code, Tests, Python, Redis · Published the 08 Oct 17
1062 words · 5 min read
Recently, I had to use Redis for the first time. I heard of it, but never really played with it. But this time I had no choice, and I don’t regret it at all, Redis is awesome. But having a new component means that I had to discover from scratch how to test it. I tried a few libraries, but one seemed really easy to use, at least to the point where I wanted to test that I was correctly using the expiration time for my data.
Read more →

Node Web App Without Database

Blog, Code, Docker, Hugo, Live-Hugo, OVH, Node, Python · Published the 01 Oct 17
822 words · 4 min read
As I said in an earlier post, I’m currently working on a Node/Preact app to manage my Hugo blog without having to use my computer & editor. Since I’m alone on this, with no deadline, I can take my time, try different things, etc. At first, I was going to use a database to remember the files on the disk, make searching through them faster. But I decided to test if it was viable to manage everything without a database.
Read more →

Basics of Encryption & Ciphers

Code, Cryptography, Python, AES · Published the 16 Sep 17
1258 words · 6 min read
Trying to use a library to encrypt your data can be a lot to handle when you have no experience or knowledge about their inner workings. There is more than just selecting a cipher algorithm like Blowfish or AES. You also have to chose a mode, manage an initialization vector, and sometimes even more. As a memento, but also to help others, I will try to explain some of those concepts, and how to use them with PyCrypto, the main encryption library in Python.
Read more →

Git Prompt With Go

Code, Bash, Git, Go · Published the 02 Sep 17
1038 words · 5 min read
Some years ago, I wrote a custom git prompt with bash. I upgrade it a few times to fix bugs or add some features, but more and more I was discourage to rework it only because it was in Bash. My knowledge of Bash is slowly decreasing as now I make most of my scripts in Python or Javascript, and having to remember everytime how to do simple things like doing a loop or extracting values from a string demotivates me every time.
Read more →

From AngularJS to Preact

Code, AngularJS, React, Preact · Published the 24 Aug 17
892 words · 5 min read
For the last 5 years, I’ve been working at LumApps with AngularJS. I’ve done lots of projects, from simple websites to powerful applications like our products. I also built LumX with the help of our lead designer. But after all this time, I now want to switch to another one. Why I want to stop using AngularJS AngularJS is a great framework. It helped me become a better Javascript developper, helped our business grow at LumApps, and has awesome features.
Read more →