SlideShare une entreprise Scribd logo
1  sur  38
Code as Language

  Prof Alvarado
   MDST 3705
 22 January 2013
Business
• Synthetic posts by Friday, Response posts
  by Monday at 9.
• Is logging on from off grounds an issue?
• WordPress tricks
  – How to make links
  – Edit Mode
  – Adding Media
  – Adding Code
Review
• Knowledge and Media
  – Knowledge is embedded in a social process
    mediated by literacy and other forms of media
  – This social process takes place within a
    network of people and artifacts
  – As this network changes, so does what counts
    as knowledge
• Hello World!
  – Your entrance into the knowledge network
    called the Web …
If PHP is a language, then who is the
   speaker and who is the listener?
From Ferdinand Saussure’s Course in General Linguistics (1916)
The computers are here!



                          Mediated communication
When we write code, we are speaking to
 the computer, who then speaks to us

 We are also writing to others who will
 read the code (including ourselves)
This is what writing is too …
The difference is that a computer is a
machine – it harnesses and transfers
               energy
com⋅put⋅er
  /kəm-pyutər/ [kuhm-pyoo-ter]
–noun
1. Also called processor. An electronic device
   designed to accept data, perform prescribed
   mathematical and logical operations at high
   speed, and display the results of these
   operations. Compare analog computer, digital
   computer.
2. A person who computes; computist.
Origin:
1640–50; compute + -er 1 ; cf. MF computeur
Computer languages encode a kind of
              labor

 Programming is about creating and
  controlling this new kind of labor

 It is writing in the imperative mode
To perform work, a computer must have
     a representation of the world

But a programmer must first represent
      that world for the computer
What does
  Kirschenbaum
mean by “world”?
Texts “contain” worlds

That is, part of the shared code
 between writer and intended
        reader is a world
“We hold these truths to be self-
evident, that all men are created equal, that
  they are endowed by their Creator with
  certain unalienable Rights, that among
 these are Life, Liberty and the pursuit of
                 Happiness.”
The cultural logic of worlds is expressed
         in novels in the form of
plots, characters, and an other symbolic
                 devices
            What about code?
10 PRINT CHR$(205.5+RND(1)) : GOTO 10
What world does this line of code
           express?
It also creates a world …
Other Examples
• Conway’s Game of Life
• Barricelli’s Universe
Code is language in the sense language
  both represent and create worlds
PHP as a language
Variables
• Variables are like nouns
• Locations in memory (pigeon holes)
Values
• Values are like meanings
• Strings and numbers
Expressions
• Expressions, e.g. $x + 1, are like clauses
• Expressions always “return” a value
Sentences
• Code is written in sentences
  – Imperative and inquisitive modes
• Imperative
  – $x = $y; // Like saying, “Let $x = $y”
  – $x = 1 * 50 + $z;
• Inquisitive
  – If ($x == 1) {} // Like asking, “Is $x equal to 1?”
Sigils
•   E.g. $ as a prefix to variables
•   In CS and Magic
•   Mnemonic devices
•   Hungarian notation
•   Use in other languages
•   Philosophical differences
Plato’s Cave
The Role of Programming

Programming


Programs and Files


Operating System


Hardware (storage, input, output)


Users interact via input and output devices

Contenu connexe

Similaire à Mdst3705 2012-01-22-code-as-language

Mdst3705 2013-01-24-php2
Mdst3705 2013-01-24-php2Mdst3705 2013-01-24-php2
Mdst3705 2013-01-24-php2Rafael Alvarado
 
Mdst3705 2013-01-31-php3
Mdst3705 2013-01-31-php3Mdst3705 2013-01-31-php3
Mdst3705 2013-01-31-php3Rafael Alvarado
 
Language as social sensor - Marko Grobelnik - Dubrovnik - HrTAL2016 - 30 Sep ...
Language as social sensor - Marko Grobelnik - Dubrovnik - HrTAL2016 - 30 Sep ...Language as social sensor - Marko Grobelnik - Dubrovnik - HrTAL2016 - 30 Sep ...
Language as social sensor - Marko Grobelnik - Dubrovnik - HrTAL2016 - 30 Sep ...Marko Grobelnik
 
topics natural language processing and image processing
topics natural language processing and image processingtopics natural language processing and image processing
topics natural language processing and image processingyoukayaslam
 
Semiotics of Digital Interactions (1)
Semiotics of Digital Interactions (1)Semiotics of Digital Interactions (1)
Semiotics of Digital Interactions (1)KyleDavidson23
 
Mdst3705 2013-01-29-praxis
Mdst3705 2013-01-29-praxisMdst3705 2013-01-29-praxis
Mdst3705 2013-01-29-praxisRafael Alvarado
 
NLP introduced and in 47 slides Lecture 1.ppt
NLP introduced and in 47 slides Lecture 1.pptNLP introduced and in 47 slides Lecture 1.ppt
NLP introduced and in 47 slides Lecture 1.pptOlusolaTop
 
Fluid, Fluent APIs
Fluid, Fluent APIsFluid, Fluent APIs
Fluid, Fluent APIsErik Rose
 
Virtual environments
Virtual environmentsVirtual environments
Virtual environmentsMarv1
 
Why Is Writing Important Essay
Why Is Writing Important EssayWhy Is Writing Important Essay
Why Is Writing Important EssayNorda Ramos
 
2016 bioinformatics i_python_part_1_wim_vancriekinge
2016 bioinformatics i_python_part_1_wim_vancriekinge2016 bioinformatics i_python_part_1_wim_vancriekinge
2016 bioinformatics i_python_part_1_wim_vancriekingeProf. Wim Van Criekinge
 
Knowledge base system appl. p 1,2-ver1
Knowledge base system appl.  p 1,2-ver1Knowledge base system appl.  p 1,2-ver1
Knowledge base system appl. p 1,2-ver1Taymoor Nazmy
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language ProcessingYasir Khan
 

Similaire à Mdst3705 2012-01-22-code-as-language (20)

Mdst3705 2013-01-24-php2
Mdst3705 2013-01-24-php2Mdst3705 2013-01-24-php2
Mdst3705 2013-01-24-php2
 
Mdst3705 2013-01-31-php3
Mdst3705 2013-01-31-php3Mdst3705 2013-01-31-php3
Mdst3705 2013-01-31-php3
 
Language as social sensor - Marko Grobelnik - Dubrovnik - HrTAL2016 - 30 Sep ...
Language as social sensor - Marko Grobelnik - Dubrovnik - HrTAL2016 - 30 Sep ...Language as social sensor - Marko Grobelnik - Dubrovnik - HrTAL2016 - 30 Sep ...
Language as social sensor - Marko Grobelnik - Dubrovnik - HrTAL2016 - 30 Sep ...
 
way_topics.ppt
way_topics.pptway_topics.ppt
way_topics.ppt
 
topics natural language processing and image processing
topics natural language processing and image processingtopics natural language processing and image processing
topics natural language processing and image processing
 
PCEP Module 1.pptx
PCEP Module 1.pptxPCEP Module 1.pptx
PCEP Module 1.pptx
 
Semiotics of Digital Interactions (1)
Semiotics of Digital Interactions (1)Semiotics of Digital Interactions (1)
Semiotics of Digital Interactions (1)
 
Mdst3705 2013-01-29-praxis
Mdst3705 2013-01-29-praxisMdst3705 2013-01-29-praxis
Mdst3705 2013-01-29-praxis
 
NLP introduced and in 47 slides Lecture 1.ppt
NLP introduced and in 47 slides Lecture 1.pptNLP introduced and in 47 slides Lecture 1.ppt
NLP introduced and in 47 slides Lecture 1.ppt
 
Fluid, Fluent APIs
Fluid, Fluent APIsFluid, Fluent APIs
Fluid, Fluent APIs
 
Virtual environments
Virtual environmentsVirtual environments
Virtual environments
 
Why Is Writing Important Essay
Why Is Writing Important EssayWhy Is Writing Important Essay
Why Is Writing Important Essay
 
2016 bioinformatics i_python_part_1_wim_vancriekinge
2016 bioinformatics i_python_part_1_wim_vancriekinge2016 bioinformatics i_python_part_1_wim_vancriekinge
2016 bioinformatics i_python_part_1_wim_vancriekinge
 
NLP_KASHK: Introduction
NLP_KASHK: Introduction NLP_KASHK: Introduction
NLP_KASHK: Introduction
 
intro.ppt
intro.pptintro.ppt
intro.ppt
 
Knowledge base system appl. p 1,2-ver1
Knowledge base system appl.  p 1,2-ver1Knowledge base system appl.  p 1,2-ver1
Knowledge base system appl. p 1,2-ver1
 
P1 2017 python
P1 2017 pythonP1 2017 python
P1 2017 python
 
Paradigms
ParadigmsParadigms
Paradigms
 
Oop concept
Oop conceptOop concept
Oop concept
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language Processing
 

Plus de Rafael Alvarado

Mdst3703 2013-10-08-thematic-research-collections
Mdst3703 2013-10-08-thematic-research-collectionsMdst3703 2013-10-08-thematic-research-collections
Mdst3703 2013-10-08-thematic-research-collectionsRafael Alvarado
 
Mdst3703 2013-10-01-hypertext-and-history
Mdst3703 2013-10-01-hypertext-and-historyMdst3703 2013-10-01-hypertext-and-history
Mdst3703 2013-10-01-hypertext-and-historyRafael Alvarado
 
Mdst3703 2013-09-24-hypertext
Mdst3703 2013-09-24-hypertextMdst3703 2013-09-24-hypertext
Mdst3703 2013-09-24-hypertextRafael Alvarado
 
Mdst3703 2013-09-12-semantic-html
Mdst3703 2013-09-12-semantic-htmlMdst3703 2013-09-12-semantic-html
Mdst3703 2013-09-12-semantic-htmlRafael Alvarado
 
Mdst3703 2013-09-10-textual-signals
Mdst3703 2013-09-10-textual-signalsMdst3703 2013-09-10-textual-signals
Mdst3703 2013-09-10-textual-signalsRafael Alvarado
 
Mdst3703 2013-09-05-studio2
Mdst3703 2013-09-05-studio2Mdst3703 2013-09-05-studio2
Mdst3703 2013-09-05-studio2Rafael Alvarado
 
Mdst3703 2013-09-03-plato2
Mdst3703 2013-09-03-plato2Mdst3703 2013-09-03-plato2
Mdst3703 2013-09-03-plato2Rafael Alvarado
 
UVA MDST 3703 2013 08-27 Introduction
UVA MDST 3703 2013 08-27 IntroductionUVA MDST 3703 2013 08-27 Introduction
UVA MDST 3703 2013 08-27 IntroductionRafael Alvarado
 
MDST 3705 2012-03-05 Databases to Visualization
MDST 3705 2012-03-05 Databases to VisualizationMDST 3705 2012-03-05 Databases to Visualization
MDST 3705 2012-03-05 Databases to VisualizationRafael Alvarado
 
Mdst3705 2013-02-26-db-as-genre
Mdst3705 2013-02-26-db-as-genreMdst3705 2013-02-26-db-as-genre
Mdst3705 2013-02-26-db-as-genreRafael Alvarado
 
Mdst3705 2013-02-19-text-into-data
Mdst3705 2013-02-19-text-into-dataMdst3705 2013-02-19-text-into-data
Mdst3705 2013-02-19-text-into-dataRafael Alvarado
 
Mdst3705 2013-02-12-finding-data
Mdst3705 2013-02-12-finding-dataMdst3705 2013-02-12-finding-data
Mdst3705 2013-02-12-finding-dataRafael Alvarado
 
Mdst3705 2013-02-05-databases
Mdst3705 2013-02-05-databasesMdst3705 2013-02-05-databases
Mdst3705 2013-02-05-databasesRafael Alvarado
 
Mdst3705 2012-01-15-introduction
Mdst3705 2012-01-15-introductionMdst3705 2012-01-15-introduction
Mdst3705 2012-01-15-introductionRafael Alvarado
 
Mdst3703 graph-theory-11-20-2012
Mdst3703 graph-theory-11-20-2012Mdst3703 graph-theory-11-20-2012
Mdst3703 graph-theory-11-20-2012Rafael Alvarado
 
Mdst3703 maps-and-timelines-2012-11-13
Mdst3703 maps-and-timelines-2012-11-13Mdst3703 maps-and-timelines-2012-11-13
Mdst3703 maps-and-timelines-2012-11-13Rafael Alvarado
 
Mdst3703 culturomics-2012-11-01
Mdst3703 culturomics-2012-11-01Mdst3703 culturomics-2012-11-01
Mdst3703 culturomics-2012-11-01Rafael Alvarado
 
Mdst3703 visualization-2012-10-23
Mdst3703 visualization-2012-10-23Mdst3703 visualization-2012-10-23
Mdst3703 visualization-2012-10-23Rafael Alvarado
 
Mdst3703 shiva-2012-10-18
Mdst3703 shiva-2012-10-18Mdst3703 shiva-2012-10-18
Mdst3703 shiva-2012-10-18Rafael Alvarado
 

Plus de Rafael Alvarado (20)

Mdst3703 2013-10-08-thematic-research-collections
Mdst3703 2013-10-08-thematic-research-collectionsMdst3703 2013-10-08-thematic-research-collections
Mdst3703 2013-10-08-thematic-research-collections
 
Mdst3703 2013-10-01-hypertext-and-history
Mdst3703 2013-10-01-hypertext-and-historyMdst3703 2013-10-01-hypertext-and-history
Mdst3703 2013-10-01-hypertext-and-history
 
Mdst3703 2013-09-24-hypertext
Mdst3703 2013-09-24-hypertextMdst3703 2013-09-24-hypertext
Mdst3703 2013-09-24-hypertext
 
Presentation1
Presentation1Presentation1
Presentation1
 
Mdst3703 2013-09-12-semantic-html
Mdst3703 2013-09-12-semantic-htmlMdst3703 2013-09-12-semantic-html
Mdst3703 2013-09-12-semantic-html
 
Mdst3703 2013-09-10-textual-signals
Mdst3703 2013-09-10-textual-signalsMdst3703 2013-09-10-textual-signals
Mdst3703 2013-09-10-textual-signals
 
Mdst3703 2013-09-05-studio2
Mdst3703 2013-09-05-studio2Mdst3703 2013-09-05-studio2
Mdst3703 2013-09-05-studio2
 
Mdst3703 2013-09-03-plato2
Mdst3703 2013-09-03-plato2Mdst3703 2013-09-03-plato2
Mdst3703 2013-09-03-plato2
 
UVA MDST 3703 2013 08-27 Introduction
UVA MDST 3703 2013 08-27 IntroductionUVA MDST 3703 2013 08-27 Introduction
UVA MDST 3703 2013 08-27 Introduction
 
MDST 3705 2012-03-05 Databases to Visualization
MDST 3705 2012-03-05 Databases to VisualizationMDST 3705 2012-03-05 Databases to Visualization
MDST 3705 2012-03-05 Databases to Visualization
 
Mdst3705 2013-02-26-db-as-genre
Mdst3705 2013-02-26-db-as-genreMdst3705 2013-02-26-db-as-genre
Mdst3705 2013-02-26-db-as-genre
 
Mdst3705 2013-02-19-text-into-data
Mdst3705 2013-02-19-text-into-dataMdst3705 2013-02-19-text-into-data
Mdst3705 2013-02-19-text-into-data
 
Mdst3705 2013-02-12-finding-data
Mdst3705 2013-02-12-finding-dataMdst3705 2013-02-12-finding-data
Mdst3705 2013-02-12-finding-data
 
Mdst3705 2013-02-05-databases
Mdst3705 2013-02-05-databasesMdst3705 2013-02-05-databases
Mdst3705 2013-02-05-databases
 
Mdst3705 2012-01-15-introduction
Mdst3705 2012-01-15-introductionMdst3705 2012-01-15-introduction
Mdst3705 2012-01-15-introduction
 
Mdst3703 graph-theory-11-20-2012
Mdst3703 graph-theory-11-20-2012Mdst3703 graph-theory-11-20-2012
Mdst3703 graph-theory-11-20-2012
 
Mdst3703 maps-and-timelines-2012-11-13
Mdst3703 maps-and-timelines-2012-11-13Mdst3703 maps-and-timelines-2012-11-13
Mdst3703 maps-and-timelines-2012-11-13
 
Mdst3703 culturomics-2012-11-01
Mdst3703 culturomics-2012-11-01Mdst3703 culturomics-2012-11-01
Mdst3703 culturomics-2012-11-01
 
Mdst3703 visualization-2012-10-23
Mdst3703 visualization-2012-10-23Mdst3703 visualization-2012-10-23
Mdst3703 visualization-2012-10-23
 
Mdst3703 shiva-2012-10-18
Mdst3703 shiva-2012-10-18Mdst3703 shiva-2012-10-18
Mdst3703 shiva-2012-10-18
 

Mdst3705 2012-01-22-code-as-language

  • 1. Code as Language Prof Alvarado MDST 3705 22 January 2013
  • 2. Business • Synthetic posts by Friday, Response posts by Monday at 9. • Is logging on from off grounds an issue? • WordPress tricks – How to make links – Edit Mode – Adding Media – Adding Code
  • 3. Review • Knowledge and Media – Knowledge is embedded in a social process mediated by literacy and other forms of media – This social process takes place within a network of people and artifacts – As this network changes, so does what counts as knowledge • Hello World! – Your entrance into the knowledge network called the Web …
  • 4. If PHP is a language, then who is the speaker and who is the listener?
  • 5. From Ferdinand Saussure’s Course in General Linguistics (1916)
  • 6. The computers are here! Mediated communication
  • 7. When we write code, we are speaking to the computer, who then speaks to us We are also writing to others who will read the code (including ourselves)
  • 8. This is what writing is too …
  • 9. The difference is that a computer is a machine – it harnesses and transfers energy
  • 10.
  • 11. com⋅put⋅er /kəm-pyutər/ [kuhm-pyoo-ter] –noun 1. Also called processor. An electronic device designed to accept data, perform prescribed mathematical and logical operations at high speed, and display the results of these operations. Compare analog computer, digital computer. 2. A person who computes; computist. Origin: 1640–50; compute + -er 1 ; cf. MF computeur
  • 12. Computer languages encode a kind of labor Programming is about creating and controlling this new kind of labor It is writing in the imperative mode
  • 13. To perform work, a computer must have a representation of the world But a programmer must first represent that world for the computer
  • 14. What does Kirschenbaum mean by “world”?
  • 15.
  • 16.
  • 17. Texts “contain” worlds That is, part of the shared code between writer and intended reader is a world
  • 18. “We hold these truths to be self- evident, that all men are created equal, that they are endowed by their Creator with certain unalienable Rights, that among these are Life, Liberty and the pursuit of Happiness.”
  • 19.
  • 20. The cultural logic of worlds is expressed in novels in the form of plots, characters, and an other symbolic devices What about code?
  • 22. What world does this line of code express?
  • 23. It also creates a world …
  • 24.
  • 25.
  • 26.
  • 27. Other Examples • Conway’s Game of Life • Barricelli’s Universe
  • 28.
  • 29. Code is language in the sense language both represent and create worlds
  • 30. PHP as a language
  • 31. Variables • Variables are like nouns • Locations in memory (pigeon holes)
  • 32. Values • Values are like meanings • Strings and numbers
  • 33. Expressions • Expressions, e.g. $x + 1, are like clauses • Expressions always “return” a value
  • 34. Sentences • Code is written in sentences – Imperative and inquisitive modes • Imperative – $x = $y; // Like saying, “Let $x = $y” – $x = 1 * 50 + $z; • Inquisitive – If ($x == 1) {} // Like asking, “Is $x equal to 1?”
  • 35. Sigils • E.g. $ as a prefix to variables • In CS and Magic • Mnemonic devices • Hungarian notation • Use in other languages • Philosophical differences
  • 37.
  • 38. The Role of Programming Programming Programs and Files Operating System Hardware (storage, input, output) Users interact via input and output devices

Notes de l'éditeur

  1. See http://vimeo.com/26472518
  2. PHP Version
  3. http://rhizome.org/editorial/2011/sep/6/essay-alexander-r-galloway-nils-aall-barricelli-ca/Barricelli experiment recreated with Processing by Galloway. Barricelli’s visualization technique has been altered—color has been added to show the gene groups more clearly, and the vertical axis has been compressed to increase the amount of evolutionary time that is visible. Each swatch of textured color within the image indicates a different organism. Borders between color fields mean that an organism has perished, been born, mutated, or otherwise evolved into something new