Open
Description
The following is from Rahul:
There are several issues with our tutorials today:
- Brittle: it is easy for them to break and we wouldn't even realize
- Hard to test on CI
- A dev following tutorial has to keep copy pasting so much code - breaks their flow. I have heard from several high quality devs that they dislike this and instead just switch to the monorepo.
- So much work for us to build and maintain them
Potential solution:
Document our contracts and relevant e2e tests very very well.
Tutorials will now
- Folder Setup: point to the codespace for setup (today we talk through the aztec-nargo and jest setup. Codespaces are neater and quicker - Less copy paste)
- link to contract code in the monorepo.
- typescipt glue cpde -> the only place e2e code differs from sandbox is the setup (before() section). We can add multi line comments saying "UNCOMMENT IF USING SANDBOX" and add relevant setup their.
This does a few things:
- Following tutorials is cleaner and quicker
- Tutorials are constantly tested (except the small typescript setup code which itself is tested in other places)
- We streamline our focus on high quality devs (at this stage, we don't want many devs. We want many high quality devs)
there is an additional problem I am trying to solve for -> minimising the number of copy-pastes and instead having 1-2 files of really well documented code.
- draft a doc that explains the requirements, research and rationale for the solutions chosen to make it easier for everyone to get up to speed on how to maintain tutorials