1 / 20

Fundamentals of Programming

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

nemo
Download Presentation

Fundamentals of Programming

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Fundamentals of Programming SM1204 Semester A 2010/2011

  2. Self-Introduction • Oscar Au • Tel: (852) 3442 5725Fax: (852) 3586 1484E-mail: kincau@cityu.edu.hkOffice: ICSCM14 (Inno Center 5th floor) • http://sweb.cityu.edu.hk/kincau/

  3. Tentative Topics • Programming fundamentals • General problem solving skills • 2D algorithmic graphics • Motion and animation • User interaction (keyboard & mouse) • Interactivity with image, video and sound • Basic object oriented programming • (optional) Basic 3D programming • And more …

  4. Programming • What is programming? • Designing, writing, testing, debugging, troubleshooting, maintaining code and program… • Is an art? a craft? An engineering discipline? A science?

  5. Programming • Separation of programming layers Data Logic Presentation

  6. Programming • Where are these fields of software belongs to? • Database, AI, networking, operating system, business software, games • What are we focusing?

  7. Programming • We learn programming because there are something we want to present! Data Logic Presentation Here we are!

  8. Possibilities • What could we do with our own programs? • Visualization • Check! www.visualcomplexity.com

  9. Possibilities • What could we do with our own programs? • Interactions

  10. Possibilities • What could we do with our own programs? • Arts

  11. Processing • Development platform: Processing 1.2 • Open source programming language & environment • Based on Java • Designed for visual context and arts – including images, animations, and interactions

  12. Installation • To install Processing in your computer … • Download from processing.orghttp://processing.org/download/ • Windows & Linux performs • Unzip and run processing.exe / processing • Mac OS X perform • Drag dmg file to Applications folder

  13. Introduction of UI Menu bar Toolbar Tabs Text editor Display window Message area console

  14. Introduction of UI • Let make your first program! • Type “ellipse(50, 50, 80, 80);” in the text editor • Press RUN button to execute your program • Press STOP button to stop Output

  15. Introduction of UI • To save your program, press SAVE button • Each processing program is called sketch • ! Each sketch has to be placed in a folder with same name in order to run correctly • Press LOAD button to load a saved sketch • To create a new sketch, press NEW button

  16. Introduction of UI • You can share you work by exporting your program to java applet • Press EXPORT button and select a folder to export • Open html file in browser to check the results Exported files Applet in browser

  17. Demo

  18. Assessment • In-class exercises and discussion: 30% • 3 Assignments: 70% (20% + 20% + 30%) • Curved grading: A+, A, A-, B+, ….

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

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

More Related