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

How Ruby Programmed Me

How Ruby Programmed Me

Closing keynote in RubyConf Uruguay 2013

Jano González

March 23, 2013
Tweet

More Decks by Jano González

Other Decks in Programming

Transcript

  1. HOW RUBY
    PROGRAMMED ME

    View Slide

  2. @janogonzalez

    View Slide

  3. @hop_in

    View Slide

  4. @dynlangchile

    View Slide

  5. @dynlangchile

    View Slide

  6. LANGUAGE
    &
    THOUGHT

    View Slide

  7. LANGUAGE
    SHAPES OUR
    THOUGHT
    HOW

    View Slide

  8. CHICKEN
    /
    EGG

    View Slide

  9. DISCLAIMER

    View Slide

  10. NOT A
    LINGUIST

    View Slide

  11. NOT A
    NEUROSCIENTIST

    View Slide

  12. NOT A
    PHILOSOPHER

    View Slide

  13. JUST MY
    EXPERIENCE

    View Slide

  14. AND OPINIONS

    View Slide

  15. DON’T WORRY

    View Slide

  16. PROGRAMMER’S
    BRAIN

    View Slide

  17. OUR BRAIN

    View Slide

  18. LANGUAGES
    SHAPE YOUR
    THOUGHT
    WHICH

    View Slide

  19. THE PROBLEM

    View Slide

  20. “Ars longa, vita brevis”
    –Hippocrates

    View Slide

  21. HOW TO CHOOSE

    View Slide

  22. “A language that doesn't affect
    the way you think about
    programming, is not worth
    knowing.”
    –Alan Perlis

    View Slide

  23. PARADIGMS

    View Slide

  24. SINTAX

    View Slide

  25. IDIOMS

    View Slide

  26. COMMUNITY

    View Slide

  27. RUBY

    View Slide

  28. BLOCKS
    File.open('my.txt').each do |line|
    puts line if line =~ /jano/
    end

    View Slide

  29. JAVASCRIPT

    View Slide

  30. PROTOTYPES
    function Person(name) {
    this.name = name;
    }
    Person.protoype.sayHi = function() {
    return “Hi, I’m “ + this.name;
    };
    var jano = new Person(‘Jano’);
    jano.sayHi();

    View Slide

  31. PYTHON

    View Slide

  32. INDENTATION
    def median(pool):
    copy = sorted(pool)
    size = len(copy)
    if size % 2 == 1:
    return copy[(size - 1) / 2]
    else:
    return (copy[size/2 - 1] + copy[size/2]) / 2

    View Slide

  33. LISP

    View Slide

  34. MACROS
    (defmacro for ((var start stop) &body body)
    (let ((gstop (gensym)))
    `(do ((,var ,start (1+ ,var))
    (,gstop ,stop))
    ((> ,var ,gstop))
    ,@body)))

    View Slide

  35. HASKELL

    View Slide

  36. PATTERN MATCHING
    map _ [] = []
    map f (x:xs) = f x : map f xs

    View Slide

  37. FORTH

    View Slide

  38. STACK BASED
    : STAR! ( -- )
    42 EMIT ;
    : STARS!( n -- )
    0 DO STAR LOOP ;
    CR 7 STARS

    View Slide

  39. REMIX IT!

    View Slide

  40. LANGUAGES
    SHAPE YOUR
    THOUGHT
    LET

    View Slide

  41. “The determined Real
    Programmer can write
    FORTRAN programs in any
    language.”
    –Ed Post

    View Slide

  42. “The determined Real
    Programmer can write
    FORTRAN programs in any
    language.”
    –Ed Post
    close-minded?
    C, Ruby, Lisp, etc

    View Slide

  43. ARE YOU CHUCK?

    View Slide

  44. ॳ৺

    View Slide

  45. BEGINNER’S
    MIND

    View Slide

  46. OPENNESS

    View Slide

  47. A CUP OF TEA

    View Slide

  48. EMPTY YOUR CUP

    View Slide

  49. कഁ཭

    View Slide

  50. कഁ཭

    View Slide

  51. PROTECT
    /
    OBEY
    SHU

    View Slide

  52. कഁ཭

    View Slide

  53. DETACH
    /
    DISGRESS
    HA

    View Slide

  54. कഁ཭

    View Slide

  55. LEAVE
    /
    SEPARATE
    RI

    View Slide

  56. View Slide

  57. HEY! THIS IS A
    RUBY
    CONFERENCE

    View Slide

  58. RUBY
    &
    MY BRAIN

    View Slide

  59. RUBY
    CHANGED
    MY BRAIN
    HOW

    View Slide

  60. A TALE OF TWO
    DEVELOPERS

    View Slide

  61. HACKER
    V/S
    THINKER

    View Slide

  62. HACKER

    View Slide

  63. GET THINGS
    DONE
    HACKER

    View Slide

  64. FAST
    HACKER

    View Slide

  65. HACKS
    HACKER

    View Slide

  66. MAINTENANCE
    NIGHTMARE
    HACKER

    View Slide

  67. NEEDS MORE DUCT TAPE

    View Slide

  68. THINKER

    View Slide

  69. THINKS ABOUT
    ABSTRACTIONS
    THINKER

    View Slide

  70. THINKS ABOUT
    MANTAINABILITY
    THINKER

    View Slide

  71. TOO MANY
    ABSTRACTIONS
    THINKER

    View Slide

  72. ANALYSIS
    PARALYSIS
    THINKER

    View Slide

  73. NEEDS MORE LAYERS

    View Slide

  74. MY STORY

    View Slide

  75. THE HACKER YEARS

    View Slide

  76. THE HACKER YEARS

    View Slide

  77. THE LEARNING YEARS

    View Slide

  78. THE UML YEARS

    View Slide

  79. THE UML YEARS

    View Slide

  80. THE HACKER
    WAS GONE

    View Slide

  81. UML, RUP, GoF,
    XML, ETC.

    View Slide

  82. STOCKHOLM
    SYNDROME

    View Slide

  83. EVOLUTION?

    View Slide

  84. THE ONE TRUE WAY™

    View Slide

  85. THE PATH?

    View Slide

  86. FEAR

    View Slide

  87. I WAS SO
    WRONG!

    View Slide

  88. EVERYDAY LIFE
    IS THE PATH

    View Slide

  89. ENTER
    RUBY

    View Slide

  90. SMALLTALK IN
    PERL’S DISGUISE

    View Slide

  91. HAPPY
    THINKER

    View Slide

  92. THINKER
    class AccountProtectionProxy
    def initialize(real_account, owner_name)
    @subject = real_account
    @owner_name = owner_name
    end
    def method_missing(name, *args)
    check_access
    @subject.send( name, *args )
    end
    ...
    end

    View Slide

  93. OMG! GoF NEVER
    WAS SO EASY

    View Slide

  94. HAPPY
    HACKER

    View Slide

  95. HACKER
    $1 if str ~= /(foo)+/

    View Slide

  96. ONE LINERS FTW!

    View Slide

  97. HACKER

    THINKER

    View Slide

  98. LET’S WORK
    TOGETHER

    View Slide

  99. HARMONY

    View Slide

  100. HARMONY
    (1..42).select(&:even?).
    map { |n| n * 2 }.
    reduce(&:*)

    View Slide

  101. THE PATH IS
    NO PATH

    View Slide

  102. WEIRD
    FACT

    View Slide

  103. (EVERY DEVELOPER IS A
    MANAGER)

    View Slide

  104. (OMG)

    View Slide

  105. RUBY
    &
    MY LIFE

    View Slide

  106. RUBY
    CHANGED
    MY LIFE
    HOW

    View Slide

  107. NEW GIGS

    View Slide

  108. CONFERENCES

    View Slide

  109. CONFERENCES

    View Slide

  110. NEW FRIENDS

    View Slide

  111. CRAZY FRIENDS

    View Slide

  112. I

    .RB

    View Slide

  113. I

    .UY

    View Slide

  114. I

    .AR

    View Slide

  115. RUBY
    &
    YOUR LIFE

    View Slide

  116. RUBY
    CHANGE
    YOUR LIFE
    LET

    View Slide

  117. PROGRAMMING
    CHANGE
    YOUR LIFE
    LET

    View Slide

  118. FORK & MERGE

    View Slide

  119. LEARN

    View Slide

  120. HAVE
    FUN

    View Slide

  121. SHARE

    View Slide

  122. (AND REPEAT)
    loop do
    learn
    have_fun
    share
    end

    View Slide

  123. THANKS!

    View Slide