Gentle intro to GraphQL in Java World

java-interview-questions-answers

A lot of people think that GraphQL is for Front End and JavaScript only, that it doesn’t have the place with Backend technologies like Java, but is that really the case. Also very often GraphQL is compared to REST, but is this comparison justified one or not? First, let me start by answering the most important question of them all. ...

Read More »

What to Expect in Java JDK 10

As we are just getting used to the release of Java 9 in September, we only have a few more months to go before the next generation of Java comes out. Just this month, the planned Java Development Kit 10 upgrade has moved into a major rampdown phase of development. In the first initial phase one through three bugs can ...

Read More »

X-Mas Musings – Too Many Paths. One Path Spec?

December is for many people a period of reflection or thought. So I decided to reflect upon last year’s things and thoughts — each day until Christmas. This is day 15. Within a typical (Java) project there a lots of places where some kind of “path” needs to be specified. Gradle For starters, in any build configuration quite a few ...

Read More »

SRP is a Hoax

The Single Responsibility Principle, according to Robert Martin‘s Clean Code, means that “a class should have only one reason to change.” Let’s try to decrypt this rather vague statement and see how it helps us design better object-oriented software. If it does. I mentioned SRP once in my post about SOLID, saying that it doesn’t really help programmers understand the ...

Read More »

Get any image metadata with Spring Boot and Docker

This is the second part of a series of three articles, but I decided to condensate in two to give space to another article. The first part is available on this website at https://www.javaadvent.com/2017/12/microservices-architecture.html. In this part we’re going to develop a Microservice that reads metadata from an image as JSON or XML. I’m using Docker and Java (check part 1 if ...

Read More »

Introduction to WebAssembly: why should we care?

There is a new weapon in the great war against JavaScript the struggle to allow developers to choose their favorite style of programming while improve performance and their productivity. That weapon is WebAssembly, that will revolutionize client-side web development. WebAssembly, or wasm, is a low-level bytecode format for in-browser client-side scripting. If you are writing a compiler for a programming language one ...

Read More »

Kotlin – tail recursion optimization

Kotlin compiler optimizes tail recursive calls with a few catches. Consider a rank function to search for the index of an element in a sorted array, implemented the following way using tail recursion and a test for it: fun rank(k: Int, arr: Array<Int>): Int { tailrec fun rank(low: Int, high: Int): Int { if (low > high) { return -1 } ...

Read More »

Rapid SEMAT Application Development with Apache Isis

java-interview-questions-answers

TL;DR This post talks about a SEMAT pet project I created using Apache Isis and deployed to OpenShift Online here http://semat.ofbizian.com Apache Isis As a Java developer who is working primarily on backend systems, I hate do not enjoy creating user interfaces and dealing with Javascript. Luckily, there are Java projects such as JSF (grrr), Apache Wicket, Vaadin that can help avoid Javascript altogether ...

Read More »

Intro to Spring Cloud Config Server

java-interview-questions-answers

1. Overview In this tutorial, we will review the basics of Spring Cloud Config Server. We will setup a Config Server and then build a client application that consumes the configuration on startup and then refreshes the configuration without restarting. The application we are building is the same “Hello World” application discussed in the Centralized Configuration Getting Started Guide, but we go ...

Read More »