Tag Archives: Java 8

ECMAScript 6 Features: Comparison between ECMA5 and ECMA6 features

via dnbard/es6-guide · GitHub.

Arrows are a function shorthand using the => syntax. They are syntactically similar to the related feature in C#, Java 8 and CoffeeScript. They support both expression and statement bodies. Unlike functions, arrows share the same lexical this as their surrounding code.

How to Translate SQL GROUP BY and Aggregations to Java 8

I couldn’t resist. I have read this question by Hugo Prudente on Stack Overflow. And I knew there had to be a better way than what the JDK has to offer. The question reads: I’m looking for a lambda to refine the data already retrieved. I have a raw resultset, if the user do not […]


Object Functional Paradigm – Subsume the Strategy Pattern

inspired by quote from Venkat Subramanium in his book “Functional Programming in Java 8”.
“The common, familiar design patterns are more approachable when we design with lambda expressions; we need fewer lines of code, classes, and interfaces, and far less ceremony to implement our designs.”
Other inspirations are Dhaval Dalal who lately got us introduced to Functional Programming. And lastly Naresh Jain whose Object Boot Camp provoked a thought of building a good habit of writing Blogs for our own good.


Elegant Factory using Functions as first class citizens

The main intent behind a Factory pattern described generically is to  “Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a class defer instantiation to subclass.” Factory pattern is one of the commonly applicable pattern […]


Common SQL Clauses and Their Equivalents in Java 8 Streams

via Common SQL Clauses and Their Equivalents in Java 8 Streams | Java, SQL and jOOQ..

Functional programming allows for quasi-declarative programming in a general purpose language. By using powerful fluent APIs like Java 8’s Stream API, or jOOλ’s sequential Stream extension Seq or more sophisticated libraries like javaslang or functionaljava, we can express data transformation algorithms in an extremely concise way. Compare Mario Fusco’s imperative and functional version of the same algorithm:

WebSocket JavaFX Sketch App. Tutorial (Tomcat 8 + Java 8)

Website + download source code @ http://www.zaneacademy.com 00:50 Is JavaFX included with the standard JDK 1.8 download bundle? 02:30 What is a WebSocket ServerEndpoint? 04:00 What is a WebSocket ClientEndpoint? 04:45 What is a WebSocket Encoder? 05:00 What is a WebSocket Decoder? 05:30 How to download and use JSON in a java application? 06:00 What […]


Transform Your SQL Data into Charts Using jOOQ and JavaFX

In the recent past, we’ve shown how Java 8 and functional programming will bring a new perspective to Java developers when it comes to functional data transformation of SQL data using jOOQ and Java 8 lambdas and Streams. Today, we take this a step further and transform the data into JavaFX XYChart.Series to produce nice-looking […]