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.
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.
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?
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.
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.
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!
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.
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.
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.
The Curious Incident with the Type
Typescript is kind of talking to my past, as I used to be a