When you code some pipeline processing of a stream in Java 8, it might happen that a method you want to use throws a checked exception. What happens then ? The compiler complains because checked exceptions don’t bubble up like you’d naively expect; in other words you should deal with the exception when it happens,
Continue reading Checked exceptions in Java 8 streams
Category: Java
Reducing JRE size
Until Java 9 is ready, there is still an option if you need to reduce the size of a bundled JRE: exclude some files! This is totally official and supported by Oracle; in fact all the files you can exclude from a JRE are listed in the JRE’s README (unfortunately with a few persisting typos…)
Continue reading Reducing JRE size
Java in Flux… a Java roadmap (kindof)
Must read keynote from the TSSJS conf last week… I was thrilled by the Aeon Flux reference btw 🙂 [edit: the presentation has been removed and is no longer accessible… you can read the related blog entry here. Thanks Chris for making me aware of this]
Testatoo: TDD for the GUI
Test-driven development is a good thing. We all agree on that, right? But TDD assumes you can write tests before actually implementing the functionality. How do you do for the GUI when most GUI test tools are based on a scenario-recording appraoch? This requires that the GUI already exists; in other words, another instance of
Continue reading Testatoo: TDD for the GUI
EricDaugherty.com: Does Write Once Run Anwhere Work?
Eric Daugherty: Realistically, I think tools like GWT are the future. As a Flex developer, I enjoy the ability to quickly and easily create rich applications that will render the same on ever user's machine. But I would prefer that the Flex applications would compile to HTML and JavaScript, so they could be run native
Continue reading EricDaugherty.com: Does Write Once Run Anwhere Work?
Kindle Development Kit to use Java
Amazon has unveiled the details of its development kit for its Kindle e-book reader. The so called “Kindle development kit for active content” (or KDK) will be based on Java 1.4 Personal Basis Profile (JSR 217); custom additional APIs will be available for networking, local storage, specific UI components, etc. (see javadoc). As strongly as
Continue reading Kindle Development Kit to use Java
Google Collections Library 1.0 final
The Google Collections Library 1.0 is a set of new collection types, implementations and related goodness for Java 5 and higher, brought to you by Google. It is a natural extension of the Java Collections Framework. We have finally (Dec 30, 2009) released version 1.0-final! The API is now frozen: there will be no more
Continue reading Google Collections Library 1.0 final
Support the Elvis proposal for Java !
Are you tired of writing (x != null) ? x.getThis() : null Would you rather write something like x?.getThis() If so, support the Elvis proposal for Java ! Interesting alternative notations can be found here.
Mark Reinhold’s proposal for Java closures
I believe this proposal, although incomplete, to be much more acceptable to the current Java community than existing BGGA or FCM. Most proposals state that it’s not the syntax that matters, it’s the semantics. While this is undoubtedly true, syntax is the first thing a programmer will see and judge the feature by. If the
Continue reading Mark Reinhold’s proposal for Java closures
lambdaj – easy collection manipulation
LambaJ is quite an interesting project. How many times did you write the same loop, with only a few differences that were impossible to factor out because of the lack of closures in Java? LambdaJ partially alleviates the need for closures by allowing the manipulation of Collections in a way that doesn’t require iterating through
Continue reading lambdaj – easy collection manipulation