List of figures and tables

Author

Acknowledgements

Glossary

INTRODUCTION: WHY STUDY COMPUTATIONAL THINKING?

PART I COMPUTATIONAL THINKING

  1. WHAT IS COMPUTATIONAL THINKING?

Objectives

What is computational thinking?

How is computational thinking used?

Disclaimers

Summary

Exercises

  1. LOGICAL AND ALGORITHMIC THINKING

Objectives

Approach

Logical thinking

Algorithmic thinking

‘Gotchas’

Summary

Exercises

  1. PROBLEM-SOLVING AND DECOMPOSITION

Objectives

Where to start

Defining the problem

Devising a solution: Something to keep in mind

Decomposition

Other effective strategies

Patterns and generalisation

Summary

Exercises

  1. ABSTRACTION AND MODELLING

Objectives

Abstraction

Modelling

Summary

Exercises

  1. ANTICIPATING AND DEALING WITH ERRORS

Objectives

Coming to terms with bugs

Designing out the bugs

Mitigating errors

Testing

Debugging

You can’t have everything: Deciding which errors to fix

Summary

Exercises

  1. EVALUATING A SOLUTION

Objectives

Solution evaluation

Is it correct?

Is it efficient?

Is it elegant?

Is it usable?

Trade-offs

Summary

Exercises

PART II COMPUTATIONAL THINKING IN SOFTWARE DEVELOPMENT

  1. TUTORIAL FOR PYTHON BEGINNERS

Objectives

Introducing Python

First steps

Basic types

Basic operations

Functions

Comments

Summary

Exercises

  1. EFFECTIVE BUILDING BLOCKS

Objectives

Logic

Basic algorithmic constructs

Program state

More advanced constructs

Summary

Exercises

  1. ORGANISING YOUR CODE

Objectives

Recap

Introducing tkinter

Separating concerns

Defining information scope

Using modules

Packages

Summary

Exercises

  1. USING ABSTRACTIONS AND PATTERNS

Objectives

Finding patterns in programs

Abstractions in programming

Built-in types

Creating your own types

Ready-made patterns

Summary

Exercises

  1. EFFECTIVE MODELLING

Objectives

Recap

Entities

Relationships

Processes

Usage

General advice

Summary

Exercises

  1. TESTING AND EVALUATING PROGRAMS

Objectives

Introduction to program testing and evaluation

Anticipating bugs

Verification and validation

Testing the parts

Testing the whole

Debugging

Summary

Exercises

  1. A GUIDED EXAMPLE

Problem definition

Problem decomposition

Finding patterns

Form generalisations and abstractions

Models

Annotated source code

Testing

Opportunities for improvement

APPENDIX A: REFERENCE LISTS AND TABLES

Order of operator precedence

Usability heuristics

Mutable and immutable types in Python

APPENDIX B: ANSWERS TO EXERCISES

Notes

References

Index