Blog

Programming insights to Storytelling, it's all here.

Ibrahim Diallo

May 2024

Functions over comments

Functions over comments

Code reads different than human languages. When we don't understand what the code is doing, we write comments in our code in the form of human languages. But the language we speak and write every day can be bloated or ambiguous. The human brain is just really good at extracting context. When you are trying to understand what a snippet of code does, a story is rarely the best method. However, if the confusing code is wrapped in properly named functions, half of our questions are already answered.

JS Tip of the day

How to use pushState without breaking the back button

I find it very annoying when I use an instant search field and each key I press creates a new state. What this means every single time I hit the back button, it…

Photography