I’m livecoding weekly on Twitch with Ted M. Young, aka @jitterted. We’re looking at Nullables and A-Frame Architecture as an alternative to Mocks, Spies, and Hexagonal Architecture. For schedule, source code, and other details, see https://www.jamesshore.com/v2/project....
In this episode, now that we’ve finished making our adapters nullable, we’re ready to introduce them to our application code. We start by making GameService nullable, then clean up all the existing tests to use GameService.createNull() rather than creating and injecting dependencies manually. That leaves plenty of time for design discussion, and a start to our next feature: persistence! We design our database schema and decide how to tackle the problem.