javascript as a second language let languageweuse
play

JavaScript as a second language let languageWeUse = 'JavaScript' - PowerPoint PPT Presentation

JavaScript as a second language let languageWeUse = 'JavaScript' if (intimidating == true) { dontPanic('about it') } Types of languages natural languages (English, Mandarin) formal languages symbolic (math, logic) computer


  1. JavaScript as a second language

  2. let languageWeUse = 'JavaScript' if (intimidating == true) { dontPanic('about it') }

  3. Types of languages • natural languages (English, Mandarin) • formal languages • symbolic (math, logic) • computer languages (JavaScript, Python) • constructed languages (Esperanto, Klingon)

  4. Parts of speech

  5. Parts of speech • noun: a thing • proper noun: a specific, named thing • verb: an action • adjective, adverb: modifies a noun, verb • conjunction: used to combine words and phrases • preposition: determines how one noun relates to another • interjection: a word used to express emotion

  6. Programming • noun ⇨ variable • proper noun ⇨ object • verb ⇨ function • adjective, adverb ⇨ declaration • conjunction ⇨ control flow • prepositions ⇨ operator • interjection ⇨ errors and promises

  7. Document structure • phrase: a group of words forming a unit • sentence: one or more phrases to describe an event/concept • paragraph: one or more closely related sentences • punctuation: used to delineate phrases, sentences, etc. • section: a group of related paragraphs, usually under a subhed • essay, story: a relatively short document comprised of only paragraphs or sections • chapter: a group of related sections within a larger document • book: a lengthy document consisting of related chapters • library: a collection of books, often for checkout

  8. Software structure • phrase ⇨ expression • sentence ⇨ statement • paragraph ⇨ block • punctuation ⇨ symbols, white space • section ⇨ section • essay, story ⇨ script • chapter ⇨ component • book ⇨ application • library ⇨ library

  9. Object-oriented programming

  10. Classes • In natural languages the individuals described by proper nouns are often called a kind of thing. The members of a kind typically have a common set attributes (e.g. age ) and capabilities (e.g. speak). • In object-oriented programming (OOP) objects have classes . The members of those classes have a common set of attributes (variables) and methods (functions).

  11. Subclasses • In natural languages, within one kind of thing can be multiple more specific kinds of thing. For example, Great White Sharks are a kind of shark. A church is a kind of building. A pomeranian is a kind of dog. • In computing we call that a subclass . Subclasses inherit their parent class's attributes and methods, but can add new ones and remove or modify existing ones.

  12. Lab #1

  13. Create a github.com account

  14. create an observablehq.com account

  15. daniel.buzz/data-journalism Click on Lab 1

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend