Lazy Loading via Java Lambda (Webinar #30)

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

After giving 'philosophical' argument you actually gave us perfect technical argument for code-less constructors. We want to be able to safely construct objects at any time without any failures (which is guaranteed by code-less constructors), and expect failures only while we use our objects

ClippyDoG
Автор

Very interesting.
Don't you sometimes feel that you're pulling a dirty trick on the users of your APIs when you hide checked exceptions?

llorllale
Автор

The video is very interesting and practical.
But I have a question.
Why you have decided to wrap the inner Scalar.class into a synchronized wrapper, what did the ReportWithStatistic.class thread safe too? But if we want the ReportWithStatistic.class be not thread safe (for performance aim, for an example). Is not better do a thread safe wrapper for the ReportWithStatistic.class? (new ThreadSafeReport(new ReportWithStatistic(...))

OlegSokolyaka
welcome to shbcf.ru