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

GCRC 2015: Abstract Thoughts on Abstract Things

GCRC 2015: Abstract Thoughts on Abstract Things

Opening keynote for Garden City Ruby Conf 2015.

Konstantin Haase

January 10, 2015
Tweet

More Decks by Konstantin Haase

Other Decks in Technology

Transcript

  1. Abstract Thoughts
    on
    Abstract Things

    View full-size slide

  2. “Anything that is in the world when you’re born is
    normal and ordinary and is just a natural part of
    the way the world works.
    !
    Anything that's invented between when you’re
    fifteen and thirty-five is new and exciting and
    revolutionary and you can probably get a career
    in it.
    !
    Anything invented after you're thirty-five is
    against the natural order of things”
    –Douglas Adams

    View full-size slide

  3. Computer Science

    View full-size slide

  4. Colour Perception

    View full-size slide

  5. Conclusion
    spoiler alert

    View full-size slide

  6. Abstraction happens
    in our minds

    View full-size slide

  7. Abstractions shape
    how we perceive things

    View full-size slide

  8. Changing abstractions is
    a basic principle of
    innovation and progress

    View full-size slide

  9. Abstraction is the basis
    of Computer Science

    View full-size slide

  10. Abstraction is the basis
    of Computer Science

    View full-size slide

  11. Patterns and
    Algorithms

    View full-size slide

  12. Is magenta real?

    View full-size slide

  13. Data Abstraction

    View full-size slide

  14. “Dataless
    Programming”
    RM Balzer - 1967

    View full-size slide

  15. Are we still talking
    about abstraction?

    View full-size slide

  16. Control Abstraction

    View full-size slide

  17. “Go To Statement
    considered harmfull”
    Edsger Dijkstra, 1968

    View full-size slide

  18. “Protection in
    Programming Languages"
    James H. Morris Jr., 1973

    View full-size slide

  19. You should be able to
    reason about modules in
    isolation

    View full-size slide

  20. “Global Variables
    Considered Harmful”
    W.A. Wulf, M. Shaw, 1973

    View full-size slide

  21. Tetrachromacy

    View full-size slide

  22. The dimensionality of color vision in carriers
    of anomalous trichromacy
    Institute of Neuroscience, Newcastle University,
    Newcastle upon Tyne, UK
    Gabriele Jordan
    Departments of Medicine and Genome Sciences,
    University of Washington, Seattle, USA
    Samir S. Deeb
    Department of Experimental Psychology, University of
    Cambridge, Cambridge, UK
    Jenny M. Bosten
    Department of Experimental Psychology, University of
    Cambridge, Cambridge, UK
    J. D. Mollon
    Some 12% of women are carriers of the mild, X-linked forms of color vision deficiencies called “anomalous trichromacy.”
    Owing to random X chromosome inactivation, their retinae must contain four classes of cone rather than the normal three;
    and it has previously been speculated that these female carriers might be tetrachromatic, capable of discriminating spectral
    stimuli that are indistinguishable to the normal trichromat. However, the existing evidence is sparse and inconclusive. Here,
    we address the question using (a) a forced-choice version of the Rayleigh test, (b) a test using multidimensional scaling to
    reveal directly the dimensionality of the participants’ color space, and (c) molecular genetic analyses to estimate the X-linked
    cone peak sensitivities of a selected sample of strong candidates for tetrachromacy. Our results suggest that most carriers of
    color anomaly do not exhibit four-dimensional color vision, and so we believe that anomalous trichromacy is unlikely to be
    maintained by an advantage to the carriers in discriminating colors. However, 1 of 24 obligate carriers of deuteranomaly
    exhibited tetrachromatic behavior on all our tests; this participant has three well-separated cone photopigments in the long-
    wave spectral region in addition to her short-wave cone. We assess the likelihood that behavioral tetrachromacy exists in the
    human population.
    Keywords: color vision, psychophysics, human, tetrachromacy, anomalous trichromacy
    Citation: Jordan, G., Deeb, S. S., Bosten, J. M., & Mollon, J. D. (2010). The dimensionality of color vision in carriers of
    anomalous trichromacy. Journal of Vision, 10(8):12, 1–19, http://www.journalofvision.org/content/10/8/12, doi:10.1167/10.8.12.
    Journal of Vision (2010) 10(8):12, 1–19 http://www.journalofvision.org/content/10/8/12 1

    View full-size slide

  23. 2-3% of all women?
    12% of all women?
    50% of all women?

    View full-size slide

  24. Gene on X
    chromosome
    OPN1MW and OPN1MW2

    View full-size slide

  25. Women could have up
    to six colour cones

    View full-size slide

  26. Mostly dysfunctional

    View full-size slide

  27. a few confirmed cases

    View full-size slide

  28. Seeing millions of
    more colours

    View full-size slide

  29. Concetta Antico

    View full-size slide

  30. Object Oriented
    Programming

    View full-size slide

  31. #alankayholdingthings

    View full-size slide

  32. –Alan Kay
    “OOP to me means only messaging, local
    retention and protection and hiding of state-
    process, and extreme late-binding of all things.”

    View full-size slide

  33. Data Abstraction +
    Control Abstraction =
    Object Oriented Programming

    View full-size slide

  34. Why dysfunctional?
    (my own unscientific theory)

    View full-size slide

  35. We don’t see colours
    with our eyes

    View full-size slide

  36. We see colours with
    our brain

    View full-size slide

  37. Our brain adjusts
    colours

    View full-size slide

  38. We don’t see colours we
    don’t have an abstract
    concept for

    View full-size slide

  39. When we learn to speak, colour
    perception switches from left
    brain side to right brain side

    View full-size slide

  40. We make the rules

    View full-size slide

  41. Some rules enable
    good programs
    (For some definition of good.)

    View full-size slide

  42. Single Responsibility
    Principle

    View full-size slide

  43. Liskov Substitution
    Principle

    View full-size slide

  44. Law of Demeter

    View full-size slide

  45. Don’t abstract too
    much, too early

    View full-size slide

  46. Strong external
    abstractions allow weak
    internal abstractions

    View full-size slide

  47. Distributed
    Applications

    View full-size slide

  48. Is magenta a colour?

    View full-size slide

  49. Type Hierarchy
    Liskov Substitution Principle

    View full-size slide

  50. Implementation
    Sharing

    View full-size slide

  51. Are we doing it right?

    View full-size slide

  52. Classes ≠ OOP

    View full-size slide

  53. Colour and
    Abstraction

    View full-size slide

  54. Himba Tribe (Namibia)

    View full-size slide

  55. zuzu: dark shades of blue, red, green
    and purple
    !
    vapa: white, some shades of yellow
    !
    buru: some shades of green and blue
    !
    dambu: some shades of green, red
    and brown

    View full-size slide

  56. Abstractions and
    Security

    View full-size slide

  57. Most attacks rely on switching
    up or down abstraction levels

    View full-size slide

  58. Business Logic
    only exists in our minds

    View full-size slide

  59. Object Oriented
    Programming
    only exists in our minds

    View full-size slide

  60. Colours
    only exist in our minds

    View full-size slide

  61. UI elements
    only exist in our minds

    View full-size slide

  62. Countries
    only exist in our minds

    View full-size slide

  63. Abstraction happens
    in our minds

    View full-size slide

  64. All abstraction

    View full-size slide

  65. Abstractions shape
    how we perceive things

    View full-size slide

  66. Changing abstractions is
    a basic principle of
    innovation and progress

    View full-size slide

  67. May the force be with you!
    @konstantinhaase
    [email protected]

    View full-size slide