Java Lobby Announcements

Subscribe to Java Lobby Announcements feed
Recent posts in Java on DZone.com
Updated: 9 hours 5 min ago

Security Update for IntelliJ-Based IDEs v2016.1 and Older Versions

Wed, 2016-05-11 16:53

We have just released an important update for all IntelliJ-based IDEs. This update addresses critical security vulnerabilities inside the underlying IntelliJ Platform. The vulnerabilities, in various forms, are also present in older versions of the IDEs; therefore, patches for those are also available.

While we have had no reports of any active attacks against these vulnerabilities, we strongly recommend for all users to install the update as soon as possible.

Categories: Java

Comparing Golang with Java

Wed, 2016-05-11 14:18

First of all I would like to make a disclaimer. I am not an expert in Go. I started to study it a few weeks ago, thus the statements here are kind of first impressions. I may be wrong in some of the subjective areas of this article. Perhaps I will write a review of this one later. But until then here it is, and if you are a Java programmer you are welcome to see my feelings and experiences and more than welcome to comment and correct me if I am wrong in some statements.

Golang Is Impressive

As opposed to Java, Go is compiled to machine code and is executed directly. Much like C. Because this is not a VM machine it is very much different from Java. It is object oriented and at the same time functional to some extent thus it is not just a new C with some automated garbage collection. It is somewhere between C and C++ if we think the world of programming languages is linear, which it is not. Using a Java programmer’s eyes, some things are so much different that learning them is challenging and may give a deeper understanding on programming language structures and how objects, classes and all these things are … even in Java.

Categories: Java

Why InputStream Design Is Wrong

Wed, 2016-05-11 14:03

It's not just about InputSteam, this class is a good example of a bad design. I'm talking about three overloaded methods read(). I've mentioned this problem in Section 2.9 of Elegant Objects. In a few words, I strongly believe that interfaces must be "functionality poor." InputStream should have been an interface in the first place and it should have had a single method read(byte[]). Then if its authors wanted to give us extra functionality, they should have created supplementary "smart" classes.

                 A Serious Man (2009) by Coen Brothers          

This is how it looks now: 

Categories: Java

A JavaFX HelloWorld Using Java 9’s Project Jigsaw in 60 Seconds

Wed, 2016-05-11 13:54

By now you’ve probably have heard of Java 9’s new module system a.k.a. project Jigsaw. If you don’t know about Java 9’s new module system, you should visit Mark Reinhold’s paper on The State of the Module System. Also, you should check out @nipafx Nicolai Parlog’s excellent blog at http://blog.codefx.org There he goes into great detail about Java 9’s new module system and many scenarios.

In this article I will attempt to show you how to create a JavaFX Helloworld application using Java 9’s module system in 60 seconds.

Categories: Java

Singletons Are Fine

Wed, 2016-05-11 10:49

This one’s gonna be short. Honestly, I don’t know how last week’s article about static methods went so long.

Singletons get a bad rap, being called Anti-patterns, and for good reason. The biggest reason given against Singletons is that they’re global state, which is bad. If you want a stateful “Singleton”, there are ways to restrict the application to only having a single instance, even if the class can have multiple instances. While this still largely equates to global state, at least it opens up the possibility of test doubles and makes the “Singleton” itself that much easier to test.

Categories: Java

Scatter-Gather Using Spring Reactor Core

Wed, 2016-05-11 09:56

I have had a good working experience using the Netflix Rx-Java libraries and have previously blogged about using Rx-Java and Java 8 CompletableFuture for scatter-gather kind of problems. Here I want to explore applying the same pattern using the Spring Reactor Core library.

If you are familiar with Netflix Rx-Java, you already know Spring Reactor Core. The API's map beautifully, and I was thrilled to see that the Spring Reactor team has diligently used Marble diagrams in their Javadoc API's

Categories: Java

Pages