14.04.2014 Views

Hello Processing - Vula

Hello Processing - Vula

Hello Processing - Vula

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

An Introduction To Programming With <strong>Processing</strong><br />

Abstraction<br />

Representing the abstract concept of something like data in the form of high and<br />

low voltages with a series of 1's and 0's can be quite useful, but still very difficult<br />

to read and understand. Imagine having to memorize all of those sequences in<br />

order to be an efficient programmer. It would take exorbitant amounts of time to<br />

create the simplest of software programs. Fortunately the process of representing<br />

human-relevant concepts to a computer does not stop at binary code. Since we<br />

know that a certain sequence of 1's and 0's on a certain type of machine such as<br />

the sequence “00110101” can be used to represent the number “53” why not make<br />

the sequence “01001000” and “01101001” represent the characters “h” and “i”<br />

put together to make the word “hi”. This is exactly what software developers do,<br />

the process of taking a complex set of data and representing it in a more humanreadable<br />

format is known as abstraction. As you can image this makes it a lot<br />

simpler to communicate with a computer, so instead of typing “01001000<br />

01101001” we can simply type “hi” and thanks to the process of abstraction our<br />

computer knows what to display even though it's reading a sequence of high and<br />

low voltages at the simplest level.<br />

Abstraction is great because it makes the process of communicating with<br />

computers easier, so you might be thinking to yourself why then is programming<br />

and source code so cryptic and far removed from a common natural spoken<br />

human language such as English? Surely, if we can abstract complex data why<br />

not keep on abstracting concepts to computers until it can understand a human<br />

specific language like plain and simple English?<br />

For example if we wanted to draw a circle on a computer screen why can't we just<br />

say to a computer:<br />

“Computer, could you please draw a circle that has a diameter of<br />

55 pixels and who's center is somewhere close to the top left of<br />

my screen, thanks?”<br />

Instead we communicate with our computers like this:<br />

ellipse(56, 46, 55, 55);<br />

Abstraction 10

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!