How do we use Perl and Java together? Unlike many other languages, that for example run in the JVM, it is not particularly easy to combine them. But that is not the idea. A good starting point is thinking about houses and furniture. While it is perfectly possible to build houses of wood or furniture …
Kategorie-Archive: JVM-languages
Getters and Setters
Deutsch When programming in Java, it is kind of part of the language to write classes with attributes and equip these attributes with „getters“ and „setters“. You could do otherwise, but you just don’t. But some criticism is of course allowed. Even if it only applies to the design of future languages or to minor …
Devoxx UA 2020 (talks)
I watched the conference onlie and picked the following talks: The Effective Developer – Work Smarter, Not Harder by Sven Peters Polyglot, Fault-Tolerant Event-Driven Programming with Kafka, Kubernetes and gRPC by Natan Silnitsky Reacting to an Event-Driven World by Grace Jansen Cause of Death: Hibernate by Thorben Janssen NoSQL Endgame by Otavio Santana, Thodoris Bais, …
Devoxx UA
Most conferences have been cancelled, since it is difficult to hold a conference these days. The idea to move the conference online has been obviously around, but it was rejected by most organizers, because it it not the same and the all important chance to meet other people is just not the same. So the …
Object Creation: Builder vs. Constructor vs. Setter
When we create new objects, we are basically confronted with the need to provide at least one construction pattern. Of course depending on the language we have more or less three ways to go that are commonly available. Traditionally in OO it was mandatory to write setters and getters. In C++ or Java they really …
„Object Creation: Builder vs. Constructor vs. Setter“ weiterlesen
MapStruct
In the Java sphere we often develop the same data class several times. Each layer has its own variant and they are named almost the same, with some prefix or suffix or just the package name to distinguish. The set of attributes is the same (or almost the same), they have setters and getters. Or …
JSON instead of Java Serialization: The solution?
We start recognizing that Serialization is not such a good idea. It is cool and can really work on a wide range of objects, even including complex and cyclic reference graphs. And it was essential for some older Java frameworks like EJB and RMI, which allowed remote access to Java objects and classes. But it …
„JSON instead of Java Serialization: The solution?“ weiterlesen
Perl and Scala: what can they learn from each other?
Ironically Scala at first drew my interest, because I discovered that about ten years ago there was no really good understanding of how to do a good multithreading concept for Perl 6. I thought exploring how they do it in Scala, where it was already known to be good at that time, would give a …
„Perl and Scala: what can they learn from each other?“ weiterlesen
Devoxx UA and Devoxx BE 2019
In 2019 I visited Devoxx UA in Kiev and Devoxx BE in Antwerp. Traveling was actually a little story by itself, so for now we can just assume that I magically was at the locations of DevoxxUA and DevoxxBE. In Kiew I attended the following talks: Probabilistic data structures in nutshell (in Ukrainian) [Oleksandra Kulyk] …
Checked Exceptions in Java
In Java it is possible to declare a method with a „throws“-clause. For certain exceptions, that are not extending „RuntimeException“ or „Error“, this is actually required. What looked like a good idea 25 years ago has proven to be a dead end. I do not know of any other major programming language that opts for …