JavaOne – Streams in JDK 8

Main menu:

Topics

Recent Posts

Feeds

RSS Feed RSS - Posts

October 2017
M T W T F S S
« Sep    
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

Past Posts

Java/Java EE

JDBC

Other

Archive for the tag "lambda"

JavaOne – Streams in JDK 8

October 4th, 2017 by Jeanne Boyarsky

“Streams in Java 8 – The good, the bad & the ugly” Speaker: Simon Ritter & Stuart Marks [Simon has the Twtter handle @speakjava; very cool] For more blog posts from JavaOne, see the table of contents Need to think differently. We are used to imperative programming with loops and variables. Dealing wih exceptions ugly […]

refactoring legacy code for java 8

June 25th, 2016 by Jeanne Boyarsky

I asked a teammate at CodeRanch if I could use a method he wrote to show how it could be written more clearly/succinctly in Java 8. He said yes. This is the original method. It is 95 lines and¬†has a cyclomatic¬†complexity of 27. First step – write unit tests First, I wrote unit tests for […]

using Nashorn’s jjs for experimenting

January 25th, 2015 by Jeanne Boyarsky

In Java 8, Oracle introduced the new Nashorn engine and is encouraging the use of jjs. It’s a RPEL (read print evaluate loop) for JavaScript. Since JavaScript can call Java, this allows experimenting with Java APIs like you do in other languages like Python and Ruby. It works better in those languages though. Cay Horstmann’s […]