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

The learning curve for understanding a strategies function init and function update is really steep #316

Open
TimDaub opened this issue Oct 11, 2022 · 0 comments

Comments

@TimDaub
Copy link
Collaborator

TimDaub commented Oct 11, 2022

  • With both @neatonk and @sweetmantech I had sessions around explaining how the neume strategies work and it was genuinely difficult even for me to explain how this works. Here are some of my observations
  • Users don't get why a strategy has to return {write:..., messages} and what those properties are for
  • Users don't know that write writes to the disk eventually
  • Users don't know the order in which function init and function update and executed and it may not make sense that e.g. function init is executed only once but then function update is executed continuously
  • If users aren't already familiar with extraction worker and the general concept of neume, intuitively they want to sequentially run a for-loop that just fetches all results within a strategy
  • But when I explain that the extraction-worker has a lot of useful benefits, they're OK with using it.
  • Sometimes we also have cases where it'd be nice to just do a synchronous blocking call like e.g. getting the totalSupply of an NFT contract, but then this has to be built with this weird mixture of first returning that task in function init and then picking it up in update and that's annoying. Maybe we should allow the user to just make such calls
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

No branches or pull requests

1 participant