Upgrade to Pro — share decks privately, control downloads, hide ads and more …

[Mateusz Herych] Guava beyond Collections

[Mateusz Herych] Guava beyond Collections

Presentation from GDG DevFest - the biggest Google related event in Ukraine. October 24-25, Lviv. Learn more at http://devfest.gdg.org.ua/

Google Developers Group Lviv

October 25, 2014
Tweet

More Decks by Google Developers Group Lviv

Other Decks in Programming

Transcript

  1. class Person { private final String firstName; private final String

    lastName; public Person(String firstName, String lastName) { this.firstName = firstName; this.lastName = lastName; } }
  2. class Person { private final String firstName; private final String

    lastName; public Person(String firstName, String lastName) { this.firstName = firstName; this.lastName = lastName; } public String getFirstName() { return firstName; } public String getLastName() { return lastName; } }
  3. Wikipedia In programming, nullable types are a feature of the

    type system of some programming languages which allow the value to be set to the special value NULL instead of the usual possible values of the data type. In statically-typed languages, a nullable type is an option type (in functional programming terms), while in dynamically-typed languages (where values have types, but variables do not), equivalent behavior is provided by having a single null value.
  4. Sir Tony Hoare “I call it my billion-dollar mistake. It

    was the invention of the null reference in 1965.”
  5. Mutable state - Race conditions (multiple threads anyone?) - Harder

    debugging (what/who caused THAT change to my object?)
  6. Mutable state - Race conditions (multiple threads anyone?) - Harder

    debugging (what/who caused THAT change to my object?) - Do you trust your libraries?
  7. ?