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

Lingua Franca: How Our Mother Tongue Changes Our Code

Lingua Franca: How Our Mother Tongue Changes Our Code

In the quest for maintainability, we've tried to make code as readable as possible. But our notion of readability is strongly tied to the languages we learn from birth. I'll walk through an example of a library that made a technical compromise for the sake of making code look like English, and how other natural languages may never have pushed this compromise.

Given at Over The Air 2013 (Ignite Bletchley Park)

Chris Sinjakli

September 27, 2013
Tweet

More Decks by Chris Sinjakli

Other Decks in Programming

Transcript

  1. @ChrisSinjo

    View Slide

  2. Ruby

    View Slide

  3. Readability

    View Slide

  4. Monkey-Patch
    To open up someone else’s class and generally mess
    around with it

    View Slide

  5. Monkey-Patch
    To open up someone else’s class and generally mess
    around with it

    View Slide

  6. These are not the language
    features you’re looking for

    View Slide

  7. Rails Date/Time

    View Slide

  8. 1.day.ago

    View Slide

  9. Spanish
    Lessons

    View Slide

  10. hace(1).dia

    View Slide

  11. Word order is
    arbitrary

    View Slide

  12. Subject Verb Object
    (English, Spanish and Object Oriented Languages)
    cat.play_with(string)

    View Slide

  13. Verb Subject Object
    (Irish, Welsh, and Functional Languages)
    play_with(cat, string)

    View Slide

  14. Compromise

    View Slide

  15. Pretending the
    computer
    speaks English

    View Slide

  16. The right
    choice?

    View Slide

  17. Days.ago(1)

    View Slide

  18. (1)day.ago

    View Slide

  19. I still like Ruby

    View Slide

  20. Different
    approaches

    View Slide