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

Amelia Bedelia Learns to Code

Kylie
April 21, 2015

Amelia Bedelia Learns to Code

My first conference talk. Originally given as part of the beginner track at Rails Conf 2015 in Atlanta, GA.

Kylie

April 21, 2015
Tweet

More Decks by Kylie

Other Decks in Programming

Transcript

  1. Amelia Bedelia Learns to Code
    Kylie Stradley
    Rails Conf 2015-Atlanta, GA

    View full-size slide

  2. Welcome to Atlanta

    View full-size slide

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

    View full-size slide

  4. Sound Familiar?

    View full-size slide

  5. Amelia the Developer
    Illustration from: “Amelia Bedelia, Bookworm”

    View full-size slide

  6. Amelia Saves the Day
    Illustration from: “Merry Christmas, Amelia Bedelia”

    View full-size slide

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

    View full-size slide

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

    View full-size slide

  9. “_WHY Ruby? _WHY not Ruby?”

    View full-size slide

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

    View full-size slide

  11. So what does Amelia do?

    View full-size slide

  12. Amelia edits the db/schema.rb

    View full-size slide

  13. the Rails Scaffold covers most things

    View full-size slide

  14. So what does Amelia do?

    View full-size slide

  15. Amelia uses Rails Scaffold for everything

    View full-size slide

  16. !!!!!!
    Got it!

    View full-size slide

  17. I want to write Rails like the designers intended

    View full-size slide

  18. So what does Amelia do?

    View full-size slide

  19. Writing Rails like DHH would

    View full-size slide

  20. !!!!!!
    Got it!

    View full-size slide

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

    View full-size slide

  22. So what does Amelia do?

    View full-size slide

  23. Amelia rakes the routes

    View full-size slide

  24. rake
    !=
    activate
    routes
    !=
    migrations

    View full-size slide

  25. “These gems are pretty handy!”

    View full-size slide

  26. So what does Amelia do?

    View full-size slide

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

    View full-size slide

  28. Not so
    fast! Got it!

    View full-size slide

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

    View full-size slide

  30. So what does Amelia do?

    View full-size slide

  31. Amelia adds the value to the params hash

    View full-size slide

  32. parameters
    != params
    oops!

    View full-size slide

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

    View full-size slide

  34. So what does Amelia do?

    View full-size slide

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

    View full-size slide

  36. that’s not really how it is though

    View full-size slide

  37. it’s more like this:

    View full-size slide

  38. these things happen

    View full-size slide

  39. beginners make a lot of mistakes

    View full-size slide

  40. and that’s okay

    View full-size slide

  41. advanced developers make a lot of mistakes

    View full-size slide

  42. and that’s okay, too

    View full-size slide

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

    View full-size slide

  44. Illustrations by:
    San Smith
    san-smith.com

    View full-size slide

  45. Kylie Farrah Stradley
    @kyfast
    kyfast.net

    View full-size slide