Date: Thursday, 10 Oct 2013 00:00
CompletionService queues finished tasks, making it easier to retrieve Futures in order of completion. But it lacks some basic functionality, such as a count of how many tasks have been submitted.
Date: Friday, 20 Sep 2013 00:00
When a thread is interrupted, we need to be careful to not create a livelock in our code by re-interrupting without returning from the method.
Date: Friday, 19 Jul 2013 00:00
Maps and Sets in Java have some similarities. In this newsletter we show a nice little trick for converting a map class into a set.
Date: Thursday, 30 May 2013 00:00
We continue our discussion on Unicode by looking at how we can compare text that uses diacritical marks or special characters such as the German Umlaut.
Date: Wednesday, 22 May 2013 00:00
In this newsletter we investigate what can go wrong when we call methods from constructors, showing examples from the JDK, Glassfish, Spring Framework and some other well known frameworks..
Date: Thursday, 11 Apr 2013 00:00
Unicode is the most important computing industry standard for representation and handling of text, no matter which of the world's writing systems is used. This newsletter discusses some selected features of Unicode, and how they might be dealt with in Java.
Date: Sunday, 31 Mar 2013 00:00
How can you set a field at point of declaration if its constructor throws a checked exception?
Date: Thursday, 27 Dec 2012 00:00
The trend of marking parameters and local variables as "final" does not really enhance your code, nor does it make it more secure.
Date: Tuesday, 13 Nov 2012 00:00
We present a new type of ExecutorService that allows users to "stripe" their execution in such a way that all tasks belonging to one stripe are executed in-order.
Date: Monday, 27 Aug 2012 00:00
Rule Based Programming, a declarative programming paradigm, is based on logical patterns to select data and associate it with processing instructions. This is a more indirect method than the sequential execution steps of an imperative programming language.
Date: Monday, 06 Aug 2012 00:00
Ben Evans and Martijn Verburg explain to us in their new book what it takes to be a well-grounded Java developer. The book contains a section on the new Java 7 features and also vital techniques that we use for producing robust and performant systems.
Date: Wednesday, 13 Jun 2012 00:00
It is possible to use the break statement to jump out to the end of a labelled scope, resulting in some strange looking code, almost like the GOTO statement in C.
Date: Monday, 28 May 2012 00:00
In this newsletter, it is up to you to figure out how we improved the performance of our previous Fibonacci newsletter by 25%.
Date: Thursday, 24 May 2012 00:00
The new Java 7 Fork/Join Framework allows us to define our algorithms using recursion and then to easily parallelize them. In this newsletter we describe how that works using a fast Fibonacci algorithm that uses the sum of the squares rather than brute force. We also present a faster algorithm for multiplying two large BigInteger numbers, using the Fork/Join Framework and the Karatsuba algorithm.
Date: Monday, 26 Mar 2012 00:00
Every Java programmer I have met knows that they should know more about concurrency. But it is a topic that is quite hard to learn. In this newsletter I give some tips on how you can become proficient in concurrency.
Date: Thursday, 23 Feb 2012 00:00
Surreptitious: stealthy, furtive, well hidden, covert. In this newsletter we will show two Java puzzles written by Wouter Coekaerts that require a surreptitious solution. You cannot do anything to upset the security manager.
Date: Monday, 13 Feb 2012 00:00
What is the largest double that could in theory be produced by Math.random()? In this newsletter, we look at ways to calculate this based on the 48-bit random generator available in standard Java. We also prove why in a single-threaded program, (int)(Random.nextDouble() + 1) can never be rounded up to 2.
Date: Wednesday, 07 Dec 2011 01:39
In this newsletter we try to calculate the meaning of life, with surprising results.
Date: Tuesday, 29 Nov 2011 22:50
Java 7 removes the Swing Event Dispatch Thread (EDT) hack that allowed us to specify an uncaught exception handler for the EDT using a system property sun.awt.exception.handler.
Date: Friday, 16 Sep 2011 04:42
In this newsletter, we present a little performance puzzler, written by Kirk Pepperdine. What is happening with this system? There is only one explanation and it can be discovered by just looking at the stack trace.
» You can also retrieve older items : Read
» © All content and copyrights belong to their respective authors.«
» © FeedShow - Online RSS Feeds Reader