Mapping enum keys with EnumMaps

Here’s a type that has been around in the JDK for a while and that comes in handy when we want to define maps with enum types as keys: An EnumMap is a such as specialized Map. We’ll create a map for a given enum: public enum CoffeeType { ESPRESSO, POUR_OVER, FRENCH_PRESS } The EnumMap needs to be aware of ...

Read More »

Kotlin – Reified type parameters sample

This post walks through a sample that demonstrates Kotlin’s ability to cleverly reify generic type parameters. So consider first a world where Kotlin does not support this feature, if we were using the Jackson library to convert a JSON to a Map with String based keys and Integer based values, I would use a code along these lines: @Test fun `sample ...

Read More »

Free Webinar: Swallowed Exceptions in Java Applications

Join our webinar on January 30th to discover the “hidden” exceptions in your Java Application. If a tree falls in the forest, but it isn’t written to the logs, does it make a sound? The answer, of course, is yes. Those are the kinds of errors that can have a severe impact on user experience without giving any visibility into ...

Read More »

Bootiful Development with Spring Boot and React

spring-interview-questions-answers

“I love writing authentication and authorization code.” ~ No Java Developer Ever. Tired of building the same login screens over and over? Try the Okta API for hosted authentication, authorization, and multi-factor auth. React has been getting a lot of positive press in the last couple years, making it an appealing frontend option for Java developers! Once you learn how ...

Read More »

How to Query InfluxDB

InfluxDB is a popular time series database and I am here to show you how to query it. It uses a SQL-like (or to be totally honest, an “almost-SQL”) language. SELECT * FROM "foodships" WHERE time > now() - 1h This language has worked and been supported in InfluxDB since day one and it has both pros and cons: It’s ...

Read More »

Using Docker in API Gateway and Microservice Development

As you progress in your education as a developer, you will sooner or later understand the benefits that a container system like Docker has to offer: you can specify your environment in code, without all the Slack messages to system engineers or the headaches that go into standing up consistently provisioned servers. Likewise, you have probably understood the appeal of ...

Read More »