Slide 1

Slide 1 text

The Language of Programming @AnjanaVakil

Slide 2

Slide 2 text

@AnjanaVakil what is code?

Slide 3

Slide 3 text

@AnjanaVakil language

Slide 4

Slide 4 text

@AnjanaVakil language for machines?

Slide 5

Slide 5 text

@AnjanaVakil language for machines?

Slide 6

Slide 6 text

@AnjanaVakil language for machines?

Slide 7

Slide 7 text

@AnjanaVakil “a computer language is not just a way of getting a computer to perform operations…” -Structure & Interpretation of Computer Programs

Slide 8

Slide 8 text

@AnjanaVakil “…it is a novel formal medium for expressing ideas about methodology.” -Structure & Interpretation of Computer Programs

Slide 9

Slide 9 text

@AnjanaVakil “Thus, programs must be written for people to read, and only incidentally for machines to execute.” -Structure & Interpretation of Computer Programs

Slide 10

Slide 10 text

@AnjanaVakil language for machines? humans

Slide 11

Slide 11 text

@AnjanaVakil it's all about collaboration

Slide 12

Slide 12 text

@AnjanaVakil language is power

Slide 13

Slide 13 text

@AnjanaVakil language with many faces

Slide 14

Slide 14 text

@AnjanaVakil every language matters

Slide 15

Slide 15 text

@AnjanaVakil every language matters Gender distinctions in Independent Personal Pronouns

Slide 16

Slide 16 text

@AnjanaVakil deconstructing language

Slide 17

Slide 17 text

@AnjanaVakil deconstructing language

Slide 18

Slide 18 text

@AnjanaVakil deconstructing language texts words syllables phrases morphemes phones turns sentences phonemes …etc

Slide 19

Slide 19 text

@AnjanaVakil deconstructing programs modules expressions statements types lines bytes functions objects instructions …etc

Slide 20

Slide 20 text

@AnjanaVakil “There are no theory-neutral structures in linguistics.” -Michael Tomasello, Linguist

Slide 21

Slide 21 text

@AnjanaVakil deconstructing paradigms

Slide 22

Slide 22 text

@AnjanaVakil “Each paradigm supports a set of concepts that make it the best for a certain kind of problem.” -Peter van Roy, Computer Scientist

Slide 23

Slide 23 text

@AnjanaVakil prescriptivism

Slide 24

Slide 24 text

@AnjanaVakil prescriptivism “FORTRAN [is an] ‘infantile disorder’” “BASIC [coders are] ‘mentally mutilated’” “COBOL … cripples the mind” “APL is a mistake” -Edsger Dijkstra, Curmudgeon

Slide 25

Slide 25 text

@AnjanaVakil prescriptivism “FORTRAN [is an] ‘infantile disorder’” “BASIC [coders are] ‘mentally mutilated’” “COBOL … cripples the mind” “APL is a mistake” -Edsger Dijkstra, Curmudgeon NOPE

Slide 26

Slide 26 text

@AnjanaVakil APL ain't no mistake

Slide 27

Slide 27 text

@AnjanaVakil APL ain't no mistake life←{↑1 ⍵∨.∧3 4=+/,¯1 0 1∘.⊖¯1 0 1∘.⌽⊂⍵}

Slide 28

Slide 28 text

@AnjanaVakil APL ain't no mistake life←{↑1 ⍵∨.∧3 4=+/,¯1 0 1∘.⊖¯1 0 1∘.⌽⊂⍵} Conway's Game of Life in Dyalog APL

Slide 29

Slide 29 text

@AnjanaVakil APL ain't no mistake MATLAB®

Slide 30

Slide 30 text

@AnjanaVakil APL ain't no mistake

Slide 31

Slide 31 text

@AnjanaVakil “Languages are cultural artifacts that differ radically among different cultures, and languages change in important ways as the communicative needs of their speakers evolve over time.” -Michael Tomasello, Linguist

Slide 32

Slide 32 text

@AnjanaVakil language in context

Slide 33

Slide 33 text

@AnjanaVakil language

Slide 34

Slide 34 text

@AnjanaVakil gender nationality power family status oppression politics religion economics race language

Slide 35

Slide 35 text

@AnjanaVakil gender nationality power family status oppression politics -------- religion economics ---- --- race -------- - ----- ---- ------ -- - language

Slide 36

Slide 36 text

@AnjanaVakil gender nationality power family status oppression politics -------- religion economics ---- --- race -------- - ----- ---- ------ -- - code

Slide 37

Slide 37 text

@AnjanaVakil words are actions

Slide 38

Slide 38 text

@AnjanaVakil words are actions

Slide 39

Slide 39 text

@AnjanaVakil words are actions s/whitelist/safelist s/blacklist/blocklist s/master/leader s/slave/follower

Slide 40

Slide 40 text

@AnjanaVakil “If we're going to teach programming around the world, we have to be aware of what the cultural biases are.” -Ramsey Nasser, Creator of بﻠﻗ

Slide 41

Slide 41 text

@AnjanaVakil teaching in context Noor: a beginner-friendly Arabic programming language by Ahmed Abdalla github.com/SimplyAhmazing/noor

Slide 42

Slide 42 text

@AnjanaVakil language to be acquired

Slide 43

Slide 43 text

@AnjanaVakil we learn through context

Slide 44

Slide 44 text

@AnjanaVakil we learn through context foo = bar('baz')

Slide 45

Slide 45 text

@AnjanaVakil we learn through context result = analyze('data')

Slide 46

Slide 46 text

@AnjanaVakil we learn out loud result = analyze('data')

Slide 47

Slide 47 text

@AnjanaVakil result = analyze('data') “result equals analyze data” ? “set result to analyze of data” ? “analyze string data becomes result” ? … ? we learn out loud

Slide 48

Slide 48 text

@AnjanaVakil “… can we really comprehend and communicate source code if we cannot vocalise it?” - Felienne Hermans, Computer Scientist we learn out loud

Slide 49

Slide 49 text

@AnjanaVakil we can't learn alone

Slide 50

Slide 50 text

@AnjanaVakil we can't learn alone The Recurse Center recurse.com

Slide 51

Slide 51 text

@AnjanaVakil we can't learn alone The Recurse Center outreachy.org recurse.com

Slide 52

Slide 52 text

@AnjanaVakil we can't learn alone The Recurse Center outreachy.org recurse.com mapbox.com/careers

Slide 53

Slide 53 text

@AnjanaVakil code is language is collaboration is power

Slide 54

Slide 54 text

@AnjanaVakil what will we do with it?

Slide 55

Slide 55 text

@AnjanaVakil Thank you! GOTO Chicago team István "Flaki" Szmozsánszky, Perry Eising, Nicole Orchard, Max Rabkin, John Sylak-Glassman & everyone else who let me talk their ear off The Recurse Center Mapbox

Slide 56

Slide 56 text

@AnjanaVakil - H. Abelson, G.J. Sussman, & J. Sussman, Structure and Interpretation of Computer Programs (1996), via mitpress.mit.edu/sicp - World Atlas of Language Structures, "Gender distinctions in Independent Personal Pronouns", via wals.info/feature/44A - M. Tomasello, "Language is Not an Instinct", in Cognitive Development 10 (1995) - P. van Roy, "Programming Paradigms for Dummies: What Every Programmer Should Know", in New Computational Paradigms for Computer Music (2009), via UCL - E. Dijkstra, "How do we tell truths that might hurt?" (1975), cited in V. Chandra, Geek Sublime (2014) - K.E. Iverson, "Notation as a tool of thought" (awarded 1979), in ACM Turing award lectures (2007), via ACM - Conway's Game of Life in Dyalog APL, from "APL (programming language)", Wikipedia - K. Thomas tweet (2015) via Twitter, via A. van Kesteren, "Avoid whitelist/blacklist" on Github - R. Nasser, "Arabic Programming Language at Eyebeam" (2013) via nas.sr/بﻠﻗ - A. Abdalla, "Creating an Arabic Programming Language!", !!Con 2018 - F. Hermans, "Code Phonology" (2018), via felienne.com/archives/5947 Image Credits - Icons by EmojiOne - "The Tower of Babel" painting by Pieter Bruegel the Elder (1563), via Wikimedia - "Syntax tree diagram of a sentence from Syntactic Structures (1957) by N. Chomsky" by Gringer, via Wikipedia/Wikimedia - Figure from Peter van Roy, "Programming Paradigms for Dummies: What Every Programmer Should Know" - Image from "Conway's Game of Life" via Cornell Math Explorers' Club - MATLAB logo image via MathWorks, R logo image via The R Foundation - Poster for Tron ©1982 Disney, image via IMDb References