-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP Architecture #60
WIP Architecture #60
Conversation
doc/architecture-crc.md
Outdated
| - receives responses to the question | | | ||
| - determines correctness of responses | | | ||
| - determines when to end the round | | | ||
| - determines points players win or loose | | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there are quite a lot of responsibilities here but they're all closely related so I feel ok about it.
doc/architecture-crc.md
Outdated
|
||
|
||
| Responsibilities | Collaborators | | ||
|-------------------------------|-----------------| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I struggled a bit with the responsibilities with this one. I'm a bit confused over it's purpose.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1. I wondered about moving it into the index, but then the index might be doing too much. Maybe the methods after onCreated
should live in different places
022a392
to
ae4e96e
Compare
ae4e96e
to
21b9431
Compare
8eb31a0
to
40a96ea
Compare
40a96ea
to
07a8c3f
Compare
07a8c3f
to
40a96ea
Compare
This caused some confusion about what the original non-destructured argument was so we've undone it for clarity Co-authored-by: Liz Daly <50752284+lookupdaily@users.noreply.github.com> Co-authored-by: Rich James <richpjames@users.noreply.github.com>
This is really a single event (note the union typing), despite being used as the value for an `events` key, so the type is updated here for accuracy
The `--watch` argument was in the wrong place in the `package.json` `start` script. This separates the script into a watch and non-watch version and fixes the watch version The watch version is then used in `script/server` so that we are watching for changes by default - useful for dev purposes Co-authored-by: Liz Daly <50752284+lookupdaily@users.noreply.github.com> Co-authored-by: Rich James <richpjames@users.noreply.github.com>
Co-authored-by: Liz Daly <50752284+lookupdaily@users.noreply.github.com> Co-authored-by: Rich James <richpjames@users.noreply.github.com>
I thought it might be useful to reason about the architecture using the [CRC card format](https://en.wikipedia.org/wiki/Class-responsibility-collaboration_card). These aren't all classes but they all have responsibilities and collaborators (consumers/dependencies). I've tried to describe things as they are rather than how they should be.
40a96ea
to
d5b3bc3
Compare
944114e
to
7e9b74d
Compare
No description provided.