~/talk

Ten Common mistakes made in Functional Java

Talkat Jfokus 2019 · 2019-02-04..02-06· [java, functional-programming]
slides:none on file

Ten concrete Java pitfalls with fixes and code patterns: avoid large block lambdas — extract named methods; stop returning Streams as reusable data; never rely on peek for side effects or mutate shared objects in map — return new immutable copies; replace repeated forEach stages with a single pipeline to speed batch jobs; order operations correctly (distinct vs limit) and avoid accidental infinite streams; use Optional APIs (map, ifPresent, orElseGet) instead of isPresent/orElse side effects; handle checked exceptions in lambdas by lifting to Either or using Vavr Try.

AI-written summary · about

  1. 0:00Intro
  2. 2:27Introduction
  3. 5:48Doing too much in a single lambda
  4. 8:57Returning a stream
  5. 14:34Mutable objects
  6. 15:05Functional programming
  7. 16:23Mutable data
  8. 17:16State changes
  9. 22:50What is functional programming
  10. 25:56Order of operations
  11. 27:19Unit test
  12. 33:57If Statement
  13. 45:36Exception
  14. 46:01Block lambdas
  15. 47:46Checked exceptions
  16. 50:56The eater type
  17. 52:01The lift type
  18. 53:36The pair type
~/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.