Skip to content
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

Closed
wants to merge 10 commits into from
Closed

WIP Architecture #60

wants to merge 10 commits into from

Conversation

yndajas
Copy link
Member

@yndajas yndajas commented Feb 20, 2024

No description provided.

| - receives responses to the question | |
| - determines correctness of responses | |
| - determines when to end the round | |
| - determines points players win or loose | |
Copy link
Contributor

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.



| Responsibilities | Collaborators |
|-------------------------------|-----------------|
Copy link
Contributor

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.

Copy link
Member Author

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

@yndajas yndajas mentioned this pull request Feb 20, 2024
@yndajas yndajas changed the base branch from main to tidy-up February 20, 2024 21:24
@yndajas yndajas force-pushed the architecture branch 2 times, most recently from 8eb31a0 to 40a96ea Compare February 20, 2024 21:33
yndajas and others added 6 commits February 21, 2024 14:46
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>
yndajas and others added 4 commits February 21, 2024 15:03
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.
@yndajas yndajas force-pushed the tidy-up branch 5 times, most recently from 944114e to 7e9b74d Compare March 7, 2024 10:03
Base automatically changed from tidy-up to main March 12, 2024 16:34
@yndajas
Copy link
Member Author

yndajas commented Mar 20, 2024

Closing for now since the typing, renaming, and reorganisation work in #73 and #77 has simplified things quite a bit

@yndajas yndajas closed this Mar 20, 2024
@yndajas yndajas deleted the architecture branch August 5, 2024 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants