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

Use the triple equal for conditions to avoid type coercion

JavaScript comparison symbol does not work in the same fashion as other languages. The double equal symbol == performs something called type coercion before doi…

Photography