2024-02-12・3 minutes
Synchronizing timers in React
Problem statement This blog post would be helpful if you have two components in different parts of your app that trigger some action on a given interval, but those two intervals should be synchronized. Now take a closer look. Timing of button color…
2023-12-04・4 minutes
Please use TypeScript enums
Are enums bad? There are numerous videos on trashing TypeScript enums. Essentially if you use enums you must be dumb, duh! See some examples below: Most enums haters hate enums in their numerical form and I agree they have some footguns. But I think…
2023-06-25・3 minutes
Implementing hold to confirm button in React
In this blog post, I will demonstrate how to create a straightforward "hold to confirm" button using vanilla React. Furthermore, I will delve into the reasons why this UX pattern might not always be the most optimal choice. Lastly, I'll illustrate…
2023-02-25・3 minutes
My 14 Days Long Story About Upgrading React
It took me almost 14 days to upgrade React. Now it is the time for a review. One Year Delay I started working on the React upgrade on February 14, 2023. Almost a year after creating an improvement task for it, when most teams were migrating. This…
2022-12-08・5 minutes
Code reviews taking too long? Here are 7 ideas for preventing PRs from getting stuck
Long code review times are a common problem in teams, and if tasks are left in the "Review" column for several days, it can be a red flag. Often, this happens due to poor code review culture, insufficient focus on delivery, or a lack of understanding…
2022-08-04・4 minutes
Running old Ruby on Rails application with Docker
A few years ago, in 2016 I was developing Ruby on Rails applications. It was the beginning of my programming journey so I was not paying attention to containerization or even proper documentation. This made running those apps in 2022 a little bit…
2021-10-20・1 minute
Automatically Restarting Heroku App With Cronjob
In this blog post, I will describe how to configure an automatic restart of your Heroku app. This will be done in a few steps: Get a Heroku authentication token. Prepare the Heroku API request for restarting dynos. Create a script with this request…
2021-09-14・7 minutes
Football Data Visualizations - Passing Networks
End to End Football Data Visualization During Euro 2020 I've seen a lot of good-looking visualizations on Twitter (see those created by Maram AlBaharna and Matteo Pilotto). There's also plenty of other data scientist, some professional and some…
2021-05-01・2 minutes
Disabling captions in LaTeX subfigures and dividing figures between multiple pages
Motivation While writing my thesis paper I have encountered problem with subfigure captions. I wanted to get rid off subfigure numbers, i.e. "(a)" or "(b)". I didn't want to disable subcaptions in entire document but do this locally. That is my LaTeX…
2021-04-25・7 minutes
The Great Depression
What was The Great Depression The Great Depression was a major worldwide economic depression that took place during the 1930s, beginning in the United States in 1929 after the stock market crash of October 29, 1929 (Black Tuesday). As a comparison…