~/talk

Effective Java with Groovy & Kotlin

Talkat Conf42 Enterprise Software 2021 · 2021-03-25..05-05· [java]
linkedin:nareshak
slides:none on file

Shows concrete replacements for boilerplate: Groovy uses @EqualsAndHashCode, @Immutable and @Delegate AST transformations to generate equals/hashCode, final fields and delegation at compile time while Kotlin uses data class, nonnullable types and `by` delegation to get the same results. Demonstrates Groovy's null object that returns empty collections instead of NPEs and Kotlin's compile‑time nullable checks, compares collect/map/fold idioms, warns that compiler generated code beats IDE generation, and shows these features actually prevent common bugs.

AI-written summary · about

  1. 0:00Introduction
  2. 1:19JVM as polyglot platform
  3. 2:25Effective Java’s influence
  4. 4:11Examples in Groovy/Kotlin
  5. 6:21Overriding equals in Groovy
  6. 12:45equals/hashCode in Kotlin
  7. 15:40Prefer internal iterators
  8. 18:50Null object pattern in Groovy
  9. 21:43Kotlin null safety
  10. 23:29Minimizing mutability in Groovy with AST transformations
  11. 26:44Immutable classes in Kotlin
  12. 28:32Composition over inheritance
  13. 31:21Kotlin delegation
  14. 32:46Compiler vs IDE code
  15. 34:33Idiomatic practices
  16. 35:36Learning languages improves Java
  17. 36:39Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.