The personal journal

A life in progress.

I'm Bojan, a front-end engineer in Italy. A running feed of things I build, learn, read, and get up to.

Behind the notebookAbout me & current projects

The latest 1236 entries

RSS feed
  1. Status

    This will be my office setup from my parents home for the next two days, until …

    Cavallino-Treporti, Italy

    This will be my office setup from my parents home for the next two days, until the renovations in my apartment are done. PS: The stand is one of my best purchases ever!

  2. Status

    Most developers when using HTML inputs with type="number" assume the input value …

    Cavallino-Treporti, Italy

    Most developers when using HTML inputs with type="number" assume the input value will be a number, and get confused when the value is a string instead. This is because the type=“number” actually tells the browser that the input is used for numbers and to provide a number input UI with included built-in validation to reject non-numerical entries.

    Now to get the number almost everyone will use the good old parser functions parseInt/parseFloat, like this:

    parseInt(input.value, 10);
    

    But, there is a less-known property called .valueAsNumber which allows us to avoid parseInt/parseFloat functions, for example:

    input.valueAsNumber
    

    How cool is that!

  3. Status

    Since I’m on a short holiday and have plenty of free time I’ve decided to …

    Cavallino-Treporti, Italy

    Since I’m on a short holiday and have plenty of free time I’ve decided to implement some new cool features on this blog that I’ve seen on Aaron’s blog, which are location and weather conditions when posting. This status post is just a test of the current implementation, which seem to work fine.

  4. Status

    Today’s Starship launch was one of the most exciting I’ve seen in a while. It …

    Today’s Starship launch was one of the most exciting I’ve seen in a while. It took off a few seconds after the countdown with a few failed engines and still managed to climb to the Starship separation altitude, this just shows how resilient this rocket is. Even with the rocket blow up it still is considered a successful launch, hence it was called a test launch where things were expected to fail.

    Hopefully, this launch will provide some valuable data to the team and next time we’ll get to see Starship in action.

  5. Status

    I’ve created a public repository on my GitHub with an initial version of my …

    I’ve created a public repository on my GitHub with an initial version of my Neovim configuration which should be a good starting point. I’ll document it better as it matures.

  6. Status

    Finally, the long-awaited Starship launch, crossed fingers that everything goes …

    Finally, the long-awaited Starship launch, crossed fingers that everything goes as planned. Live streaming here.

  7. Status

    After many years, I might switch from Vim to Neovim, the reason? Rich plugin …

    After many years, I might switch from Vim to Neovim, the reason? Rich plugin ecosystem and native LSP support. I made a simple configuration with Neotree, Telescope, and LSP Zero to test it out in the coming days as a default editor. So far so good.