90 likes | 201 Vues
In Lecture 8 of CS 126, Zeke Maier covers critical aspects of computer programming, including queries and essential administrivia. The session highlights AD Exercises 4.2 and 4.3, focusing on techniques for effective development and debugging. Students learn to write methods, compile code, and fix both syntax and semantic errors. The importance of identifying error types, especially compiler errors, is emphasized, along with useful debugging strategies. Additional resources like lab demos and quiz solutions are also discussed to support ongoing learning.
E N D
Introduction to Computer Programming CS 126 Lecture 8 Zeke Maier
Plan for Today • Questions • Administrivia • AD Exercises 4.2 & 4.3 • Developing • Debugging • Compound Data • Assignment
Administrivia • http://students.cec.wustl.edu/~ejm3/ • Help Session 2-4 in Sever 201 • No office hours • Quiz 1 Solutions • Lab 1 Demo Results • Remote Desktop • TA Schedule?
AD Exercises 4.2 & 4.3 • http://students.cec.wustl.edu/~ejm3/CS126/web/code.html#conditionals
Developing • Development Plan • Write a method • Write more • Compile • Fix syntax errors • Fix semantic errors • Development Plan • Start with a work program • Write a small logical block • Compile & test • Fix errors
Debugging • Determine which type the error is • Compiler Errors • Always debug the first error first! • Error messages can be hard to understand, but normally there is useful information lurking inside
Assignments • Lab 2 due Wednesday • Readings • Monday • KG Notes