15.01.2013 Views

Education in Programming David Gries Dr. rer ... - Cornell University

Education in Programming David Gries Dr. rer ... - Cornell University

Education in Programming David Gries Dr. rer ... - Cornell University

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Order of topics:<br />

How to teach programm<strong>in</strong>g, us<strong>in</strong>g Java<br />

an objected-oriented language<br />

Pr<strong>in</strong>cipal: Def<strong>in</strong>e th<strong>in</strong>gs before you use them.<br />

Teach OO concepts first.<br />

• Expressions, variables, assignments, variable decs (1-2 days)<br />

• objects —creat<strong>in</strong>g them; function/procedure calls (1 day)<br />

• class/subclass def<strong>in</strong>ition, with simple methods that use only<br />

function/procedure calls and return statements (1 day)<br />

• fields, getter/setter methods, constructors, etc.<br />

Throughout, groundwork laid for deal<strong>in</strong>g with correctness concerns by<br />

requir<strong>in</strong>g the use of <strong>in</strong>formal but precise and thorough specifications of<br />

methods and a class <strong>in</strong>variant, which def<strong>in</strong>es the fields.<br />

10<br />

10

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!