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

The Road To Code: Ruby

The Road To Code: Ruby

359024e7132672aaeef4a3e792be4ae5?s=128

Brooks Swinnerton

May 25, 2016
Tweet

Transcript

  1. None
  2. Hi, I’m Brooks

  3. I work for !

  4. We use Ruby

  5. and so can you

  6. What is it?

  7. Ruby is friendly

  8. Ruby is approachable

  9. require 'net/http' require 'json' uri = URI('https://www.reddit.com/r/CatsStandingUp.json') response = Net::HTTP.get(uri)

    parsed_response = JSON.parse(response) posts = parsed_response['data']['children'] html = "" posts.each do |post| thumbnail = post['data']['thumbnail'] html << "<img src='#{thumbnail}' />" end File.write('cats_standing_up.html', html)
  10. None
  11. What are its use cases?

  12. Automation

  13. The web (Rails)

  14. APIs

  15. Should it be my first language?

  16. Yes.

  17. Where does it shine?

  18. Readability

  19. Prototyping

  20. Where does it not?

  21. “at scale”* * Not really

  22. How can you get started?

  23. http://tryruby.org

  24. The Ruby style guide

  25. Thanks Follow me on twitter / github: @bswinnerton