diff --git a/assignments.html b/assignments.html index 99a1625..7607692 100644 --- a/assignments.html +++ b/assignments.html @@ -16,6 +16,17 @@

CTH-2016 / Assignments

+

Assignment #1

For this assignment you will be developing a command line interface for a fake "bookstore". Using the node library commander you will make available a command line interface to your program which, when executed, will output information of books that match the following criteria: (1) book title, (2) author name, (3) price, and (4) kind (paperback or hardcover).

In order to gather data for your script, select 5 books from either the Athenaeum Boekhandel or the American Book Center and construct a simple "hardcoded" database out of these (see example from the class).

@@ -37,6 +48,36 @@ Kind: Paperback

This assignment will be graded on three aspects: 1) does the code work and execute as intended, 2) is the code clearly structured and documented (don't forget your README!) and 3) is the code efficient.

You will hand in your assignment through your account on Github. Please refer to CTH-2016 / Assignments Configuration on how to set up your assignments portfolio properly.

The dues date for this assignment is — Tuesday November 8 2016 at 13:00.

+

Assignment #2

+

In this assignment you will write a script that will generate a love letter each time it is executed, producing similar letters, yet not exactly the same, as the ones of computing pioneer Christopher Strachey's.

+

The basic sentence structure of your letter will resemble this: "determiner + adjective + noun + adverb + verb + determiner + adjective + noun". Based on this, as an example, your script could output a sentence such as the following: "MY SWEET LONGING BREATHLESSLY ADORES YOUR ANXIOUS WISH". Furthermore, your script should allow for variations of this sentence structure, that is, exclude (or not) certain components depending on randomness and yet keep the sentence grammatically correct. For example the sentence above could become: "MY SWEET LONGING ADORES YOUR WISH".

+

The output of your script (what is printed on the terminal) needs to be well formatted, meaning that it needs to resemble a letter with margins and spaces. Moreover, the number of sentences and their width needs to be parametric, that is, your script will have options for both number of sentences and sentence width (in characters).

+

As an example (based on Strachey's), below is a generated letter of 80 characters wide and of 5 sentence:

+
$ node letter.js -w 80 -s 5
+
+
+DEAR DUCK
+
+
+  YOUR ARE MY ADORABLE YEARNING. MY AMBITION HOLDS DEAR YOUR FOND YEARNING. MY 
+  RAPTURE CHERISHES YOUR INFATUATION. YOUR ARE MY KEEN AFFECTION. : MY AVID FANCY. 
+
+
+                                                                YOURS KEENLY
+                                                                M.U.C.
+
+

Please be creative with your choice of words and sentence composition. As mentioned above, the default theme of the letter is a love one, though you are more than welcome to come up with another theme (Bank letter, Government letter, Birthday letter, etc.) as long as it produces grammatically correct sentences and addresses the reader meaningfully.

+

Grading

+

This assignment will be graded on three aspects: 1) does the code work and execute as intended, 2) is the code clearly structured and documented (is the output well formatted) and 3) is the code efficient and generative.

+

You will hand in your assignment through your account on Github (as in week 1).

+

The dues date for this assignment is — Tuesday November 15 2016 at 13:00.

+ + \ No newline at end of file diff --git a/assignments.md b/assignments.md index f28fe7a..4a86d57 100644 --- a/assignments.md +++ b/assignments.md @@ -37,4 +37,51 @@ You will hand in your assignment through your account on Github. Please refer to The dues date for this assignment is — Tuesday November 8 2016 at 13:00. +## Assignment #2 + +In this assignment you will write a script that will generate a love letter each time it is executed, producing similar letters, yet not exactly the same, as the ones of computing pioneer Christopher Strachey's. + +The basic sentence structure of your letter will resemble this: "determiner + adjective + noun + adverb + verb + determiner + adjective + noun". Based on this, as an example, your script could output a sentence such as the following: "MY SWEET LONGING BREATHLESSLY ADORES YOUR ANXIOUS WISH". Furthermore, your script should allow for variations of this sentence structure, that is, exclude (or not) certain components depending on randomness and yet keep the sentence grammatically correct. For example the sentence above could become: "MY SWEET LONGING ADORES YOUR WISH". + +The output of your script (what is printed on the terminal) needs to be well formatted, meaning that it needs to resemble a letter with margins and spaces. Moreover, the number of sentences and their width needs to be parametric, that is, your script will have options for both number of sentences and sentence width (in characters). + +As an example (based on Strachey's), below is a generated letter of 80 characters wide and of 5 sentence: + +``` +$ node letter.js -w 80 -s 5 + + +DEAR DUCK + + + YOUR ARE MY ADORABLE YEARNING. MY AMBITION HOLDS DEAR YOUR FOND YEARNING. MY + RAPTURE CHERISHES YOUR INFATUATION. YOUR ARE MY KEEN AFFECTION. : MY AVID FANCY. + + + YOURS KEENLY + M.U.C. + +``` + +Please be creative with your choice of words and sentence composition. As mentioned above, the default theme of the letter is a love one, though you are more than welcome to come up with another theme (Bank letter, Government letter, Birthday letter, etc.) as long as it produces grammatically correct sentences and addresses the reader meaningfully. + +### Grading + +This assignment will be graded on three aspects: 1) does the code work and execute as intended, 2) is the code clearly structured and documented (is the output well formatted) and 3) is the code efficient and generative. + +You will hand in your assignment through your account on Github (as in week 1). + +The dues date for this assignment is — Tuesday November 15 2016 at 13:00. + +### Helpful links + +* [Determiners and quantifiers](https://learnenglish.britishcouncil.org/en/english-grammar/determiners-and-quantifiers) +* [Adverbials](https://learnenglish.britishcouncil.org/en/english-grammar/adverbials) +* [(General) English Grammar](https://learnenglish.britishcouncil.org/en/english-grammar) +* [Archive of emulated Christopher Strachey's Love Letters](http://www.alpha60.de/art/love_letters/archive/muc/) + + + + + diff --git a/img/14.1.png b/img/14.1.png new file mode 100644 index 0000000..380b328 Binary files /dev/null and b/img/14.1.png differ diff --git a/img/14.2.png b/img/14.2.png new file mode 100644 index 0000000..3a8aa98 Binary files /dev/null and b/img/14.2.png differ diff --git a/img/14.png b/img/14.png new file mode 100644 index 0000000..de19df7 Binary files /dev/null and b/img/14.png differ diff --git a/img/one+dimension+array.jpg b/img/one+dimension+array.jpg new file mode 100644 index 0000000..8502d34 Binary files /dev/null and b/img/one+dimension+array.jpg differ diff --git a/img/one_dim_ar.jpg b/img/one_dim_ar.jpg new file mode 100644 index 0000000..958eced Binary files /dev/null and b/img/one_dim_ar.jpg differ diff --git a/index.html b/index.html index 9fd59ed..a349615 100644 --- a/index.html +++ b/index.html @@ -71,6 +71,8 @@
  • Christopher Strachey. Love Letters
  • @@ -136,7 +138,7 @@

    Assignments

    Each individual assignment will be posted on the day of the class (weeks 1, 2, 3).

    diff --git a/index.md b/index.md index 3c8c533..77c4b69 100644 --- a/index.md +++ b/index.md @@ -51,6 +51,7 @@ Texts: * Geoff Cox & Alex McLean. [Double Coding / Speaking Code: Coding as Aesthetic and Political Expression](./texts/CoxMcLean-Double_Coding.pdf) * [Christopher Strachey](http://rhizome.org/editorial/2013/apr/9/queer-history-computing-part-three/#_edn4). Love Letters * Noah Wardrip-Fruin. ["Christopher Strachey: The first digital artist?"](https://grandtextauto.soe.ucsc.edu/2005/08/01/christopher-strachey-first-digital-artist/) + * Noah Wardrip-Fruin. ["Digital Media Archeology"](./texts/noah-wardripfruin-DigitalMediaArchaeology.pdf) * David Link. [LoveLetters_1.0](http://www.alpha60.de/art/love_letters/) - [Archive](http://www.alpha60.de/art/love_letters/archive/muc/) __Assignment#1 due (08/11/16 13:00)__ @@ -127,7 +128,7 @@ During this session, time will be allocated to answer questions regarding final ## Assignments * [Assignment #1: Bookstore (CLI)](./assignments.html) -* Assignment #2: tba +* [Assignment #2: (Love) Letters](./assignments.html) * Assignment #3: tba Each individual assignment will be posted on the day of the class (weeks 1, 2, 3). diff --git a/texts/noah-wardripfruin-DigitalMediaArchaeology.pdf b/texts/noah-wardripfruin-DigitalMediaArchaeology.pdf new file mode 100644 index 0000000..5c0fd55 Binary files /dev/null and b/texts/noah-wardripfruin-DigitalMediaArchaeology.pdf differ