J. Correia Lopes

FEUP/DEI & INESC TEC

User Tools

Site Tools


teach:fpro:lectures:09

T: 23/10/2018

Master in Informatics and Computing Engineering
Programming Fundamentals
Instance: 2018/2019


Lecture #9 :: 23/10/2018

Goals

By the end of this class, the student should be able to:

  • Understand and perform (simple) unit testing
  • Understand the use of the function main()
  • Understand the use of global variables

Content

  • Unit testing
  • Using a main() function
  • Tricks and tips
  • Global variables
  • Computational thinking
  • Exercises

Bibliography

  • Brad Miller and David Ranum, Learning with Python: Interactive Edition. Based on material by Jeffrey Elkner, Allen B. Downey, and Chris Meyers (Section 6.7) [HTML]
  • Peter Wentworth, Jeffrey Elkner, Allen B. Downey, and Chris Meyers, How to Think Like a Computer Scientist — Learning with Python 3 (RLE), 2012 (Section 6.7) [HTML]
  • Peter Wentworth, Jeffrey Elkner, Allen B. Downey, and Chris Meyers, How to Think Like a Computer Scientist — Learning with Python 3, 2018 (Section 4.18) [PDF]

Materials

Summary

  • Introduction to unit testing. Use of main() function. Global variables. Some tricks and tips.

FPRO, 2018/19

« Previous | Index | Next »

teach/fpro/lectures/09.txt · Last modified: 24/10/2018 09:48 by Correia Lopes