Design Patterns with a functional approach

Zenko Turek 6 років тому оновлено João Mota 8 місяців тому 2

Hi, would you be looking to update the Java code examples to use the more modern Java 8 idioms? For example, in the Decorator pattern you can use a more functional approach. It would be good to describe both ways as each as an advantage. 


Thanks for the great suggestion, Zen! I'll provide the alternative versions once I get some spare time. If you'd like to help, feel free to point me into other examples where the changes can be applied.

I think it would really add value. Take a look at the examples for Decorator, Template and Builder here for some good examples; http://publicstaticmain.blogspot.ca/2016/05/template-method-and-builder-pattern.html