Tuesday, April 2, 2019

IT links (25.3. - 31.3.2019)

Oracle revealed in a presentation on 21st March that future Java development will focus on improving language and runtime support for big data, machine learning, and cloud-native workloads.

Couple of days ago (19th March) JDK 12 was released.
This release contains (in preview mode) for example really nice simplification of switch statements - switch expressions.

This reminds me one simple lightweight web framework that I discovered recently, Javalin. Look at simple Hello World example:

Javalin app = Javalin.create()
  .port(7000)
  .start();
app.get("/hello", ctx -> ctx.html("Hello, Javalin!"));

The server starts at port 7000 and call to "/hello" returns the message.

But I am missing raw String literals from recent Java release, hopefully they will be included in JDK 13.

Anyway, there is a nice approach how to deal with long Strings, simply with String.join call:

String.join(System.getProperty("line.separator"),
       "Lorem ipsum dolor sit amet, consectetuer adipiscing elit.",
       "Nullam at arcu a est sollicitudin euismod.",
       "Class aptent taciti sociosqu ad litora torquent per conubia nostra.");

And more interesting things are to come - one really interesting improvement, that could be included in JDK 13 release, are better default messages for the most common Java exception, NullPointerException.

Spring Framework celebrated the 15th anniversary of its first release on 25th March

27th March - IntelliJ IDEA 2019.1 was released. Adds functionality like Themes customization (I am so far happy with my Darcula theme), and support for already mentioned switch expressions.
Another for me interesting functionality is for example improved Maven Diagrams for dependencies check and ability to cherry-pick only some of the files right from the VCS log.

No comments:

Post a Comment