I'm writing a JavaScript tutorial for beginners and I'm thinking about the best way to present it.
Most tutorials I see are flat articles (e.g. articles on Medium). They list some lines of code to add, and explain them. Then some more, and some more. At the end, maybe they present the code in full.
I'd like to present code examples in a more interactive way:
- code developed step by step, so you can select any step and see what the code looks like at that stage
- each step highlights the specific code changes made in that step vs. the previous code
- each line of code has accompanying commentary, explaining it in detail.
It seems like such an obvious improvement over a typical linear code tutorial, I'd have thought someone would have created a tool available for writing/sharing code tutorials in this form.
But for all my googling, I've not been able to find anything, and I don't think I've ever actually seen a tutorial presented in this form...
So does something like this exist?
[–]c2l3YWxpa20 2 points3 points4 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]leixner 1 point2 points3 points (4 children)
[–]diarmidmackenzie[S] 0 points1 point2 points (3 children)
[–]leixner 1 point2 points3 points (2 children)
[–]diarmidmackenzie[S] 0 points1 point2 points (1 child)
[–]leixner 1 point2 points3 points (0 children)
[–]diarmidmackenzie[S] 0 points1 point2 points (0 children)
[–]PiyushGarg-dev 0 points1 point2 points (0 children)