~/talk

Transforming Your Code to Java 8

Talkat Great Indian Developer Summit 2015 · 2015-04-21..04-24· [java]
slides:none on file

Shows concrete Java 8 rewrites: replace indexed Thread creation with lambdas and IntStream.range to remove mutable i and final hacks, find 100 primes with an infinite Stream.iterate plus filter map limit collect to List, list directory names via streams and Collectors.joining, sort with Comparator.comparing instead of mutating input, and replace finalize with try-with-resources and an execute‑around pattern using Consumer. Each refactor compiles and runs, cuts ceremony, and keeps behavior identical while improving clarity.

AI-written summary · about

  1. 0:00Introduction to Java 8
  2. 3:30Refactoring imperative code
  3. 15:51Functional style examples
  4. 27:43File handling with streams
  5. 34:19Sorting with comparators
  6. 41:52Resource management patterns
  7. 53:57Conclusion and paradigm shift
~/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.