Designing an Asynchronous Solution

Test-driving your code will result in a design that usually differs from what you initially conceived. That’s not an excuse to abandon up-front design completely, however. You usually want to start with a road map that provides a reasonable direction.

Just don’t invest much time adding detail to the road map, because you’ll no doubt need to take a few detours as you travel the road ahead. The sections of the road map that detail the road ultimately not traveled represent a waste of your time.

A GeoServer client wants a simple interface—pass the server a user, a width, and a height, and receive a list of users in response. To support an asynchronous experience, however, the client will need to pass a callback ...

Get Modern C++ Programming with Test-Driven Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.