I recently had the privilege of introducing frontend testing to our code base at work. With 5 engineers working on different parts of the product at any given time, it finally made sense to add automated tests. I can foresee this helping us cut down time spent on debugging and improving the overall quality of the product.
Because our frontend stack was React and Backbone, we needed a test library that can test React components. Some deliberation later, we decided to go with Jest (by Facebook and used internally at Facebook) and Enzyme (by Airbnb and also used internally at Airbnb).
I was struggling quite a lot today with an algorithm challenge on LeetCode called “Generate Parentheses“. It was hard enough that after trying for 2 hours, I decided it’d be for the better to look for solutions and learn from them.
But the solution I found, which was good, was not easy to understand at all! As you can imagine, I felt pretty dumb; here I was, admitting defeat and looking at the solution, and I couldn’t even understand that!
Ok, I did understand it in the end, but only after I put my self-loathing aside and focused on breaking down the recursive algorithm staring at my face. There, I suddenly recalled a great quote from Derek Sivers that I’d heard on the Tim Ferriss Show podcast:
“If [more] information was the answer, then we’d all be billionaires with perfect abs.” – Derek Sivers
Information is useless until we sit down and make an effort to make sense of it. The key to crossing the chasm is action, not information.
I’m not doing this for the sake of tradition or anything like that. Instead, I’d just like to make use of the pensiveness that comes for free at the end of the year to do some visualisation of what the new year is going to be like for me, my wife, and my dog.
Hello, friend. If you’re here for an actual guide on what to do when your bike runs out of fuel, skip ahead to the “What to do when your bike runs out of fuel” section below. I’ll be recounting my own experience today first in the proceeding section.
Today after knocking off from work, I hopped on my Honda Shadow 400 and rode away from the office. I was ready to go home to my wife and dog after a long day at work.
Three minutes into the 30 minutes journey though, I noticed my engine getting softer… and I immediately knew that it was running out of fuel. My eyebrows grew heavy.