Hopp til hovedinnhold

Nicklas Utgaard

7 innlegg

Creating domain-specific languages

Kotlin
Artikkel (4 min)
Fra Nicklas Utgaard

Kotlin introduces a lot of new language features for us developers. Those features allows us to create code that is type-safe, easy to write and easy to reason about. A good example of this are the type-safe builders a.k.a DSLs, and in this article we're taking a look at how we can create our own DSLs.

Kotlin metaprogramming with kotlinpoet

Kotlin
Artikkel (3 min)
Fra Nicklas Utgaard

Wouldn't it be sweet if you could automate writing code. Well, that's what we're taking a look at today. Metaprogramming, code generation, or in short; writing kotlin code that generates even more kotlin code 🤯.

Serialization: New player has joined

Kotlin
Artikkel (4 min)
Fra Nicklas Utgaard

With the release of Kotlin 1.4 we got a new treat; kotlinx.serialization. A new tool to help us with the cumbersome task of converting our objects to and from Json.

Kotlin changelog

Kotlin
Artikkel (4 min)
Fra Nicklas Utgaard

The year 2020 has certainly been a special one, but that hasn't stopped Jetbrains from continuing its work on the Kotlin language and its ecosystem. In March we got the 1.3.70 version, an incremental release, which included some new functions and classes in the standard library. And after the summer break we got the all new 1.4.0 version, a feature release, which came with some really sought after changes to the language and even more changes to the standard library.

Garbage collection

Java
Artikkel (8 min)
Fra Nicklas Utgaard

Garbage collection (GC) has been one of Java's most compelling features since its inception. Allowing developers to focus on the core functionality of their application instead of memory management.

Project Lombok

Java
Artikkel (3 min)
Fra Nicklas Utgaard

Want to use the var keyword, but your team is stuck on Java 8? Lombok can help you. Sick and tired of writing and maintaining getters and setters? Lombok can help you.

Dependency injection, what is it and how does it work?

Java
Artikkel (6 min)
Fra Nicklas Utgaard

Most developers will at some point be exposed to a dependency injection framework, and at first glance the whole thing can seem magical and hard to understand. Here we'll try to create a conceptual model of how DI-frameworks work.