Leveraging Sealed Classes in Kotlin
summary
Shows how Kotlin’s sealed classes can be used as composite types to simplify common tasks like exception handling and modeling state, and compares those Kotlin approaches to traditional Java solutions. Includes concrete contrasts between Java idioms and Kotlin sealed-class patterns for representing and managing distinct cases.
AI-written summary · about
chapters (8)
- 0:00Start
- 1:42What is a failure?
- 4:23App is crashing!
- 15:56Advantages Sealed clas
- 17:13Failures vs Exc
- 22:30Business logic mixed with UI
- 38:20Advantages of Sea class
- 40:03Life lesson #2
related talks
35mSealed Classes, Unsealed Complexity
34mSealed Classes Opened My Mind: How We Use Kotlin to Tame State at Etsy
37mHow Kotlin Lets Us Remove Exceptions from Our Code
42mDissecting Kotlin: Unsealing the Sealed, the SAM, and Other Syntax
43mFrom Effective Java to Effective Kotlin
01h 03mHow Kotlin makes your Java code better
43mRepresenting State: the Kotlin Edition
30mWhat can Kotlin do for me?
