2005.02.10 - SLIDE 1IS146 - Spring 2005 Computation: Programmability Prof. Marc Davis & Prof. Peter Lyman UC Berkeley SIMS Tuesday and Thursday 2:00 pm.

Slides:



Advertisements
Similar presentations
Logo Lesson 1 TBE Fall 2004 Farah Fisher.
Advertisements

CS320n –Visual Programming Class-level Methods and Inheritance – Part 1 Mike Scott (Slides 4-3-1) Thanks to Wanda Dann, Steve Cooper, and Susan Rodger.
Computer Science 1000 LOGO I. LOGO a computer programming language, typically used for education an old language (1967) the basics are simple: move a.
Super Logo. Key Instructions Pendown penup Forward 50 ( this number can change) Right 90 ( this number can change as well) Now try and draw a Early finishers,
SLIDE 1IS – SPRING 2004 Session 08: Project Plans IS Digital Media Design Studio Prof. Marc Davis UC Berkeley SIMS Tuesdays and.
SLIDE 1IS – SPRING 2004 Session 03: Project Status Update IS Digital Media Design Studio Prof. Marc Davis UC Berkeley SIMS Tuesdays.
SLIDE 1IS – SPRING 2004 Session 07: Project Redesigns IS Digital Media Design Studio Prof. Marc Davis UC Berkeley SIMS Tuesdays.
SLIDE 1IS146 - Spring 2005 Computation: History and Ideas Prof. Marc Davis & Prof. Peter Lyman UC Berkeley SIMS Tuesday and Thursday 2:00.
SLIDE 1IS146 – SPRING 2005 Designing New Media Prof. Marc Davis, Prof. Peter Lyman, and danah boyd UC Berkeley SIMS Tuesday and Thursday 2:00.
CSC Intro. to Computing Lecture 17: Even More Robotran!
SLIDE 1IS246 - SPRING 2003 Lecture 12: Theory and History of Computation IS246 Multimedia Information (FILM 240, Section 4) Prof. Marc Davis.
SLIDE 1IS – SPRING 2004 Session 04: Project Status Update IS Digital Media Design Studio Prof. Marc Davis UC Berkeley SIMS Tuesdays.
BPC: Art and Computation – Spring 2007 Overview of Spring Semester Tools and Technologies Glenn Bresnahan
SLIDE 1IS 202 – FALL 2002 Prof. Ray Larson & Prof. Marc Davis UC Berkeley SIMS Tuesday and Thursday 10:30 am - 12:00 am Fall 2002
SLIDE 1IS246 - FALL 2004 Lecture 12: Computation IS246 Multimedia Information Prof. Marc Davis UC Berkeley SIMS Monday and Wednesday 2:00.
SLIDE 1IS146 – SPRING 2005 New Media on The Go and in The Home Prof. Marc Davis, Prof. Peter Lyman, and danah boyd UC Berkeley SIMS Tuesday.
SLIDE 1IS 202 – FALL 2004 Prof. Ray Larson & Prof. Marc Davis UC Berkeley SIMS Tuesday and Thursday 10:30 am - 12:00 pm Fall 2004
SLIDE 1IS146 – SPRING 2005 How a Telephone and Telephone Network Work Prof. Marc Davis, Prof. Peter Lyman, and danah boyd UC Berkeley SIMS Tuesday.
SLIDE 1IS246 - SPRING 2003 Lecture 10: Assignment Overview and Ideation IS246 Multimedia Information (FILM 240, Section 4) Prof. Marc Davis.
SLIDE 1IS146 – SPRING 2005 Understanding Visual Media Prof. Marc Davis, Prof. Peter Lyman, and danah boyd UC Berkeley SIMS Tuesday and Thursday.
CSC 160 Computer Programming for Non-Majors Lecture #3a: Stepper, Words, Sentences Prof. Adam M. Wittenstein
SLIDE 1IS246 - SPRING 2003 Lecture 11: Storyboard Working Session and Crit IS246 Multimedia Information (FILM 240, Section 4) Prof. Marc Davis.
SLIDE 1IS246 - SPRING 2003 Lecture 09: Audio and Video Production IS246 Multimedia Information (FILM 240, Section 4) Prof. Marc Davis UC Berkeley.
SLIDE 1IS146 - Spring 2005 Computation: Programming Concepts Prof. Marc Davis & Prof. Peter Lyman UC Berkeley SIMS Tuesday and Thursday 2:00.
SLIDE 1IS 202 – FALL 2002 Prof. Ray Larson & Prof. Marc Davis UC Berkeley SIMS Tuesday and Thursday 10:30 am - 12:00 am Fall 2002
ICE1341 Programming Languages Spring 2005 Lecture #3 Lecture #3 In-Young Ko iko.AT. icu.ac.kr iko.AT. icu.ac.kr Information and Communications University.
B.A. (Mahayana Studies) Introduction to Computer Science November March Logo (Part 1) An introduction to Logo: drawing, moving,
CS 101: Arrays Abhiram Ranade. Computers manipulate many objects Given the position, masses, and velocities of all stars, where will they be after the.
Computer Program A sequence of step-by-step instructions for the computer to follow Why bother? Demo: Human vs. Computer following instructions.
Introduction to Programming Design School of Business Eastern Illinois University © Abdou Illia, Spring 2003 (Week 1, Friday 01/17/2003) (Continued)
Art 321 Lecture 7 Dr. J. Parker. Programming In order to ‘make things happen’ on a computer, you really have to program it. Programming is not hard and.
CS 101: Introduction to computer programming and utilization Abhiram Ranade.
TURTLE GRAPHICS IP MR. MELLESMOEN. LOGO IN THE 1970’S THERE WAS A SIMPLE BUT POWERFUL PROGRAMMING LANGUAGE CALLED LOGO THAT WAS USED BY A FEW.
MSW Logo By Awin 9s.
Logo For beginners By Dali Matthews 9S What is logo?
An introduction to Logo Mike Warriner Engineering Director, Google Note: This course is not an endorsement of Logo by Google. All views in this document.
© Xiaoying Gao, Peter Andreae Introduction to Computer Program Design COMP T2. Xiaoying (Sharon) Gao Computer Science Victoria University of Wellington.
LOGO as a Programming Language for Education. Background LOGO  The LOGO language was developed in 1967 by the Logo Group at MIT under the direction of.
Graphical Programming Languages Lecture 19: Supporting Material Dr Kathryn Merrick Thursday 21 st May, 2009.
Variables. Todays Lesson  In todays lesson you are going to:  Learn to use variables  Learn to ask for user input  Learn to save the users response.
Principles Of Programming Languages Lecture 2 Today Design-By-Contract Iteration vs. Recursion If we have time: live demo!!!
The Pro-Bot* Kate Lester and Nancy Chaffer Term 2, 2010 PCS TPL
1 Managing diversity in introductory programming classes Using Logo as a diagnostic tool John Poulton North East Wales Institute.
Tessellation Project.
Today’s Agenda 1.Collect Pre-Lab 3 2.Alice Programming Assignment 3.Built-in Functions 4.Expressions 5.Control Structure 6.Assign pair programming teams.
Copyright 2002, Tony Gauvin, UMFK
LOGO CECS 4100 R. Christensen.
1 Building Your Own Turtle Functions For making really cool pictures!
Logo for Beginners By Chris 9S.
LOGO For the beginner Made by Rio Narazaki. W HAT I S L OGO ? Logo is a computer programming language used in Education. Logo is very easy to use. The.
CS122 Engineering Computation Lab Lab 1 Bruce Char Department of Computer Science Drexel University Winter 2013.
Cracking the Code WHAT WORKS WHEN TEACHING STUDENTS TO CODE?
First of all – lets look at the window’s you are going to use. At the top you have a toolbar, with all your various tools you can use when customising.
INTRODUCTION TO COMPUTER PROGRAMMING(IT-303) Basics.
‘Taking Control’ Ann Murtagh – June 2014 Olney Infant Academy ‘Taking Control’ Ann Murtagh – June 2014 Olney Infant Academy 1.
Grammars, L-Systems Jim Whitehead UC Santa Cruz School of Engineering courses.soe.ucsc.edu/courses/cmps265/Spring14/01 23 Apr 2014.
Introduction to Programming in C++ Seventh Edition Chapter 1: An Introduction to Programming.
Using Logo to explore spiral patterns. Paul Broadbent Spiral patterns This is a (1,2,3) spiral path. It repeats lines of three.
Computer Programming.
Polygon Constructions
Algorithms and Flow Charts
Graph Paper Programming
Learn… Create… Program
Graph Paper Programming
Learn… Create… Program
Ellie DeGiorgio-Hudson
Learn… Create… Program
Lecture 3: Rules of Evaluation CS200: Computer Science
Learn… Create… Program
Logo Programming.
Presentation transcript:

SLIDE 1IS146 - Spring 2005 Computation: Programmability Prof. Marc Davis & Prof. Peter Lyman UC Berkeley SIMS Tuesday and Thursday 2:00 pm – 3:30 pm Spring IS146: Foundations of New Media

SLIDE 2IS146 - Spring 2005 Lecture Overview Assignment Check In –Assignment 3: Documenting Artifact Usage Review of Last Time –Computation: Programming Concepts Today –Computation: Programmability Preview of Next Time –Computational Media

SLIDE 3IS146 - Spring 2005 Lecture Overview Assignment Check In –Assignment 3: Documenting Artifact Usage Review of Last Time –Computation: Programming Concepts Today –Computation: Programmability Preview of Next Time –Computational Media

SLIDE 4IS146 - Spring 2005 Lecture Overview Assignment Check In –Assignment 3: Documenting Artifact Usage Review of Last Time –Computation: Programming Concepts Today –Computation: Programmability Preview of Next Time –Computational Media

SLIDE 5IS146 - Spring 2005 Algorithms and Programming Algorithm –A step-by-step description of a procedure to achieve a desired result Programming –Primitives –Means of combination –Means of abstraction

SLIDE 6IS146 - Spring 2005 From Algorithms to Programs Algorithm –A step-by-step description of a procedure to achieve a desired result –How can we walk a square? Walk forward Turn Walk forward Turn Walk forward Turn Walk forward

SLIDE 7IS146 - Spring 2005 LOGO Square Example to square –forward 50 –right 90 –forward 50 –right 90 –forward 50 –right 90 –forward 50 –end

SLIDE 8IS146 - Spring 2005 LOGO Square Example to square –params [size] –forward :size –right 90 –forward :size –right 90 –forward :size –right 90 –forward :size –end

SLIDE 9IS146 - Spring 2005 LOGO Window Example to window –params [size] –square :size –end

SLIDE 10IS146 - Spring 2005 LOGO Window Example to window –params [size] –repeat 4 [square :size] –end

SLIDE 11IS146 - Spring 2005 LOGO Window Example to window –params [size] –make squaresize (:size/2) –repeat 4 [square :squaresize] –end

SLIDE 12IS146 - Spring 2005 LOGO Square Example to square –params [size] –forward :size –right 90 –forward :size –right 90 –forward :size –right 90 –forward :size –end

SLIDE 13IS146 - Spring 2005 LOGO Square Example to square –params [size] –forward :size –right 90 –forward :size –right 90 –forward :size –right 90 –forward :size –end

SLIDE 14IS146 - Spring 2005 LOGO Square Example to square –params [size] –forward :size –right 90 –forward :size –right 90 –forward :size –right 90 –forward :size –end

SLIDE 15IS146 - Spring 2005 LOGO Square Example to square –params [size] –forward :size –right 90 –forward :size –right 90 –forward :size –right 90 –forward :size –end

SLIDE 16IS146 - Spring 2005 LOGO Polygon Example to poly –params [sides length] –repeat :sides [forward :length right (360/:sides)] –end

SLIDE 17IS146 - Spring 2005 Lecture Overview Assignment Check In –Assignment 3: Documenting Artifact Usage Review of Last Time –Computation: Programming Concepts Today –Computation: Programmability Preview of Next Time –Computational Media

SLIDE 18IS146 - Spring 2005 Programming Concepts Basic programming constructs –Parameters –Loops –Procedural abstraction –Subroutines –Conditionals

SLIDE 19IS146 - Spring 2005 Making a “C” to c –params [height] –make halfheight :height/2 –left 90 –forward :height –right 90 –forward :halfheight –right 180 –forward :halfheight –left 90 –forward :height –left 90 –forward :halfheight –end

SLIDE 20IS146 - Spring 2005 Making an “A” to a –params [height] –make halfheight :height/2 –left 90 –forward :height –right 90 –forward :halfheight –right 90 –forward :halfheight –right 90 –forward :halfheight –right 180 –forward :halfheight –right 90 –forward :halfheight –left 90 –end

SLIDE 21IS146 - Spring 2005 Making an “M” to m –params [height] –make diagonal (:height/2)*7/5 –left 90 –forward :height –right 135 –forward :diagonal –left 90 –forward :diagonal –right 135 –forward :height –left 90 –end

SLIDE 22IS146 - Spring 2005 Making an “R” to r –params [height] –make halfheight :height/2 –make diagonal :halfheight*7/5 –left 90 –forward :height –right 90 –forward :halfheight –right 90 –forward :halfheight –right 90 –forward :halfheight –left 135 –forward :diagonal –left 45 –end

SLIDE 23IS146 - Spring 2005 Making a “space” to space –params [length] –penup –forward :length –pendown –end

SLIDE 24IS146 - Spring 2005 Making “MARC” to marc –params [height kerning] –m :height –space :kerning –a :height –space :kerning –r :height –space :kerning –c :height –end

SLIDE 25IS146 - Spring 2005 Making “hopback” to hopback –params [length] –penup –back :length –pendown –end

SLIDE 26IS146 - Spring 2005 Making a Circle of “MARC” to marccircle –params [letterheight letterkerning] –make marcnamewidth ((:letterheight*5/2)+(3*:letterkerning)) –repeat 360/:letterheight –[marc :letterheight :letterkerning –hopback :marcnamewidth –right :letterheight –] –end

SLIDE 27IS146 - Spring 2005 Conditionally Making “MARC” Circles to marccirclecond –params [letterheight letterkerning circletightness] –make marcnamewidth ((:letterheight*5/2)+(3*:letterkerning)) –ifelse (:circletightness=0) –[make rotation :letterheight] –[make rotation :letterkerning] –repeat 360/:rotation [marc :letterheight :letterkerning –hopback :marcnamewidth –right :rotation –] –end

SLIDE 28IS146 - Spring 2005 Making a Square of “MARC” to marcsquare –params [letterheight letterkerning] –make marcnamewidth ((:letterheight*5/2)+(3*:letterkerning)) –repeat :marcnamewidth/:letterheight –[marc :letterheight :letterkerning –hopback :marcnamewidth –left 90 –penup –forward :letterheight –right 90 –pendown –] –end

SLIDE 29IS146 - Spring 2005 Lecture Overview Assignment Check In –Assignment 3: Documenting Artifact Usage Review of Last Time –Computation: Programming Concepts Today –Computation: Programmability Preview of Next Time –Computational Media

SLIDE 30IS146 - Spring 2005 Andrea Brown on Hillis Hillis says that “Learning a programming language is not nearly as difficult as learning a natural human language.” Do you think that if humans had difficulty comprehending natural language that their ability to learn programming language would be affected?

SLIDE 31IS146 - Spring 2005 Andrea Brown on Hillis Hillis mentions that the “most successful computers … are generally regarded by computer designers as having poorly designed instruction sets.” Why is that? If computers are meant to mimic the complexity of humans why don’t “successful computers” have elaborate instruction sets?

SLIDE 32IS146 - Spring 2005 Lecture Overview Assignment Check In –Assignment 3: Documenting Artifact Usage Review of Last Time –Computation: Programming Concepts Today –Computation: Programmability Preview of Next Time –Computational Media

SLIDE 33IS146 - Spring 2005 Readings for Next Time Walter Benjamin. The Work of Art in the Age of Mechanical Reproduction. In: Illuminations, edited by Walter Benjamin, New York: Schocken Books, 1985, p –Discussion Questions Steven Lybeck Lev Manovich. The Language of New Media, Cambridge, Massachusetts: The MIT Press, 2001, p –Discussion Questions Mark Martell