Posts

Showing posts with the label JAVA 8

Java - Replace traditional for loops with IntStreams

Go to: https://www.deadcoderising.com/2015-05-19-java-8-replace-traditional-for-loops-with-intstreams/

Java Optional - How to use correctly

How to use Java Optional correctly, what to avoid and good practices: https://dzone.com/articles/using-optional-correctly-is-not-optional

Java 8

https://howtodoinjava.com/java-8-tutorial/

Java8 Streams, Thread pools and Parallelization

"Honestly, I had never heard of it, so I set out on my quest to find the answer somewhere on the Internet and make this post to attempt to follow up on the posted comment..." Read the article here: https://dzone.com/articles/common-fork-join-pool-and-streams

Clean your lambda's

soooo ... true https://dzone.com/articles/lambdas-and-clean-code

Java 8 - Splitting and processing streams

https://dzone.com/articles/an-introduction-to-functional-programming-in-java-8-part-4-splitter

REST with Spark

"Spark focuses on being as simple and straight-forward as possible, without the need for cumbersome (XML) configuration, to enable very fast web application development in pure Java with minimal effort..." http://sparkjava.com/documentation.html

Java Type Inference

"Type inference is a Java compiler's ability to look at each method invocation and corresponding declaration to determine the type argument (or arguments) that make the invocation applicable. The inference algorithm determines the types of the arguments and ..." http://docs.oracle.com/javase/tutorial/java/generics/genTypeInference.html

Java 8 / Collection.removeif()

... Java 8 introduced the  removeIf  method as a default method [...]  in the  Collection  interface. This new method 'removes all of the elements of this collection that satisfy the given predicate' https://dzone.com/articles/towards-more-functional-java-using-lambdas-as-pred?edition=233183&utm_source=Spotlight&utm_medium=email&utm_campaign=java%202016-10-25

Java 8 ... explained in ... minutes

https://blog.idrsolutions.com/2014/10/5-minutes-explanation-java-lambda-expression/ https://blog.idrsolutions.com/2014/11/java-8-streams-explained-5-minutes/ https://blog.idrsolutions.com/2015/01/java-8-default-methods-explained-5-minutes/ https://blog.idrsolutions.com/2015/03/java-8-consumer-supplier-explained-in-5-minutes/

API designers, be careful

"With Java 8, API design has gotten a whole lot more interesting, but also a bit harder. As a successful API designer, it will no longer suffice to think about all sorts of object-oriented aspects of your API, you will now also need to consider functional aspects of it." http://jaxenter.com/api-designers-be-careful-50448.html

Lambda Expressions in The New Java 8 Nashorn JS Engine

"In a recent post I took a look at how Java 8 and Scala implemented Lambda expressions. As we know Java 8 is not only introducing improvements to the javac compiler, It’s also introducing a new one altogether – Nashorn. This new engine is meant to replace Java’s existing JavaScript interpreter Rhino. This is supposed to bring the JVM to the forefront when it comes to executing JavaScript at speed, right there ...  " http://www.takipiblog.com/2014/02/10/java-8-compiling-lambda-expressions-in-the-new-nashorn-js-engine/

5 Features In Java 8 That WILL Change How You Code

"Java 8 is packed full of some really exciting features at both the JVM and language level. While some of the features initially envisioned for this release got scoped out or pushed out to release 9, there are literally dozens of new features. Many of the new additions are under-the-hood improvements either at the compiler, JVM or help-system level. As such ..." http://www.takipiblog.com/2014/03/18/5-features-in-java-8-that-will-change-how-you-code/