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 get an element position on the page

This used to be a painful thing to find on the page. Well it wasn't but almost everyone suggested you use a hacky way to find the correct position of an element…

Photography