Reviews, not Resolutions

Reviews, not Resolutions

If you have read my older articles, you will know that I am not a fan of doing New Year’s Resolutions. I do reviews instead. For me, doing resolutions are pointless as it means:

Change can only happen at a “special” date – the common trap of people signing up for gym classes in January, and then slowly dropping off in the following months until they cancel their membership. And then having the mindset of “I’ll do better next year!“, waiting for the year-end, and the cycle repeats again. Change should start the moment you decide to do it. Continue Reading

What if you already won?

What if you already won?

When a person can’t find a deep sense of meaning, they distract themselves with pleasure.

Viktor E. Frankl

Many of us, after a long hard day of work, seek to “unwind” by doing mind-numbing things: watching videos online, playing games, or endlessly scrolling social media. Our jobs and our work do not provide us with a deep sense of meaning, and so we crave distraction at the end of it. Continue Reading

Shadow DOM

Shadow DOM

Our team was tasked to create an embeddable script (widget) that displays functionality from our web application. When released to the public however, we found that the interface was not looking right in some cases. It turned out that some pages that embedded our script was able to affect the styles of our widget with its own CSS declarations.

Our resident front-end guru recommended that we use the Shadow DOM for the widget implementation. This will essentially shield our widget’s styles from being overridden by the page that embedded it. I have not used Shadow DOM previously so this piqued my curiosity. Back in the day, we would use iframes to implement something like this. Continue Reading