Summary : Proxy Objects and Lazy Evaluation
A summary of what we discussed in the “Proxy Objects and Lazy Evaluation” chapter.
In this chapter, you learned the difference between lazy evaluation and eager evaluation. You also learned how to use hidden proxy objects to implement lazy evaluation behind the scenes, meaning that you now understand how to implement lazy evaluation optimizations while preserving the easy-to-use interface of your classes. Hiding complex optimizations inside library classes instead of having them exposed in the application code makes the application code more readable and less error-prone.
Get hands-on with 1400+ tech skills courses.