Sentiment analysis is usually a task that requires a specialised dataset and machine-learning techniques to implement properly. However, I …
Javascript
Handling Errors with the Fetch API
The Fetch API is a modern and efficient way to retrieve resources from a server. It is an interface that provides a unified way to fetch …
Is Asking Developers How to Write FizzBuzz Outdated?
I have never understood why FizzBuzz was deemed a means of screening developers. The idea is for multiples of 3; you print Fizz. For …
How to Create a Blockchain With TypeScript
If you have been a reader of my blog for a while, you would know that I am an avid cryptocurrency enthusiast. I believe in the tech more so …
Parsing Metadata Inside of Markdown Using JavaScript Without Any Dependencies
In a recent project, I worked with Markdown files that contained metadata at the top for blog posts. I needed to parse the Markdown with …
Waiting for an Element to Exist With JavaScript
There are many different ways to solve this use case. You want to wait for an element to exist on the page and when it does, run a callback …
How to Extend the Window Object in TypeScript
In many cases when you're working with TypeScript, there are type definitions available for almost every package out there. However, in …
How To Test Your Web Applications Using Playwright and Support 2fa Tokens
At work, I've been migrating us over from Cypress to Playwright for end-to-end tests. In that time, we've enabled two-factor authentication …
How to Use Bootstrap JavaScript Components Inside of Shadow DOM Web Components
Despite doing this front-end thing for over a decade, I still encounter new problems thanks to the ever-evolving web specifications. One of …