Life Without Fragments (with Eugenio Marletti)

Life Without Fragments (with Eugenio Marletti)

Video: https://www.youtube.com/watch?v=jl1HRiCaAP4

What is wrong with Fragments as they are implemented right now? You hear a lot of rage around bugs, issues, and plain bad/obscure APIs. But what alternatives are out there?
Most of the time, Fragments are used as custom Views. But that’s overkill for Fragments, and it’s not what they’re meant for, either: they can do way more than that (and probably shouldn’t). The talk will run through the architectural choices that we found out helped us create great apps without getting lost in Fragment hell. Because #fragmentsmatter, but not more than… [dramatic music mounts to climax, screen fades to black. "TO BE CONTINUED" appears on screen]

--------

Source keynote and PDF export available here: http://bit.ly/life-without-sources

4580c218737149bf44d012a110612010?s=128

Sebastiano Poggi

April 21, 2016
Tweet

Transcript

  1. 12.
  2. 13.
  3. 14.
  4. 15.
  5. 19.

    Nobody understands Fragments Balto not a view, not a controller

    * also not a context * modular UI * lifecycle *
  6. 23.

    they can * Google says so * all the “free”

    stuff * don’t fully understand * (mis)use Why do people still Fragments
  7. 27.

    Fragments are evolving * lots of fixes and less WTFs

    * commitNow Thanks Adam! (sorry Adam)
  8. 28.

    Partial alternatives pyricau/fragnums * weefbellington/screenplay * lyft/scoop * bluelinelabs/conductor *

    doridori/pilot * soundcloud/lightcycle * square/flow + /mortar * * FRAGNUMS * Screenplay * Scoop * Conductor * Pilot * LightCycle * Flow + Mortar to Fragments
  9. 29.

    ? custom views * clean architecture * SOLID * core

    vs mobile * write tests * unidirectional flow? * How are we dealing without Fragments
  10. 30.

    Relax, not using Fragments is OK * using Fragments is…

    also OK * be a professional * use the Support Library * pray * pray a lot * we are not your supervisor
  11. 31.

    Bunch o’ Advocating Against Android Fragments * Android Forestry *

    Offline Application Architecture * Android Fragment & Activity Lifecycle * Let it flow * * goo.gl/VDMhs0 * goo.gl/GN0rmP * goo.gl/P2ROcA * goo.gl/K4nThH * goo.gl/LNije5 links
  12. 33.
  13. 34.

    Android Pro >> Novoda Google Developer Expert @seebrock3r Clue <<

    Android Lead loves Tequila @workingkills we’re hiring Poggi Sebastiano MARLETTI EUGENIO bit.ly/life-without-fragments