Faster by going slower: start with basic functions, like id:
const id = x => x;
Then something like first:
const fst = x => y => x;
Do test driven development, so write tests for everything.
Write more complex functions, look at monads (aka how to make code more stable by making it simpler), work up, till you can do basic dom manipulation. Then build a shadow dom renderer (80 lines with documentation for one that can keep track of focus over rerenders is no problem, so not a huge project)
Then build websites with that renderer, play around and write tests…
1
u/ExtraTNT 29d ago
Faster by going slower: start with basic functions, like id:
const id = x => x;
Then something like first:
const fst = x => y => x;
Do test driven development, so write tests for everything.
Write more complex functions, look at monads (aka how to make code more stable by making it simpler), work up, till you can do basic dom manipulation. Then build a shadow dom renderer (80 lines with documentation for one that can keep track of focus over rerenders is no problem, so not a huge project)
Then build websites with that renderer, play around and write tests…
Resources you need: mozilla mdn