Prepared by Arch PhD Antonino Di Raimo UNIVERSITETI POLIS SHKOLLA NDERKOMBETARE E ARKITEKTURES DHE...

20
Prepared by Arch PhD Antonino Di Raimo UNIVERSITETI POLIS SHKOLLA NDERKOMBETARE E ARKITEKTURES DHE POLITIKAVE URBANE Write the shape! (An introduction to coding as critical tool in architecture) Codin g

Transcript of Prepared by Arch PhD Antonino Di Raimo UNIVERSITETI POLIS SHKOLLA NDERKOMBETARE E ARKITEKTURES DHE...

Page 1: Prepared by Arch PhD Antonino Di Raimo UNIVERSITETI POLIS SHKOLLA NDERKOMBETARE E ARKITEKTURES DHE POLITIKAVE URBANE Write the shape! (An introduction.

Prepared by Arch PhD Antonino Di Raimo

UNIVERSITETI POLIS SHKOLLA NDERKOMBETARE E ARKITEKTURES DHE POLITIKAVE URBANE

Write the shape! (An introduction to coding as critical tool in architecture)

Coding

Page 2: Prepared by Arch PhD Antonino Di Raimo UNIVERSITETI POLIS SHKOLLA NDERKOMBETARE E ARKITEKTURES DHE POLITIKAVE URBANE Write the shape! (An introduction.

AlgorithmAn algorithm can be intended as

step-by-step procedure for computation.Algorithms are used for calculation, information processing, and automation.

A finite list of instructions for calculating a result (or an outcome) of a procedure

It starts with an initial state and initial input

Thorough a finite number of states it produces a final output

through the metaphor of the recipe,now we can explain the concept of algorithm

Prepared by Arch PhD Antonino Di Raimo

Page 3: Prepared by Arch PhD Antonino Di Raimo UNIVERSITETI POLIS SHKOLLA NDERKOMBETARE E ARKITEKTURES DHE POLITIKAVE URBANE Write the shape! (An introduction.

Prepared by Arch PhD Antonino Di Raimo

machinecomputer

task(s)

list of instructions

they have to be...written

language

Page 4: Prepared by Arch PhD Antonino Di Raimo UNIVERSITETI POLIS SHKOLLA NDERKOMBETARE E ARKITEKTURES DHE POLITIKAVE URBANE Write the shape! (An introduction.

Language: human (or animal) capacity of conceptualizing, defining and using complex systems of communication

language

Page 5: Prepared by Arch PhD Antonino Di Raimo UNIVERSITETI POLIS SHKOLLA NDERKOMBETARE E ARKITEKTURES DHE POLITIKAVE URBANE Write the shape! (An introduction.

Credits: http://www.americasbeekeeper.com/Private_Gallery.htm

complexity of language observed in bees behavior

Page 6: Prepared by Arch PhD Antonino Di Raimo UNIVERSITETI POLIS SHKOLLA NDERKOMBETARE E ARKITEKTURES DHE POLITIKAVE URBANE Write the shape! (An introduction.

Prepared by Arch PhD Antonino Di RaimoCredits NASA (Pioneer 10 and 11)

Page 7: Prepared by Arch PhD Antonino Di Raimo UNIVERSITETI POLIS SHKOLLA NDERKOMBETARE E ARKITEKTURES DHE POLITIKAVE URBANE Write the shape! (An introduction.

human communication with the computerGUI (Graphical user interface)

original 1984 Mac OS desktop

Page 8: Prepared by Arch PhD Antonino Di Raimo UNIVERSITETI POLIS SHKOLLA NDERKOMBETARE E ARKITEKTURES DHE POLITIKAVE URBANE Write the shape! (An introduction.

Prepared by Arch PhD Antonino Di Raimo

Material object or GUI?

Page 9: Prepared by Arch PhD Antonino Di Raimo UNIVERSITETI POLIS SHKOLLA NDERKOMBETARE E ARKITEKTURES DHE POLITIKAVE URBANE Write the shape! (An introduction.

Prepared by Arch PhD Antonino Di Raimo

...Or a combination between graphical and material (interface)

Page 10: Prepared by Arch PhD Antonino Di Raimo UNIVERSITETI POLIS SHKOLLA NDERKOMBETARE E ARKITEKTURES DHE POLITIKAVE URBANE Write the shape! (An introduction.

flight instruments (military aircraft)

Page 11: Prepared by Arch PhD Antonino Di Raimo UNIVERSITETI POLIS SHKOLLA NDERKOMBETARE E ARKITEKTURES DHE POLITIKAVE URBANE Write the shape! (An introduction.

Robert Doisneau – Le baiser de l’Hotel de Ville,1950

relationship!

Page 12: Prepared by Arch PhD Antonino Di Raimo UNIVERSITETI POLIS SHKOLLA NDERKOMBETARE E ARKITEKTURES DHE POLITIKAVE URBANE Write the shape! (An introduction.

Prepared by Arch PhD Antonino Di Raimo

Program as a list of instructions, written in a certain language

Program is used to perform a task o multiple tasks

Instructions are written in order to perform tasksthrough a computer, or a machine (in which the computer can be embedded)

Writing is a central and crucial matterof the communication with the computer

Page 13: Prepared by Arch PhD Antonino Di Raimo UNIVERSITETI POLIS SHKOLLA NDERKOMBETARE E ARKITEKTURES DHE POLITIKAVE URBANE Write the shape! (An introduction.

Prepared by Arch PhD Antonino Di Raimo

Processing is an open source programming language and environment for people who want to create images, animations, and interactions.Initially developed to serve as a software sketchbook and to teach fundamentals of computer programming within a visual context, Processing also has evolved into a tool for generating finished professional work. Today, there are tens of thousands of students, artists, designers, researchers, and hobbyists who use Processing for learning, prototyping, and production.(from: www.processing.org)

Page 14: Prepared by Arch PhD Antonino Di Raimo UNIVERSITETI POLIS SHKOLLA NDERKOMBETARE E ARKITEKTURES DHE POLITIKAVE URBANE Write the shape! (An introduction.

Prepared by Arch PhD Antonino Di Raimo

General menu:file, edit,etch...Icons(main icons are run and stop)

Text Editor(you write your programs here)

Processing feedbacks(messages from Processing)

Page 15: Prepared by Arch PhD Antonino Di Raimo UNIVERSITETI POLIS SHKOLLA NDERKOMBETARE E ARKITEKTURES DHE POLITIKAVE URBANE Write the shape! (An introduction.

Prepared by Arch PhD Antonino Di Raimo

1) statementThe statement can be intended as a declaration inside the program. It has to be written according to the specific syntax of the language

2) expressionIn the statements we can find also expressions. These are mathematical operations, that return a value; in some languages statement do not return any value.

3) VariablesOne of the most important concept. We take time to explore it.

Page 16: Prepared by Arch PhD Antonino Di Raimo UNIVERSITETI POLIS SHKOLLA NDERKOMBETARE E ARKITEKTURES DHE POLITIKAVE URBANE Write the shape! (An introduction.

Prepared by Arch PhD Antonino Di Raimo

Page 17: Prepared by Arch PhD Antonino Di Raimo UNIVERSITETI POLIS SHKOLLA NDERKOMBETARE E ARKITEKTURES DHE POLITIKAVE URBANE Write the shape! (An introduction.

Prepared by Arch PhD Antonino Di Raimo

Page 18: Prepared by Arch PhD Antonino Di Raimo UNIVERSITETI POLIS SHKOLLA NDERKOMBETARE E ARKITEKTURES DHE POLITIKAVE URBANE Write the shape! (An introduction.

Prepared by Arch PhD Antonino Di Raimo

Variables

1) INTEGERS

2) FLOATINGS

3) BOOLEANS

4) STRINGS

5) NULL VARIABLE

1,2,50,etc.Used to count

2.567, π, etc.Perform math operations

True, false, etc.Verify conditions

Words and words...Store characters

Wait for Rhino...

Page 19: Prepared by Arch PhD Antonino Di Raimo UNIVERSITETI POLIS SHKOLLA NDERKOMBETARE E ARKITEKTURES DHE POLITIKAVE URBANE Write the shape! (An introduction.

Prepared by Arch PhD Antonino Di Raimo

A computer program (also software, or just a program) is a sequence of instructions written to perform a specified task with a computer.[1] A computer requires programs to function, typically executing the program's instructions in a central processor.[2] The program has an executable form that the computer can use directly to execute the instructions. The same program in its human-readable source code form, from which executable programs are derived (e.g., compiled), enables a programmer to study and develop its algorithms.Computer source code is often written by computer programmers. Source code is written in a programming language that usually follows one of two main paradigms: imperative or declarative programming. Source code may be converted into an executable file (sometimes called an executable program or a binary) by a compiler and later executed by a central processing unit. Alternatively, computer programs may be executed with the aid of an interpreter, or may be embedded directly into hardware.Computer programs may be categorized along functional lines: system software and application software. Two or more computer programs may run simultaneously on one computer, a process known as multitasking.

Page 20: Prepared by Arch PhD Antonino Di Raimo UNIVERSITETI POLIS SHKOLLA NDERKOMBETARE E ARKITEKTURES DHE POLITIKAVE URBANE Write the shape! (An introduction.

Prepared by Arch PhD Antonino Di Raimo

0) Choose a plant!

1) Take a picture of it

2) Publish it on your blog

3) Bring the plant at school!