Hej!

I'm Erik, a web developer from Sweden who has a huge interest in software development, IT and technology. I try to document the new stuff I learn in this fast paced industry as I go along. High, low and everything in between.

Hopefully you'll find something of interest.

Latest posts

Upgrade all dependency versions in package.json with yarn
Updating dependencies in an npm project is pretty straight forward and easy to do with the command yarn upgrade. It updates all packages to their latest backwards-compatible version. Something that those coming from using npm update finds out is that the yarn…
Automate versioning and publication of npm packages
A while ago I wrote a post about always writing perfect commit messages by using commit linting tools and conventional templates. This makes the commit messages look great and formatted the same way regardless of who is committing but what…
Manage plugins natively in vim
There are many useful plugins for vim and I've always used a plugin manager to handle them all. Recently I found out that vim has had support for package management out of the box a long time now. It was actually really simple to switch. …
Update state with useReducer synchronously
Hooks in Reacts are wonderful to work with and managing local state is one of the most common ones. For more complex states the useState() hook could be changed to a useReducer() instead. A problem we might encounter is that state isn't updated synchronously…
Partial types in TypeScript
TypeScript is great for many reasons and when getting past the first few steps it really makes developing a joy. With that said there may come a time when objects keep growing in size and maybe not all properties will exist all the time. …