3 ms·
I’ve spent the last two weeks agonizing over the design of some API endpoints for a side project I’m working on (clean and tidy). This is stopping me from actu
by lbotos 4y ago
I’ve spent the last two weeks agonizing over the design of some API endpoints for a side project I’m working on (clean and tidy).
This is stopping me from actually making any meaningful progress on some other challenges in the codebase. (pushing boundaries)
And for the actual problem: is drawing a card actually move with a source and destination?
/player1/draw
/move/player1_deck/to/player1_hand
I keep getting hung up on the fact that move feels “more right abstractly” but now the move endpoint has to know about _all states_ to know if the move is valid.