Message-Passing Exercise
Proposal:
- Traditional procedural APIs are rigid and slow down development.
- Better instead to use a message-passing approach.
- Example: simple game program. Moves "sprites" in one dimension, checks for collisions.
Claims:
- The message passing version has no APIs or dependencies
- Easier to make changes with the message passing approach; e.g., Game class didn't change at all in game2a.cc
- Shouldn't define APIs before you know how you're going to use them
- The message-based approach works even better with larger systems