$30 off During Our Annual Pro Sale. View Details »

Awesome Extractions Done Quick

Awesome Extractions Done Quick

Given at RailsConf 2016. Workshop content: https://git.io/vwdBF

Nick Quaranto

May 05, 2016
Tweet

More Decks by Nick Quaranto

Other Decks in Programming

Transcript

  1. RailsConf 2016 ~ @qrush
    Awesome
    Extractions
    Done Quick

    View Slide

  2. View Slide

  3. View Slide

  4. https://git.io/vwdBF
    INSTALL

    View Slide

  5. https://git.io/vwdBF
    Your
    Toolbox

    View Slide

  6. https://git.io/vwdBF

    View Slide

  7. https://git.io/vwdBF
    What is an
    extraction?

    View Slide

  8. https://git.io/vwdBF
    ABSTRACTION

    View Slide

  9. https://git.io/vwdBF
    Extract
    Method

    View Slide

  10. https://git.io/vwdBF
    DRY

    View Slide

  11. https://git.io/vwdBF
    "Hoist"

    View Slide

  12. https://git.io/vwdBF
    “Often, the hard part
    of eliminating
    duplication is
    spotting it in the
    first place.”
    http://martinfowler.com/ieeeSoftware/repetition.pdf

    View Slide

  13. https://git.io/vwdBF
    Cycle of
    design

    View Slide

  14. https://git.io/vwdBF

    View Slide

  15. https://git.io/vwdBF
    Skyway

    View Slide

  16. Screenshot

    View Slide

  17. Real

    View Slide

  18. Setlist

    View Slide

  19. Edit

    View Slide

  20. ERD

    View Slide

  21. Setlist Zoom

    View Slide

  22. View Slide

  23. Show Explain
    Show

    View Slide

  24. Setlist Explain
    Setlist

    View Slide

  25. Slot Explain
    Slot

    View Slide

  26. Announcement

    View Slide

  27. Announcement
    Explain

    View Slide

  28. https://git.io/vwdBF
    Quick

    View Slide

  29. https://git.io/vwdBF
    LEVEL 0:
    Tools

    View Slide

  30. https://git.io/vwdBF
    LEVEL 1:
    Model to Lib

    View Slide

  31. https://git.io/vwdBF
    LEVEL 2:
    Lib to Gem

    View Slide

  32. https://git.io/vwdBF
    LEVEL 3:
    Gem Detour

    View Slide

  33. https://git.io/vwdBF
    LEVEL 4:
    Engines

    View Slide

  34. https://git.io/vwdBF
    LEVEL 5:
    BONUS

    View Slide

  35. https://git.io/vwdBF
    INSTALL

    View Slide

  36. Wrapup!

    View Slide

  37. Thanks!
    Stuck? Need help? No problem.
    @qrush
    [email protected]

    View Slide