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

Amelia Bedelia Learns to Code-RubyConf Portugal 2015

Kylie
September 14, 2015

Amelia Bedelia Learns to Code-RubyConf Portugal 2015

Slides used in conjunction with my talk at RubyConf Portugal 2015.

Kylie

September 14, 2015
Tweet

More Decks by Kylie

Other Decks in Programming

Transcript

  1. Amelia Bedelia Learns to Code
    Kylie Stradley

    View full-size slide

  2. I’m not here to tell you about me though

    View full-size slide

  3. Illustration from: http://www.harpercollinschildrens.com/kids/gamesandcontests/features/amelia/
    One Ring inscription by Sauron, Mt Doom

    View full-size slide

  4. any current or former children in
    the audience?

    View full-size slide

  5. Meet Amelia Bedelia
    Illustration from: “Calling Doctor Amelia Bedelia”

    View full-size slide

  6. idiom > sum of its parts

    View full-size slide

  7. “Take a hike!”

    View full-size slide

  8. Amelia Does Her Best
    Illustration from: “Merry Christmas, Amelia Bedelia”

    View full-size slide

  9. Sound Familiar?

    View full-size slide

  10. Amelia, Beginner Developer
    Illustration from: “Amelia Bedelia, Bookworm”

    View full-size slide

  11. Amelia Bedelia Learns to Code
    by: Kylie Stradley
    illustrations by: San Smith
    inspired by: Peggy & Herman Parish

    View full-size slide

  12. 01101000
    01101001
    Nice to
    meet you :]
    “Talking to a computer? That sounds like fun!”

    View full-size slide

  13. “_WHY Ruby? _WHY not Ruby?”

    View full-size slide

  14. “This Ruby on Rails stuff is easy!”

    View full-size slide

  15. So what does Amelia do?

    View full-size slide

  16. Amelia edits the db/schema.rb

    View full-size slide

  17. the Rails Scaffold covers most things

    View full-size slide

  18. So what does Amelia do?

    View full-size slide

  19. Amelia uses Rails Scaffold for everything

    View full-size slide

  20. Not
    so
    fast!
    Got
    it!

    View full-size slide

  21. I want to write Rails like the designers intended

    View full-size slide

  22. So what does Amelia do?

    View full-size slide

  23. Writing Rails like DHH would

    View full-size slide

  24. Not
    so
    fast!
    Got
    it!

    View full-size slide

  25. “I need to make a lot of routes”

    View full-size slide

  26. So what does Amelia do?

    View full-size slide

  27. Amelia rakes the routes

    View full-size slide

  28. rake
    !=
    activate
    routes
    !=
    migrations

    View full-size slide

  29. “These gems are pretty handy!”

    View full-size slide

  30. So what does Amelia do?

    View full-size slide

  31. Carrie & Fred say, “Put a gem on it!”

    View full-size slide

  32. Not
    so
    fast!
    Got
    it!

    View full-size slide

  33. “I know what do with params in a Rails app”

    View full-size slide

  34. So what does Amelia do?

    View full-size slide

  35. Amelia adds the value to the params hash

    View full-size slide

  36. parameters
    != params
    oops!

    View full-size slide

  37. “I’ve made that mistake with dates before too”

    View full-size slide

  38. So what does Amelia do?

    View full-size slide

  39. Amelia uses DateTime when she needs dates, even for cakes!

    View full-size slide

  40. what a nice story, right?

    View full-size slide

  41. it’s more like this:
    you never really stop making mistakes

    View full-size slide

  42. I certainly haven’t

    View full-size slide

  43. these things happen

    View full-size slide

  44. beginners make a lot of mistakes

    View full-size slide

  45. and that’s okay

    View full-size slide

  46. advanced developers make a
    lot of mistakes

    View full-size slide

  47. and that’s okay, too

    View full-size slide

  48. what is important is that we share
    our mistakes

    View full-size slide

  49. you never really stop making mistakes

    View full-size slide

  50. a place that’s safe to make
    mistakes is a place that’s safe to
    learn

    View full-size slide

  51. Illustrations by:
    San Smith
    san-smith.com
    The End

    View full-size slide

  52. @kyfast
    Kylie
    Farrah
    Stradley

    View full-size slide