Author Archive

Coding in the News

I found this article very interesting as customisation and self promoting are big parts of our lives today, trying to make everything we do represent our true selves. I never realised how far a coding style could go to show how we like things done or who we are. “Whether it’s how they space out code using spaces and tabs, naming conventions with capitals and underscores, or quirks in commenting, a team from Drexel University, the University of Maryland, the University of Goettingen, and Princeton can spot who wrote a piece of code—with alarming accuracy.” Each one of us write code a bit differently. Some of us use more spaces to separate, some use more //labels to explain what your doing or make reminders, all while some people just write a literal block of text and hope for the best result to come out of it. Since each is unique, once someone learns how you do it all, they can pick out what was written by you.

http://gizmodo.com/your-coding-style-is-like-a-digital-fingerprint-1682499073

Self Portrait

Screen Shot 2015-02-10 at 6.06.51 PM

void setup() {
size(1000,1000);
background(204,255,255);
}
void draw (){

//face
fill(255,250,250);
ellipse(width/2,height/2,330,455);

//ears
fill(255,250,250);
ellipse(330,490,50,90);
fill(255,250,250);
ellipse(670,490,50,90);

//hair
fill(250,240,190);
rect(330,310,40,230);
rect(630,310,40,230);
fill(250,240,190);
ellipse(500,325,345,170);

//eyes
fill(255,255,255);
ellipse(440,475,75,55);
ellipse(570,475,75,55);

//nose
fill(0,0,0);
ellipse(495,560,10,5);
ellipse(515,560,10,5);

//mouth
line(440,630,570,630);
line(440,630,455,642);

//nose line
line(490,545,520,545);

//eyebrows
fill(40,40,40);
rect(400,445,80,15);
rect(530,442,80,15);

}

'+
1
'+
2 - 3
4 - 5
6 - 7
8 - 9
10 - 11
12 - 13
13 - 14
[x]