Moved to a new domain
Hello to anyone that might reach this website! Just want to let you know that I've changed the place where I publish and build new things. You can find things I'm up to on apisurf.dev. Cheers!
Search for a command to run...
Hello to anyone that might reach this website! Just want to let you know that I've changed the place where I publish and build new things. You can find things I'm up to on apisurf.dev. Cheers!
There are two good articles that touch on some of the concerns and annoyances I also share, but I'll try to cover some of my views about it. I had a chance to use Next.js 13 for a few weeks and noticed that some things make my job a lot simpler, whil...
new Date('YYYY-MM-DD') might not do what you think it does

Recently I stumbled upon an interesting test case where I needed to cover many possibilities and make sure everything continues to work as intended in the future. I had 7 boolean flags that needed to be used to toggle an app functionality. It's a bit...

Some old methods of accessing uploaded file contents inside a Next.js route handler don't work anymore or at least not in a way many tutorials explain it. E.g. many outdated online examples use page router which has route handlers that receive differ...

If you didn't have experience with the web ~10 years or more ago it might be weird to use buttons on the web, especially when you don't want them to trigger form submits. You might have asked yourself: "Why do I need to specify button type to be a bu...

Quick hint and a reminder for myself: In programming, try not to prefix things with "new". "New" usually doesn't stay new for very long :). It becomes especially problematic when you introduce the new stuff for the 2nd time. At that point, you have a...
Tldr: be swift :) I just wanted to mention 2 things I noticed helping with file hierarchy refactors. Stick to only file organization and imports This makes it easier to do code reviews, check and spot import misreferences etc. It'll also make things ...
When was the last time you finished a software project? Right? Well, I'm dealing with some legacy project and I stumbled upon moment.js' documentation that explains the purpose of the project, how it was finally achieved, and that the project is co...