blog podcast

Spring Boot Starters

They exist for your convenience. By adding a spring boot starter you can offload some of the work to add different depndencies that needs to play together with each other. As an idea it’s not so bad, it’s kind of like plug and play, you add one dependency and then you’re ready to go.

Read More
22 Feb 2021

Typescript Simple

My entry into typescript was through React. There you use these bootstrapping tools and they create loads of things for you that a tutorial then explains what it is.

Read More
20 Feb 2021

NPM Install Global

When you are on a linux system and you want to run npm i -g <package>, it is not unlikely that you’ll need root access since the packages by default wants to be installed to /usr/.... Now, having to run sudo every time you want to install some global node package feels wrong. So what can you do?

Read More
20 Feb 2021

Friend With Rust

I had a vector from which I wanted to sum three values together. I had another vector with the indexes of those three values. Now normally I would just have expected Rust to prevent me from doing whatever I wanted to do, something like this.

Read More
07 Feb 2021

Testcontainers

It all seemed so simple, you add testcontainers to your java project, it instantiates your docker containers and everything works. And in a way it is also quite simple. The library does start your docker containers, it even has annotations that helps it listen to junit5 life cycle events and behave accordingly. But as I found out today, simple is not always simple.

Read More
26 Jan 2021

fzf

I had already encountered the fzf (fuzzy finder) before, it’s a great friend when you are developing in vim. What I didn’t know though is that when you install it through the packet manager you might miss out on something really great with the fzf. It might be that it doesn’t install itself to help you search through the history in your terminal. And that’s a real shame!

Read More
25 Jan 2021

The Easy Mock

I’m continuing to work on my rust code and came up with the scenario that I needed to mock a function. This is natural since the approach I’m taking to my implementation is to try to break the problem down into many small testable functions that I then compose. Because I’m working in rust I was afraid that doing this mocking of the function would be really difficult, maybe even not possible. Doing some quick googling also rather gave me examples of how to mock structs, not functions themselves. In the end I was happy to see that the type RefCell<> got you covered in this scenario.

Read More
24 Jan 2021

Functional

I’m practicing algorithms and get a problem which I find quite hard. In addition I’m trying to implement the solution in Rust, which is not a language I’m using so often, and it’s not a language I’ve used for a long time. When doing this I’m realizing one of the big strengths of Functional programming, namely testing.

Read More
23 Jan 2021

Integration Testing

I’m all for it. Well, not too much, but sufficiently. But, as I’ve experienced today, sometimes when working with Spring Boot there can be problems in the way.

Read More
04 Jan 2021

The Curious Incident with the Type

Typescript is kind of talking to my past, as I used to be a .net developer. In the good old days I would write some reflection and generic stuff to try to squeeze the best out of .net 3.5. Well, that’s long in the past, and most of the things I’ve already forgotten. Anyway, now I had this case in Typescript where I wanted to create a string representation of my type based on properties that had a value. Right down the alley for what Javascript lets you do. Not so much type systems.

Read More
30 Dec 2020