Articles


Written by Per Minborg

5. CRUD OperationsToday’s tip is an introduction on how to use open-source Speedment to expand the Java 8 Streams to support Creating, Reading, Updating and Deleting database entities.Head out to
Read Article
Written by Per Minborg

The Magical MapWouldn't it be great if we could create Java maps like this?Map<String, Integer> map = mapOf( one -> 1, two -> 2);Map<String, String> map2 = mapOf( one ->
Read Article
Written by Per Minborg

4. Use RemoveIf in Java CollectionsToday's tips is to use the removeIf() method (that all collection classes like List have) rather than manually iterating over the elements and remove them.
Read Article
Written by Per Minborg

3. Initializing Maps in the Smartest WayToday's tips is how to initialize Java Maps in a type safe way with Java 8. With Java 9, we will get even better
Read Article
Written by Per Minborg

2. Favor Composition Over InheritanceToday's tips is to avoid inheritance. For good reasons, there can only be one super class for any given Java class. Furthermore, exposing abstract or base
Read Article
Written by Per Minborg

1. Use the @FunctionalInterface AnnotationToday's tips is to annotate a functional interface with the @FunctionalInterface annotation thereby signaling that API users may use lambdas to implement the interface. It also
Read Article
Written by Per Minborg

Parallel Database StreamsIn my previous post, I wrote about processing database content in parallel using parallel streams and Speedment. Parallel streams can, under many circumstances, be significantly faster than the
Read Article
Written by Per Minborg

What is a Parallel Database Stream?Read this post and learn how you can process data from a database in parallel using parallel streams and Speedment. Parallel streams can, under many
Read Article
Written by Per Minborg

Following the RoadI have been contributing to the open-source project Speedment (which is a Stream ORM Java Toolkit and Runtime) and a new major version called 3.0.1 “Forest” was just released.
Read Article
Written by Per Minborg

Often, web applications are slower than we would like them to be. Companies like Google and Facebook have in-house solutions for speeding up their applications. There is a need for
Read Article
Written by Per Minborg

Streaming with SpeedmentDuke and Spire Mapping Streams.Back in the ancient 90s, we Java developers had to struggle with making our database application work properly. There was a lot of coding,
Read Article
Written by Per Minborg

Method ReferencesAs we all know by now, we can use Method References, like String::isEmpty, in Java 8 to reference a method that is being used when we, for example, stream
Read Article