Functions defined in Kotlin companion objects are often seen as the 'equivalent' of static methods in Java.
Although there are some similarities, there are also some caveats you should be aware of.
For example, how to use method references (or, to be pedantic: function references) to refer to functions
defined in a companion object.
Continue reading →
Since about a month I’m developing some microservices using Javalin, a small, simple and lightweight web-framework that started as a fork from SparkJava.
By now it’s a ground-up rewrite, influenced by the Javascript framework koa.js.
Don’t let the stuff like Either scare you, we use the Arrow library to make our life a bit more easy :)
When requesting user input from a form, it’s evident that we need to validate our input.
Javalin has its own way of doing so (from the docs):
Continue reading →
Now that it’s clear how to use an OAuth access_token in JWT to perform RBAC inside a REST service playing the role of resource server, it is time to see how to acquire such a token.
Continue reading →