sort by date

developerWorks (IBM)
Focus On Java

sitios en español
Yes, the gender gap is still an issue but there are solutions
07/04/2016 at 21:31:11
We're halfway through 2016 and gender gap in the tech field remains to be an issue. But how much has improved? Realistically, we're a long way from achieving equality but that doesn't mean solutions do not exist.
Java vs .NET vs Python vs Ruby vs Node.JS: Who Reigns the Job Market?
07/04/2016 at 21:31:07
We crunched 351,799 job openings – Here are the languages you need to master to get them
Devs are from Venus, Ops are from Mars, Containers: Amazon Elastic Container Service (ECS) – Part II
07/04/2016 at 21:30:58
This article reviews the foundational AWS technologies that you need to be familiar with to effectively manage and understand ECS.
Introduction to Apache Flink - 4G of Big Data
06/30/2016 at 16:04:48
In this tutorial we will discuss about the introduction to Apache Flink, What is Flink, Why and where to use Flink. This Flink tutorial will answer the question why Apache Flink is called 4G of Big Data? The tutorial also briefs about Flink APIs and features.
The Hitchhikers Guide to GitHub: 13 Java Projects You Should Try
06/30/2016 at 15:36:32
We’ve gathered some practical and simply cool Java repositories on GitHub
Forget Guava: 5 Google Libraries Java Developers Should Know
06/28/2016 at 16:28:33
What are some of the most useful yet unknown Google Java libraries?
Towards More Functional Java Using Streams and Lambdas
Scott Leberknight08/24/2016

In the last post I showed how the Java 7 try-with-resources feature reduces boilerplate code, but probably more importantly how it removes errors related to unclosed resources, thereby eliminating an entire class of errors. In this post, the first in an ad-hoc series on Java 8 features, I'll show how the stream API can reduce the lines of code, but also how it can make the code more readable, maintainable, and less error-prone.

The following code is from a simple back-end service that lets us query metadata about messages flowing through various systems. It takes a map of key-value pairs and creates a Lucene query that can be submitted to SOLR to obtain results. It is primarily used by developers to verify behavior in a distributed system, and it does not support very sophisticated queries, since it only ANDs the key-value pairs together to form the query. For example, given a parameter map containing the (key, value) pairs (lastName, Smith) and (firstName, Bob), the method would generate the query "lastName:Smith AND firstName:Bob". As I said, not very sophisticated.

Performance Improvements of Java Monitor From JDK 6 to 9
Thomas Krieger08/24/2016

The new JDK™ 9 early access release contains a JDK enhancement proposal JEP 143, Improve Contended Locking, to improve the performance of contended monitors. Monitors are used by the Java synchronized statement to lock access to a code block. If the synchronized block is called by several threads, the monitor becomes contended. This can degrade performance dramatically. So let us look at the performance improvements of contended monitors.

The graphic shows the time of one method call. The lower numbers mean better performance. The test consists of 8 threads accessing a synchronized block, and all threads are accessing the same monitor. You can download the test here. The test was run on an Intel i5 4 core CPU. As we can see, JDK 9 improves the performance of contended monitors. Let us now look at a direct comparison between JDK 8 and 9.

This Week in Spring: Spinnaker and Spring Leaders
Joshua Long08/24/2016

Welcome to another installation of This Week in Spring! This week I’m in NYC (for the NYC Java SIG), Austin and San Francisco (for the Silicon Valley Spring User Group) talking to customers and doing meetups! We’ve got a lot to cover, as usual, so let’s get to it!

Regular Expression to Validate a Comma-Separated List of Email Addresses

Recently I needed to create a regular expression to validate the format of a comma-separated list of email addresses. Just thought I’d share the result in case it is of use to anyone:


Here’s an example of applying the pattern in Java:

Are Design Patterns Really Useful?
The touted benefits of design patterns are that they allow proliferation of best practices and allow for efficient communication between engineers, but how does that play out in practice?
Programming Basics: The Function Signature
See how paying attention to your function signature, utilizing language features where possible and using immutable data structures and pure functions can get you pretty far.
Managing Code Debt in Team Foundation Server with SonarQube
SonarQube is a popular open source platform for managing quality in the scope of an application life cycle that covers the seven axes of code quality.
Architecting Stable Systems and Solid Code
Solid code does what the developers intended it to do and can gracefully handle anything you throw at it. Learn more about how to make your code solid.
Focus On Java
Time to Move On
11/11/2013 at 15:42:11

Time seems to be increasingly scarce these days so it's time for me to move on from the Java site.

If you're interested in becoming the Java person for have a look at the be a guide page for more details.

Time to Move On originally appeared on Focus on Java on Monday, November 11th, 2013 at 15:42:11.

Permalink | Comment | Email this

Java SE 7 Update 45 Released
10/17/2013 at 21:05:59

Java 7 Update 45 has been released and the JDK is available to download from Oracle's Java download page.

The release notes show this to be a security fix release. There are 51 new security fixes as outlined in the Oracle Critical Patch Update Advisory for October.

Java SE 7 Update 45 Released originally appeared on Focus on Java on Thursday, October 17th, 2013 at 21:05:59.

Permalink | Comment | Email this






Java and Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries. javasight is independent of Sun Microsystems, Inc.