List of figures and tables
Author
Acknowledgements
Glossary
INTRODUCTION: WHY STUDY COMPUTATIONAL THINKING?
PART I COMPUTATIONAL THINKING
- WHAT IS COMPUTATIONAL THINKING?
Objectives
What is computational thinking?
How is computational thinking used?
Disclaimers
Summary
Exercises
- LOGICAL AND ALGORITHMIC THINKING
Objectives
Approach
Logical thinking
Algorithmic thinking
‘Gotchas’
Summary
Exercises
- 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
- ABSTRACTION AND MODELLING
Objectives
Abstraction
Modelling
Summary
Exercises
- 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
- 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
- TUTORIAL FOR PYTHON BEGINNERS
Objectives
Introducing Python
First steps
Basic types
Basic operations
Functions
Comments
Summary
Exercises
- EFFECTIVE BUILDING BLOCKS
Objectives
Logic
Basic algorithmic constructs
Program state
More advanced constructs
Summary
Exercises
- ORGANISING YOUR CODE
Objectives
Recap
Introducing tkinter
Separating concerns
Defining information scope
Using modules
Packages
Summary
Exercises
- USING ABSTRACTIONS AND PATTERNS
Objectives
Finding patterns in programs
Abstractions in programming
Built-in types
Creating your own types
Ready-made patterns
Summary
Exercises
- EFFECTIVE MODELLING
Objectives
Recap
Entities
Relationships
Processes
Usage
General advice
Summary
Exercises
- 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
- 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