Hey, I'm Rares Portan

I'm a web developer & designer living in Timisoara, Romania 🇷🇴. I prefer to code in JavaScript and I love simple and fast software 🚀.

Switching from Gatsby to Astro

I’ve switched my blog from Gatsby to Astro. It was not as easy as I dreamed. In fact, I had to wait for Astro v2 to be released to finally b…

Easy Sudoku solving techniques

In the first part of the Sudoku series, we built a Sudoku Solver. Next is the Sudoku generator: a program that can generate games of differe…

Sudoku Solver

I became interested in the Sudoku game after a failed opportunity to build it for a client. I’ve never played Sudoku before (I’m a video gam…

SolidJS Building Blocks

SolidJS is a library for creating web apps. Like React, Vue, Angular, and many others. So you might think: “Oh no, not another one, we have …

CSS units Cheat Sheet

Long gone are the days when we used to use only ‘px’ (pixels) in our CSS. Today there are a lot of options to choose from. What unit you cho…

A short intro to Partytown

It happens all the time. We try to optimize our code, optimize how images and CSS are loaded, do code splits, and all kinds of smart techniq…

Let's Learn JavaScript - Strings

Another important primitive data type is the String. Strings are composed of one or more characters and are used to keep words and texts. In…

Using XState with React

For a long time, Redux was the way to do state management in a React app. Bases on the Flux architecture, popularized by Facebook, it comple…

Migrate to Gatsby v3

I decided to migrate this website to Gatsby 3 and write here how it went. The first question is of course “Why you did it?” The main reason …

The <link> element

The <link> element is used to load an external resource in the HTML. Link elements are part of the page metadata and not inside the page’s v…

The future of code is no code

The future of coding is no coding at all.” - Chris Wanstrath, CEO at GitHub. Coding is my bread and butter, so what this means? Am I becom…

HTML Basics

Looks to me that many web developers, especially “full-stack web developers,” are not sure what is the correct HTML for a webpage and use di…

The <picture> tag

When Steve Jobs unveiled the iPhone in January 2007, few understood its implications on the web future. A couple of years later, millions ha…

Cyberpunk 2077 glitch effect

Note: This post is about a motion intensive CSS animation. The examples will not work if prefers-reduced-motion is set to reduce. Cyberpun…

Make me a Promise

Let’s start with a short story. A girl asks his father: Daddy are there people in space right now? The father doesn’t know but he promises h…

Using Fetch

For years, the default way to call APIs from a web page was XMLHttpRequest. But working with XMLHttpRequest was not easy, so on top of it we…

Building a COVID-19 tracker

Here in Romania, every day, at 13:00, the latest COVID-19 data is communicated to the public. The data is presented as a series of cold numb…

Hello, World!

Turns out there is good side to this pandemic situation we all have to live with in 2020: I finally have time to start a blog. I’ll write ab…