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

Not all arrays are arrays

You modified the Array object to include some of your custom methods. You create an array, you use the method and get an error: Array.prototype.loop = function…

Photography