Ce diaporama a bien été signalé.
Nous utilisons votre profil LinkedIn et vos données d’activité pour vous proposer des publicités personnalisées et pertinentes. Vous pouvez changer vos préférences de publicités à tout moment.
Prochain SlideShare
PrisonReport040212
PrisonReport040212
Chargement dans…3
×
1 sur 109

Ruby monsters

1

Partager

Télécharger pour lire hors ligne

An exploration of the forgotten and dusty corners of Ruby, including a tour of some very unusual behaviors from threads, loops, exceptions and procs. This is a technical deep dive into some obscure features of Ruby that may someday crawl out from under your bed, and when they do you'll be glad you were prepared for the fight.

Ruby monsters

  1. 1. I’m Jonan also @1337807
  2. 2. I’m from Portland
  3. 3. They call me Webmaster
  4. 4. Also New Relic
  5. 5. One of us bit.ly/nerdlife
  6. 6. Ruby Monsters!
  7. 7. Oddities
  8. 8. Ruby is adorable
  9. 9. begin; end A neutral, hypoallergenic code wrapper made of opinions.
  10. 10. do while
  11. 11. ensure When you absolutely, probably, maybe need it done approximately right.
  12. 12. Thread#raise
  13. 13. “I don’t use Thread#raise.”
  14. 14. Net/HTTP
  15. 15. flip-flop When only the occasional truth will do.
  16. 16. (expr1)..(expr2) inclusive, evaluates both expressions on each pass (expr1)…(expr2) exclusive, evaluates one expression per iteration
  17. 17. scope Like voting districts for your code, with more gerrymandering.
  18. 18. closures They’re exactly like that one thing from that one language except sometimes when they’re not.
  19. 19. portable code pods bits of code that travel a lot, but never forget their roots.
  20. 20. blocks
  21. 21. Integer#times
  22. 22. procs
  23. 23. lambdas
  24. 24. blocks and procs - arbitrary arguments! - return home lambdas - strict arguments! - local return
  25. 25. goto!
  26. 26. I’m Jonan also @1337807
  27. 27. I’m from Portland
  28. 28. They call me Webmaster
  29. 29. I work for New Relic
  30. 30. One of us bit.ly/nerdlife
  31. 31. Ruby Monsters!
  32. 32. ! the end :)

×