Yakov Fain “Losing Polymorphism with Java Lambda Expressions”
Yakov Fain “Losing Polymorphism with Java Lambda Expressions”
Luxoft Training offers you to get acquainted with an article of IT-guru Yakov Fain «Losing Polymorphism with Java Lambda Expressions».
25 вер 2014
2341
Інші статті
How to debug and solve the issue of Datanodes which were reported as Bad nodes?
How to incrementally migrate the data from RDBMS to Hadoop using Sqoop Incremental Last Modified technique?
How to implement Slowly Changing Dimensions(SCD) Type 2 in Spark?
How to incrementally migrate the data from RDBMS to Hadoop using Sqoop Incremental Append technique?
Why MongoDB don't fetch all the matching documents for the query fired
How to solve the issue of full disk utilization in HDFS Namenode
Can We Use HDFS as Back-up Storage?
How to do Indexing in MongoDB with Elastic Search? Part 2
How to do Indexing in MongoDB with Elastic Search? Part 1
How to store data on browser using NoSQL IndexedDB?
Luxoft Training offers you to get acquainted with an article of IT-guru Yakov Fain «Losing Polymorphism with Java Lambda Expressions».
In his article, Yakov shows how to solve the same problem using the object-oriented programming and using lambda expressions. Also he proves that the loss of polymorphism is not always bad for the code.
How he did it?
He rewrote one of the examples, which he usually operated with during his Java training for explaining the polymorphism using a lambda expression. Despite the fact that lambda expressions are typical for functional programming style, while the polymorphism is one of the most important object-oriented principles, Yakov decided to try to mix the OOP and functional styles.
You can see the result here.