fundamentals of programming

20
FUNDAMENTALS OF PROGRAMMING SM1204 Semester A 2010/2011

Upload: nemo

Post on 24-Feb-2016

76 views

Category:

Documents


1 download

DESCRIPTION

Fundamentals of Programming . SM1204 Semester A 2010/2011. Self-Introduction. Oscar Au Tel: (852) 3442 5725 Fax: (852) 3586 1484 E-mail: [email protected] Office: ICSCM14 ( Inno Center 5 th floor) http://sweb.cityu.edu.hk/kincau/. Tentative Topics. Programming fundamentals - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Fundamentals  of Programming

FUNDAMENTALS OF PROGRAMMING SM1204 Semester A 2010/2011

Page 2: Fundamentals  of Programming

Self-Introduction• Oscar Au

• Tel: (852) 3442 5725Fax: (852) 3586 1484E-mail: [email protected]: ICSCM14 (Inno Center 5th floor)

• http://sweb.cityu.edu.hk/kincau/

Page 3: Fundamentals  of Programming

Tentative Topicso Programming fundamentalso General problem solving skillso 2D algorithmic graphicso Motion and animationo User interaction (keyboard & mouse)o Interactivity with image, video and soundo Basic object oriented programmingo (optional) Basic 3D programmingo And more …

Page 4: Fundamentals  of Programming

Programmingo What is programming?

o Designing, writing, testing, debugging, troubleshooting, maintaining code and program…

o Is an art? a craft? An engineering discipline? A science?

Page 5: Fundamentals  of Programming

Programming Separation of programming layers

Data

Logic Presentation

Page 6: Fundamentals  of Programming

Programmingo Where are these fields of software

belongs to?o Database, AI, networking, operating

system, business software, games

o What are we focusing?

Page 7: Fundamentals  of Programming

Programming We learn programming because there

are something we want to present!

Data

Logic PresentationHere we are!

Page 8: Fundamentals  of Programming

Possibilities What could we do with our own

programs?

Visualization Check! www.visualcomplexity.com

Page 9: Fundamentals  of Programming

Possibilities What could we do with our own

programs?

Interactions

Page 10: Fundamentals  of Programming

Possibilities What could we do with our own

programs?

Arts

Page 11: Fundamentals  of Programming

Processingo Development platform: Processing 1.2

o Open source programming language & environment

o Based on Javao Designed for visual context and arts –

including images, animations, and interactions

Page 12: Fundamentals  of Programming

Installationo To install Processing in your computer …

o Download from processing.orghttp://processing.org/download/

o Windows & Linux performso Unzip and run processing.exe / processing

o Mac OS X performo Drag dmg file to Applications folder

Page 13: Fundamentals  of Programming

Introduction of UI

Display window

ToolbarMenu bar

Tabs

Text editor

Message areaconsole

Page 14: Fundamentals  of Programming

Introduction of UIo Let make your first program!o Type “ellipse(50, 50, 80, 80);” in the text

editoro Press RUN button to execute your

programo Press STOP button to stop

Output

Page 15: Fundamentals  of Programming

Introduction of UIo To save your program, press SAVE button

o Each processing program is called sketcho ! Each sketch has to be placed in a folder

with same name in order to run correctly

o Press LOAD button to load a saved sketcho To create a new sketch, press NEW button

Page 16: Fundamentals  of Programming

Introduction of UIo You can share you work by exporting

your program to java appleto Press EXPORT button and select a folder

to exporto Open html file in browser to check the

resultsExported files

Applet in browser

Page 17: Fundamentals  of Programming

Demo

Page 18: Fundamentals  of Programming

Assessment

o In-class exercises and discussion: 30%

o 3 Assignments: 70% (20% + 20% + 30%)

o Curved grading: A+, A, A-, B+, ….

Page 19: Fundamentals  of Programming

Online Reference http://processing.org/reference/

Page 20: Fundamentals  of Programming

Reference - Books http://processing.org/learning/books/