Replies: 1 comment 3 replies
-
Interesting, just to clarify the specific ask it's the following two options, we should pick one:
Did I get that right? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Newcomers use AS because it is simpler to learn than RUST. One advantage of learning how to make AS contracts is that every single concept learnt while making AS contracts can be directly translated to RUST contracts. This does not only include "smart contract" concepts (environment, storage, etc) but also the life of the smart contract (how to deploy it, interact with it, update it, and delete it).
Javascript is the perfect candidate to substitute Assemblyscript as our main educational resource. However, its main educational downside is that the life of a JS contract is not similar at all to RUST/AS contracts (as brought up by @BenKurrek here, here, here, here).
Having to split our documentation on "here is how you deploy/interact/update/delete a RUST contract", "here is how you deploy/interact/update/delete a JS contract" will bring more troubles than benefits. Specially if at some point people want to switch from JS to RUST. Because of this I propose to mainly use the docs the "standalone" version of JS, i.e. we assume that people will create
wasm
files of 500kb.Newcomers (and junior devs) will be able to learn in no time how to make contracts and deploy/interact/update/delete them in testnet in the same way as RUST. Once they want to deploy it to mainnet, we can explain them that they have 2 options:
If we do take this approach we could literally implement all the examples in the documentation by next week. This will also simplify presentations of "developing smart-contracts in NEAR" on all future talks.
Beta Was this translation helpful? Give feedback.
All reactions