Do you want to know how to develop your skillset to become a Java Rockstar?

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!

 

1. JPA Mini Book

2. JVM Troubleshooting Guide

3. JUnit Tutorial for Unit Testing

4. Java Annotations Tutorial

5. Java Interview Questions

 

and many more ....

 

 

JLBH Examples 1 – Why Code Should be Benchmarked in Context

In this post: A side by side example using JMH and JLBH for Date serialisation Measuring Date serialisation in a microbenchmark Measuring Date serialisation as part of a proper application How to add a probe to your JLBH benchmark Understanding the importance of measuring code in context       In the last post, ‘Introducing JLBH‘ we introduced JLBH the latency ...

Read More »

2 Rookie Java Constants and Enums Pitfalls

In various code reviews I perform on Java and Groovy code I often see magic numbers and other random Strings littered all over the code base. A magic number, for example, is the 4.2 in below (Groovy) code snippet: if (swashbuckle >= 4.2) { ... } What does 4.2 mean? My advise is to extract such a number to a ...

Read More »

Profile of an IoT Developer: Results of the IoT Developer Survey

Today we release the results of our second annual IoT Developer Survey. Like last year it provides an interesting insight into how developers are building IoT solutions. This year the Eclipse IoT Working Group partnered with IEEE IoT and the AGILE-IoT research project to expand the scope and respondent pool for the survey. Thanks to this partnership, we had 528 participants in ...

Read More »

Determining the Active HotSpot Garbage Collector

The StackOverflow questions find which type of garbage collector is running, Default Garbage collector for a jvm, How can I see what garbage collector is running by looking at gc logs?, and How to know the current GC strategy of the HotSpot jvm?, and the blog post How to programmatically obtain GC information demonstrate the desire at times to know ...

Read More »

JLBH – Introducing Java Latency Benchmarking Harness

In this Post: What is JLBH Why did we write JLBH Differences between JMH and JLBH Quick start guide       What is JLBH? JLBH is a tool that can be used to measure latency in Java programs. It has these features: Aimed at running code that would be larger than a micro benchmark. Suitable for programs that use ...

Read More »

Recognizing hand-written rectangles in an image

Last time we have seen how to identify key points in an image. I was then thinking to use machine learning techniques to recognize the roles played by each point. I played for a while with Weka, a tool which make very easy to experiment with different Machine Learning algorithms. To identify the features to use in the classification I ...

Read More »

CUBA Platform is Going Open Source

The long-awaited moment has come, and now we are happy to announce that the CUBA Platform has finally joined the free software community! From now on, all the runtime part of the platform is open source and distributed under the Apache 2.0 license. This means that you will be able to create and distribute your applications absolutely for free! So, go ahead and ...

Read More »

Default & Static Methods In Interfaces

In our original Java 8 support announcement post we specifically mentioned the lack of streams but completely missed the fact that default/static native interfaces didn’t work. This is now fixed thanks to an alert community member who pointed that out. It seems that these features are turned off by default for retrolambda due to limitations that require a clean build ...

Read More »

Random Ideas about Code Style

Some of the sentences of this article are ironic. Others are to be taken serious. It is up to the reader to separate them. Start with these sentences. How long should a method be in Java? This is a question I ask many times during interviews. There is no one best answer. There are programming styles and different styles are ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns