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

RubyConf Philippines 2017: Magenta is a Lie

RubyConf Philippines 2017: Magenta is a Lie

Konstantin Haase

March 17, 2017
Tweet

More Decks by Konstantin Haase

Other Decks in Science

Transcript

  1. (it’s a lie)

    View full-size slide

  2. Abstractions

    View full-size slide

  3. “Developers (sometimes) need to play with illusions”
    Yukihiro “Matz” Matsumoto

    View full-size slide

  4. “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

  5. Computer Science

    View full-size slide

  6. Colour Perception

    View full-size slide

  7. Conclusion
    spoiler alert

    View full-size slide

  8. Abstraction happens
    in our minds

    View full-size slide

  9. Abstractions shape
    how we perceive things

    View full-size slide

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

    View full-size slide

  11. Abstraction is the basis
    of Computer Science

    View full-size slide

  12. Abstraction is the basis
    of Computer Science

    View full-size slide

  13. Patterns and
    Algorithms

    View full-size slide

  14. Is magenta real?

    View full-size slide

  15. Data Abstraction

    View full-size slide

  16. “Dataless
    Programming”
    RM Balzer - 1967

    View full-size slide

  17. Are we still talking
    about abstraction?

    View full-size slide

  18. Control Abstraction

    View full-size slide

  19. “Go To Statement
    Considered Harmful”
    Edsger Dijkstra, 1968

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

  23. Tetrachromacy

    View full-size slide

  24. 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

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

    View full-size slide

  26. Gene on X
    chromosome
    OPN1MW and OPN1MW2

    View full-size slide

  27. Women could have up
    to six colour cones

    View full-size slide

  28. Mostly dysfunctional

    View full-size slide

  29. a few confirmed cases

    View full-size slide

  30. Seeing millions of
    more colours

    View full-size slide

  31. Concetta Antico

    View full-size slide

  32. Object Oriented
    Programming

    View full-size slide

  33. –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

  34. Data Abstraction +
    Control Abstraction =
    Object Oriented Programming

    View full-size slide

  35. Why dysfunctional?
    (my own unscientific theory)

    View full-size slide

  36. We don’t see colours
    with our eyes

    View full-size slide

  37. We see colours with
    our brain

    View full-size slide

  38. Our brain adjusts
    colours

    View full-size slide

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

    View full-size slide

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

    View full-size slide

  41. We make the rules

    View full-size slide

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

    View full-size slide

  43. Single Responsibility
    Principle

    View full-size slide

  44. Liskov Substitution
    Principle

    View full-size slide

  45. Law of Demeter

    View full-size slide

  46. Don’t abstract too
    much, too early

    View full-size slide

  47. Strong external
    abstractions allow weak
    internal abstractions

    View full-size slide

  48. Distributed
    Applications

    View full-size slide

  49. Is magenta a colour?

    View full-size slide

  50. Type Hierarchy
    Liskov Substitution Principle

    View full-size slide

  51. Implementation
    Sharing

    View full-size slide

  52. Are we doing it right?

    View full-size slide

  53. Classes ≠ OOP

    View full-size slide

  54. Colour and
    Abstraction

    View full-size slide

  55. Himba Tribe (Namibia)

    View full-size slide

  56. 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

  57. Abstractions and
    Security

    View full-size slide

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

    View full-size slide

  59. Business Logic
    only exists in our minds

    View full-size slide

  60. Object Oriented
    Programming
    only exists in our minds

    View full-size slide

  61. Colours
    only exist in our minds

    View full-size slide

  62. UI elements
    only exist in our minds

    View full-size slide

  63. Countries
    only exist in our minds

    View full-size slide

  64. Abstraction happens
    in our minds

    View full-size slide

  65. All abstraction

    View full-size slide

  66. Abstractions shape
    how we perceive things

    View full-size slide

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

    View full-size slide

  68. Thank you.
    @konstantinhaase
    @rkh_popcorn
    [email protected]

    View full-size slide