Develop a game with p5.js (part 1)

p5.js is a great JavaScript library to create little games that run directly in your browser. They even offer an online editor, so you can really just get started. Find out more about p5.js here: https://p5js.org/Or directly access the online editor: https://editor.p5js.org/ In this article I will show you a game we implemented as part… Continue reading Develop a game with p5.js (part 1)

Java Collections Static Factory Methods

With Java9 we finally get an easy way to construct collections. I think the map is one that I will be using  quite often. Now I can write: Map<String,String> lookupMap = Map.ofEntries( entry(“a”, “A”), entry(“b”, “B”), entry(“c”, “C”)); Instead of: Map<String, String> lookupMap = new HashMap<>(); lookupMap.put(“a”,”A”); lookupMap.put(“b”,”B”); lookupMap.put(“c”,”C”);

JavaScript und Physik

Gerade kürzlich ist mir die Formelsammlung der Physik in die Hände gefallen und ich hatte irgendwie Lust, ein Pendel zu programmieren. Ich habe früher bereits einen Artikel geschrieben, wie man mit JavaScript physikalische “Experimente” durchführen kann und bin nach wie vor der Überzeugung, dass dies eine ideale Tätigkeit ist, um das Programmieren zu erlernen. Man braucht… Continue reading JavaScript und Physik

Java 8 default methods

Why OK, so interfaces can now provide a default implementation. This makes sense if you want to be able to add new methods to your interface without breaking existing implementations. Oracle uses default methods quiet extensively (see java.util.Collection). Simple example public class SimpleExample { interface Interface1 { default void test() { System.out.println(“– default test”); } default void test2() { System.out.println(“–… Continue reading Java 8 default methods

Docker

Lately I had a short presentation about Docker for which I created some slides. The idea was to run the presentation (AngularJS, HTML, CSS) inside a container. You can find the presentation here. Maybe you find it useful.

Spring Boot Health Checks

Spring Boot brings along some cool “production ready” features. Among them are the health checks. They are a great way to give you a quick overview about the system state. Is the database up and running, is my disk running out of space? Getting started Having a Spring Boot application already setup you just have… Continue reading Spring Boot Health Checks