200 likes | 213 Views
UNIVERSITETI POLIS SHKOLLA NDERKOMBETARE E ARKITEKTURES DHE POLITIKAVE URBANE. Coding. Write the shape! (An introduction to coding as critical tool in architecture). Prepared by Arch PhD Antonino Di Raimo. Algorithm. through the metaphor of the recipe,
E N D
UNIVERSITETI POLIS SHKOLLA NDERKOMBETARE E ARKITEKTURES DHE POLITIKAVE URBANE Coding Write the shape! (An introduction to coding as critical tool in architecture) Prepared by Arch PhD Antonino Di Raimo
Algorithm through the metaphor of the recipe, now we can explain the concept of algorithm An algorithm can be intended asstep-by-stepprocedure 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 Prepared by Arch PhD Antonino Di Raimo
list of instructions they have to be...written computer machine language task(s) Prepared by Arch PhD Antonino Di Raimo
language Language: human (or animal) capacity of conceptualizing, defining and using complex systems of communication
complexity of language observed in bees behavior Credits: http://www.americasbeekeeper.com/Private_Gallery.htm
Credits NASA (Pioneer 10 and 11) Prepared by Arch PhD Antonino Di Raimo
human communication with the computer GUI (Graphical user interface) original 1984 Mac OS desktop
Material object or GUI? Prepared by Arch PhD Antonino Di Raimo
...Or a combination between graphical and material (interface) Prepared by Arch PhD Antonino Di Raimo
relationship! Robert Doisneau – Le baiser de l’Hotel de Ville,1950
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 tasks through a computer, or a machine (in which the computer can be embedded) Writing is a central and crucial matter of the communication with the computer Prepared by Arch PhD Antonino Di Raimo
Processing is an open sourceprogramming 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) 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) Prepared by Arch PhD Antonino Di Raimo
1) statement The statement can be intended as a declaration inside the program. It has to be written according to the specific syntax of the language 2) expression In 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) Variables One of the most important concept. We take time to explore it. Prepared by Arch PhD Antonino Di Raimo
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... Variables 1) INTEGERS 2) FLOATINGS 3) BOOLEANS 4) STRINGS 5) NULL VARIABLE 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. 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! Prepared by Arch PhD Antonino Di Raimo