Everyone in the software industry wants to refactor their code yet very few are willing to do it. New feature requests keep coming and we are adding new code to the code base. The code base grows exponentially. The more cup of coffee we intake, the more lines of code we are adding. After a…
Author: alaminopu
The easiest way to profile your Python code
Recently, we were testing all the endpoints of one of our products to find out Every endpoint is returning the expected result. The response time of a particular endpoint should be < 300ms Improve existing code base based on the result. While testing we found one of the endpoints taking more time than we expected….
How to check background image loading progress using JavaScript
A few days ago, One of my friends asked me a question about image loading on a page. When he asked me this question, at first, I thought he was asking about just tracking the progress of an HTML image element. Later he explained to me that he wanted to track the progress of an image load and…
Promises in JavaScript, The unrevealed
Every weekend, I like to travel different places. Two of my friends always help me to arrange weekend tours. Before every tour, I ask one of my friends to buy tickets. My friend promises me he will go and buy tickets for the tour. He creates a promise with me when he leaves. If my…