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

Pub sub "reloaded" --> new version of the pub-sub app #1098

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

552020
Copy link

@552020 552020 commented Feb 19, 2025

I tested it, it seems to work.

Overview
Why do we need this feature? What are we trying to accomplish?

While working on the 2.2 of the "Motoko Developer Liftoff" I had some hard time to understand the example app. The course was pretty good till to this point. So I tried to rewrite the example in a more understandable way, without making too complicate, and also adding some documentation in the README to understand the PubSub app. Since the PubSub app is tied to the video, probably it doesn't make sense to replace them. But maybe this version could be added as a note at the end of the lesson.

An explanation of the changes are in the README itself.

Requirements
What requirements are necessary to consider this problem solved?

Considered Solutions
What solutions were considered?

Recommended Solution
What solution are you recommending? Why?

Considerations
What impact will this change have on security, performance, users (e.g. breaking changes) or the team (e.g. maintenance costs)?

- Replace Counter type with NewsMessage type for better real-world representation
- Rename subscriber functions for clarity (init -> subscribeToTopic)
- Update state tracking from count to totalReadingTime
- Adjust callback functions to handle NewsMessage type
"
@552020 552020 requested a review from a team as a code owner February 19, 2025 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant