HN user

volgar1x

38 karma

Passionate developer enjoying front-end stuff but still prefers back-end side. Not particularly a fan of any language though I find myself doing lots of Python, have curiosities about C++, and a weakness for Erlang and OCaml !

Posts0
Comments26
View on HN
No posts found.

It becomes a problem when Google decides to keep those security fixes to themselves. I can very much see microG (a GMS reimplementation) provide the same service using their own compiled patches, kind of like Linux distributions provide packages and kernel updates developed by Intel, Microsoft, Red Hat, etc, which end up publicly available.

Kotlin vs. Java 7 years ago

Kotlin really shines when it comes to async programming. This is some code I wrote using Vert.x with Kotlin extensions :

    router.get("/api/article/:id").coroutineHandler { ctx ->
        val news = newsRepository.get(ctx.pathParam("id")) // no need for await
             ?: return ctx.respondText(404, "Not Found") // can still use basic code constructs
        ctx.respondJson(200, jsonObjectOf("news" to news)) // actually an extension method i wrote
    }