20 Jul 2021

useMemo vs useEffect and useState

Since the advent of React Hooks, there have been a few hook-related anti-patterns that have popped up. To be fair, these existed before hooks as well, but in different forms. The use of derived state is one of the most pervasive of these. As the React blog pointed out way …

05 Jul 2020

Tagged Template Literals are Awesome!
Tagged under "better write this down before I forget"

You will often need to implement text that looks like this:

Highlighted Text

Now, it's fairly simple enough to do in HTML, but when you do it in React Native it looks a bit gnarly:

<Text style={styles.text}>
  You’re going to <Text style={styles.highlighted}>send a message</Text> to …
28 Jun 2020

Building Flagitect
just like a wavin flag

Flagitect just hit version 1.2.0, and so this is a brief introduction into the technical aspects of how the app is structured.

Flagitect v1.2.0

Stack

The app is written in React Native (currently version 0.62). There is no navigation library in use, as the app only needs some modals …

31 Jan 2020

My 2020 guide to rewriting a piece-of-shit codebase
I failed hard so you don't have to

Soptair Enjiniya

Meme by Justice For Tharindu

First, you need to make up your mind. If you take this project on you must proactively try to make things better. How to do this will depend on a number of factors and the support of the stakeholders, but you must actively try to …

14 Dec 2019

A Simple Version Checker In Go
Go Local Sports Team!

Version Check Output

My current work requires keeping track of more than a dozen live websites and making sure that their versions are kept up to date. We have employed a small Go program to make this possible, which enable us to scrape the generator meta tags on the websites and thereby get …


Built using Pelican.