View profile

Testing strategy on legacy code and learning Rust with TDD ๐Ÿ”ญ - Issue #9

Domenico Luciani
Domenico Luciani
Testing strategy with legacy code ๐Ÿง‘โ€๐Ÿ’ป๐Ÿ‘ด
This month Iโ€™ve learned about the Mikado method, a great way to work with legacy code safely.
Essentially, through some small iterative steps, you will be able to explore the legacy codebase and assess what should be done to add new functionality.
This approach could also be used during an Exploratory Refactoring; neat, eh?
The Mikado Method: A Great Help to Work With Legacy Code โ€“ Improve & Repeat
How Certificates and PKIs work ๐Ÿ”
During one engagement I had to work massively with certificates, keystores, PKIs, HSM, etc. and at that time I needed an introduction to all these concepts so I started looking around when I finally found this article. It is a very comprehensive article about PKIs, how the certificateโ€™s world works and itโ€™s worth a read once in your life to at least understand whatโ€™s going on under the hood of your browser and how certificates protect your privacy.
Everything Public Key Infrastructure (PKI) - The Missing Manual | Smallstep Blog
TDD Katas ๐Ÿ“š
Learning a new language can be cumbersome for many reasons and looking for a way to do it efficiently I discovered that practising TDD helps me to do it, faster.
My colleague Marco Garogalo pointed me out to a website called TDD Buddy where you can find a nice katas collection that you can solve using TDD.
I decided to spend some time trying to learn Rust solving those katas, how is it going? I actually completed 2 katas with just the Rust doc and TDD. ๐ŸŽ‰
Every time I have to refactor, it forces me to dig deeper into the Rust world, it forces me to use proper structures or rust functions.
I can literally see my understanding evolving over time, making small controlled changes to my codebase focusing only on what matters, safely.
See ya ๐Ÿ”ญ
Thank you for reading this issue โœจ
If you liked it donโ€™t forget to suggest it to to your friends or share it on your socials.
See you โ˜„๏ธ
Did you enjoy this issue? Yes No
Domenico Luciani
Domenico Luciani @dlion92

Senior Software Engineer @VMware ~

Ex @Thoughtworks, @XPeppers ~

Traveller and curious by design ~ he/him

Extreme Programmer passionate about best practices, system design, security and IoT.

In order to unsubscribe, click here.
If you were forwarded this newsletter and you like it, you can subscribe here.
Created with Revue by Twitter.