Products
Everything I build aims at the philosophy on the pages before this one. Not everything I have shipped reaches it yet.
So each product here says two things: what it holds to, and where it still falls short. A list of only the parts that work would hide part of the picture - and hiding part of the picture is the capture the intro warns about.
2letters
A word-grid game for two to four people who share a code, or for one person playing solo. Everyone draws from a shared tile pool and builds a private crossword. No accounts, nothing to install.
What it holds to
- No accounts.
- A shared code is the whole of joining a game. Solo play never calls the server at all.
- The server owns only what has to be shared.
- Matchmaking, the tile pool, and saved state. Word checking and grid rules run in the browser, in the code the game already ships.
- Each concern has one home.
- The draw rules know nothing of HTTP. Storage knows nothing of the draw rules. Every game rule can be tested against an in-memory database.
- Dependencies earn their place.
- Plain PHP and plain JavaScript. No framework, no package manager, no build step.
- Deletion is deliberate.
- Game state isn't a record, so it carries no audit history - but its end is still a decision. A game nobody has played for seven days is deleted, and a player who comes back to one is told it expired instead of being shown an error. (In Practice)
Where it falls short
- It does not work without JavaScript.
- In Practice says pages stay usable with scripting off. 2letters is played by moving tiles, and with scripting off there is no game.
- It is not laid out as DLPR.
- The separation holds, but the code isn't divided into Data, Logic, Presentation and Routing - it was judged too small to need it. The Architecture page says "always." Here, so far, that is true of the discipline and not of the layout.
- It hasn't been tested on an iPhone.
- It has been played on a real Android phone. Safari on an iPhone handles the screen differently, and drag-and-drop there has been checked only in an emulator.