Lazy Evaluation Pattern
The lazy Loading pattern is very interesting because allows us to make the code starter and also delays expensive computations to an appropriate moment. There is a way to combine this pattern with Java 8 Functional Interfaces and make it even more interesting and java idiomatic. This pattern is used by Spring and Hibernate. You can use it too. So today I have a video and some POC code. Let's get started!
The Video
The Code
https://github.com/diegopacheco/java-pocs/tree/master/pocs/design-patterns
Cheers,
Diego Pacheco