Thursday, January 28, 2016

Poetry for Better Code

(Note on format: originally was going to do full movie using screenshots until halfway through when I realized how tedious it was. Product: about 13 seconds of Coltrane and a reference to Kanye vs. Khalifa - at least one of those two will be relevant in the future so I don't feel too bad about it.)



~
Poetry, by itself, will not help you to write high quality code.
<it takes devotion! discipline!> </>
You can look at the work of Sylvia Plath or Lucille Clifton or James Wright but their work is not the same as creating php that runs donations to the local domestic violence shelter or presidential candidate or shady Etsy apothecary.

body   (
color: "something emotional";
)
<p style: red>

The same things are there! They exist! Line breaks! <b> </b>
The feeling in the grocery store of wanting to have everything and nothing at once: you'll have to explain what you mean when you say <a href:_> and talk in foreign tongues.
The feeling when you're asked on your second eHarmony date if this career is just ephemeral or nah?
Changes: in tone, in maturity, in deftness.

<style style="text/css">
.marquee {
 height: 50px;  overflow: hidden;
 position: relative;
 background: yellow;
 color: orange;
 border: 1px solid orange;
}
.marquee p {
 position: absolute;
 width: 100%;
 height: 100%;
 margin: 0;
 line-height: 50px;
 text-align: center;
 /* Starting position */
 -moz-transform:translateX(100%);
 -webkit-transform:translateX(100%);  transform:translateX(100%);
 /* Apply animation to this element */  -moz-animation: scroll-left 5s linear infinite;
 -webkit-animation: scroll-left 5s linear infinite;
 animation: scroll-left 5s linear infinite;
}
/* Move it (define the animation) */
@-moz-keyframes scroll-left {
 0%   { -moz-transform: translateX(100%); }
 100% { -moz-transform: translateX(-100%); }
}
@-webkit-keyframes scroll-left {
 0%   { -webkit-transform: translateX(100%); }
 100% { -webkit-transform: translateX(-100%); }
}
@keyframes scroll-left {
 0%   {
 -moz-transform: translateX(100%); /* Browser bug fix */
 -webkit-transform: translateX(100%); /* Browser bug fix */
 transform: translateX(100%);  }
[secret code: everything will be beautiful, nothing will hurt.] 
 100% {
 -moz-transform: translateX(-100%); /* Browser bug fix */
 -webkit-transform: translateX(-100%); /* Browser bug fix */
 transform: translateX(-100%);
 }
}
</style>
<div class="marquee">
<p>postmodernism... </p>
</div>
Things do and don't fit into boxes, given.
Poems unlock and also lock (most make a metal-on-metal sound click;
warning, I suppose, not to beat them with hoses).
Just do what feels right.

-Jessica

17 comments:

  1. For someone as illiterate as I am when it comes to coding (I know this is a disadvantage in today's world, but... I'm not quite willing to remedy it. Can't I be an old person and complain about how today's crazy technologies are ruining society?), I really like what you've done here! I love how you've blended poetry and coding, especially the lines "something emotional" and "secret code: everything will be beautiful, nothing will hurt." Great post, Jess!

    ReplyDelete
  2. I wish I payed more attention in computer programming because I honestly don't understand what any of this code means. But I do agree with you about how poetry and coding are similar to foreign tongues because they can seem so strange to people with no outside experience.

    ReplyDelete
  3. Like Michael and Elissa, I'm also very unfamiliar with coding so I had trouble keeping up with the formatting. Regardless, I think you did a great job with creatively answering the problem. I also like how you tied back to the first problem of poems not fitting into boxes.

    ReplyDelete
  4. This is so creative and cool! I don't know anything about coding but this is a great representation of its similarity to poetry! Also just love the overall tone of this entry. Nice work

    ReplyDelete
  5. I like how you made your point by actually writing code - it's very creative! I'm also not very familiar with coding, but you did a really good job of bringing your point across. I wasn't sure at all how poetry and programming could be related but your post made me realize that there were quite a few similarities.

    ReplyDelete
  6. This is really cool! I liked how you used php script to write your post, giving it a sort of modern feeling. The music compliment was very nice too (I know you really like Kanye from art class XD). I also liked how you not only explicitly but also implicitly showed us the similarities between scripting and poetry - one such example (I think) is by making your script a little vague, you showed how poetry can be hard to decipher, but once you finally find out what a line means, everything becomes clear, and an interpretation is made (just like in code if you find a missing bracket on one line and fix it, it will run and you will be happy. It might be different for scripting so I don't know if that's what you intended to show but either way it's really creative how you put that in!)
    The last line where you said "Just do what feels right" also gives us a sort of freedom, something that coders don't get very much of (and code doesn't really have), and is something that poetry CAN help coders get more of.

    I really enjoyed reading this post! Really cool!

    ReplyDelete
    Replies
    1. I didn't intend the meaning of vagueness to clarity but I see it now, very perceptive observation. it's also v frustrating when things don't work out in general, with coding or the execution of a project (such as a poem), and I wanted to give a vibe of being committed to something without being sentimental if that makes sense?? The long code is the same kind I used for marquee for my website subbie yr and that I was really excited about.
      thanks Anth! appreciate that you noticed yeezy :))

      Delete
  7. Sorry that this is a bit repetitive from what some people said before, but I am also a bit clueless when it comes to code. This is really clever though. I don't really understand any of the code, but it did make me think about how each part of the code and the placement of it is very important, just like the words in a poem. Good job!

    ReplyDelete
  8. I love this. Also, piggybacking on Anthony's comment and kind of counter-arguing: I think code CAN have freedom. My dad actually uses code language in new ways sometimes (I'm not exactly sure what he does because I'm not the most adept when it comes to coding). While lots of people don't play around with code in a free, experimental way like he does, that doesn't mean it's not doable. For that reason, I think poetry can further help coders learn to do what feels right and be more free in their coding practices

    ReplyDelete
    Replies
    1. Oh I never thought of it in that way... I always just got annoyed when the whole thing won't work cuz of some random parenthesis was out of place. I guess it is true that there are many ways to approach a problem... maybe we thought of the problem in a different way (or maybe I totally misunderstood your point -- sorry I'm quite tired right now so my brain isn't running optimally XD)

      Delete
    2. woah that's really cool Tiye! full disclosure, I don't know that much re: code, but I love pretending to know what I'm doing. I agree with you that code can be free and experimental (like poetry)if you're creative with it and I also think it can be really refined and held-back (like sonnets, rhythms, etc. for poetry).

      Delete
  9. Even though, like every other person who has commented so far, I'm useless with any kind of code, this coded poem still presents various identifying aspects of poetry, such as repetition and the use of lines to create a shape for the writing. Reading the poem without fully understanding it was still incredibly interesting, because looking at all of the symbols and shorthand words created a lot of unique sounds that seem very poetic. I think you did a really good job of showing that code is in a few ways very similar to poetry.

    ReplyDelete
    Replies
    1. yeah reading the code as words was rly confusing for me but once i negotiated the punctuation it read very hypnotic, pretty-sounding, and (but?) dissonant. thanks Lark!

      Delete
  10. This is a really interesting way to answer the problem. Coding and Poetry are definitely not two things that I would ever think to put together but this illustrated perfectly just how similar the two are. Too bad there was nothing in the code about wearing cool pants though

    ReplyDelete
    Replies
    1. tru
      <*color: god*> <.tweet: I went to look at your twitter and you were wearing cool pants> <.body: yeezy (boosts); tweet: I screen grabbed those pants and sent them to my style team> <*b*> <.tweet cont: "#wizwearscoolpants"> <*/b*> <*/tweet*> <.tweet frag: "I wish I was skinny and tall"> <*/color*>
      <[0,1]; if "reply"=0, then disp "mic drop"; if "reply"=1, then disp "i changed the name of the album">

      Delete
  11. So gorgeous! I love your sensibilities in blending casual language, really poetic and elegant stuff, and coding. Looking at code throws me back to subbie (or freshman? don't even remember haha) year computer literacy and the webstie project in a really cringy way, but not here! The ideas and sort of abstract, implied connections you're using are so, so beautiful; the whole work just feels like it completely speaks for itself, and it's stand-alone and compelling. Really, such a good job Jessica!!

    ReplyDelete