Connecting to a MongoDB Instance Using KMongo

Often, the seemingly simple things can make you spend hours chasing around your tail. Like trying to connect to a MongoDB instance using KMongo. Basically, if you have checked out the KMongo quick start, setting up a client and fetching some data should be extremely easy: val client = KMongo.createClient(…

Revisiting IntStreams in Java8+

This post is mainly a reiteration of an article, I found online. As of Java 8, we have had the ability to replace looping operations on collections with streams and functional operations. This applies to situations where we don't have an up-front collection to iterate upon. What traditionally would have…

Kotlin Basics: apply() and copy()

Without any doubt, Java is a verbose language. This verbosity of the language makes it easy to understand Java code by new programmers. It is though one of the reasons, why many Java programmers find writing Java code tedious. Kotlin brings a touch of succinctness in places, where even programmers…