Blog

Technical articles I published, covering web development topics.

Handling User Permissions in JavaScript

Handling User Permissions in JavaScript

So, you have been working on this new and fancy web application. Be it a recipe app, a document manager, or even your private cloud; you‘ve now reached the point of working with users and permissions. Take the document manager as an example: you don’t just want admins; maybe you want to invite guests with read-only access or people who can edit but not delete your files.

Practical Use Cases for JavaScript’s `closest()` Method

Practical Use Cases for JavaScript’s `closest()` Method

Have you ever had the problem of finding the parent of a DOM node in JavaScript, but aren’t sure how many levels you have to traverse up to get to it? In this article, you'll get to know the `element.closest` selector along with some examples on how to use it best.

Building a Super Small and Simple i18n Script in JavaScript

Building a Super Small and Simple i18n Script in JavaScript

I recently moved my résumé from Google Docs to being an HTML page, giving me more creative and technical freedom. As part of that move, I wanted the résumé to be available in different languages.

Handling Data With Web Components

Handling Data With Web Components

With the rise of JavaScript frameworks like React or Vue in recent years, web applications have gotten increasingly complex and data-driven. As a result, our UIs are no longer just some event listeners and actions but rather components glued together by some underlying foundation of state that is highly dynamic and complex in many cases.

Well-Structured, Clean CSS Without Dependencies

Well-Structured, Clean CSS Without Dependencies

Beauty is considered a subjective thing — everybody defines and sees it differently. Whenever I code something, I don't just strive to make my applications look beautiful on the outside but also on the inside. Having ugly, bloated, or poorly documented code is a no-go for me.

Building a Practical Web Component

Building a Practical Web Component

Recently, I published a tutorial on how to create email chips in pure React. My goal was to show you how easy it can be to build such React components without third-party scripts or dependencies.

How to Create Email Chips in Pure React

How to Create Email Chips in Pure React

Imagine that you, the good-looking developer (yes, I'm talking to you!), want to build an invitation form where users can add one or more email addresses to a list and send a message to all of them.

Detecting Outdated Browsers in Vanilla JavaScript

Detecting Outdated Browsers in Vanilla JavaScript

Recently I had to build a simple banner in a React app that informed users if they use an outdated browser, such as Internet Explorer 11. Initially, I thought that this task would be rather simple, but surprisingly it took me quite a bit to figure out the best solution (for this case). Let’s have a look at how I solved it.