Skip to content

Commit

Permalink
more tiny edits
Browse files Browse the repository at this point in the history
  • Loading branch information
quii committed Apr 27, 2018
1 parent 8092066 commit dbbe868
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions http-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -1017,7 +1017,7 @@ Build it, run it and then use CURL to test it out
Great! You've made a REST-ish service. To take this forward you'd want to pick a data store so you can persist the scores longer than the length of time the program runs.

- Pick a store (Bolt? Mongo? Postgres? File system?)
- Make it implement `PlayerStore`
- Make `PostgresPlayerStore` implement `PlayerStore`
- TDD the functionality so you're sure it works
- Plug it into the integration test, check it's still ok
- Finally plug it into `main`
Expand All @@ -1033,7 +1033,7 @@ Great! You've made a REST-ish service. To take this forward you'd want to pick a
### Interfaces, Mocking and DI

- Let's you iteratively build the system up in smaller chunks
- Allows you to develop a handler that needs a storage without needing to write one
- Allows you to develop a handler that needs a storage without needing actual storage
- TDD to drive out the interfaces you need

### Commit sins, then refactor (and then commit to source control)
Expand Down

0 comments on commit dbbe868

Please sign in to comment.