Processing Workshop (Part Three)

notes

In our third Processing lecture we were shown a different type of loop. A ‘for loop’ only takes up one line of code and is a much more efficient way of repeating content.

We were then introduced to arrays and how we could use them in our projects.
The mini task that we were given was to fill a rectangle with a random colour from our colour array.

nots2

Advertisements

Processing Workshop


Today we had a workshop that introduced us to programming languages. We started off the session by learning a list of keywords (non-specific to Java) and some common misconceptions about programming. We then moved on to a practice session with Java itself. We were basically told that once you know how to write one programming language, you technically known them all (except for the fact that the syntax varies from language to language, just like spoken languages). Learning about the syntax of Java was interesting, as every programming language follows a similar structure but has a unique syntax. We were introduced to a program called ‘Processing’. This program can support Java, JavaScript and Python, though I think we are mostly going to use it for the former of the three.

IMG_20141002_111553765_HDR

Above is a screen shot of part of the work I created today. I understand the basic syntax of Java and how easy it can be to understand, though I am fully aware that it is going to get a lot more complex as we progress. Most of the functions that we used today were called ‘booleans’ and relied on either a true or false outcome in order to perform.

I intend to watch the tutorials on http://www.processing.org/ in order to develop my Java knowledge in my spare time.


Bibliography:

Fry, B. and Reas, C., 2001. Processing [online]. Available from: http://www.processing.org/ [2nd October 2014]