February 2014
Intermediate to advanced
160 pages
4h 59m
English
Design is not just what it looks like and feels like. Design is how it works.
OOP has become the de facto standard, but with lambda expressions in Java, we can pull a few more techniques out of our bag of design tricks. In Java, OOP and functional style can now complement each other and can nicely interplay. We can use these to create lightweight designs that are flexible to change and easier to extend.
We can replace interfaces, class hierarchies, and anonymous inner classes with concise code. We need fewer lines of code to get the same job done, and we can quickly try out new ideas.
In this chapter lambda expressions bring to life some neat design ideas; where we often use objects, we’ll ...
Read now
Unlock full access