You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To the novice or to someone who's been using JavaScript for a while but isn't yet up-to-speed with promises and async/await, it would be helpful for us to answer these questions:
Why didn't I have to use await before ipfs.dag.put() in one lesson but I do in another? (The answer has to do with the fact that ipfs.dag.put() and ipfs.dag.get() are actually returning promises, which we haven't mentioned anywhere, so to oversimplify, if you are going to need to do something with that value later, you need the await.)
What's going on with this big run aysnc function wrapped around the code I'm writing?
When you tell me to return something, do I add something inside of that run function or replace return run with return myThing?
We need to decide what form this should take and where it should live. Is it a lesson within the first workshop? Is it a separate page we link to from multiple workshops?
This is essentially JavaScript info, not IPFS info, so we don't want to consume too much space with it, but we need to acknowledge that it causes a bit of confusion as the user progresses through exercises.
We need some kind of explainer just about JavaScript and how we're using it in the lessons. It won't be too hard to write up but I'm mostly just worried about where to put it, the exercise area is starting to get cluttered.
To the novice or to someone who's been using JavaScript for a while but isn't yet up-to-speed with promises and async/await, it would be helpful for us to answer these questions:
await
beforeipfs.dag.put()
in one lesson but I do in another? (The answer has to do with the fact that ipfs.dag.put() and ipfs.dag.get() are actually returning promises, which we haven't mentioned anywhere, so to oversimplify, if you are going to need to do something with that value later, you need theawait
.)run
aysnc function wrapped around the code I'm writing?return run
withreturn myThing
?We need to decide what form this should take and where it should live. Is it a lesson within the first workshop? Is it a separate page we link to from multiple workshops?
This is essentially JavaScript info, not IPFS info, so we don't want to consume too much space with it, but we need to acknowledge that it causes a bit of confusion as the user progresses through exercises.
cc @mikeal
The text was updated successfully, but these errors were encountered: