5 ms·
I like it, and it's also a good example of why a framework will start to be useful if you get more complex code. When we arrive at the CRUD widget,a simple <s
by BiteCode_dev 5y ago
I like it, and it's also a good example of why a framework will start to be useful if you get more complex code.
When we arrive at the CRUD widget,a simple <script> dep on petite-vue (6ko: https://github.com/vuejs/petite-vue https://github.com/vuejs/petite-vue) would half the implementation by half.
Of course it would still count as more lines of code in total, but not sure that matters.
Anyway, when I teach react/vue, I always start with the vanilla example because just like with ORM, people need to know the benefit and cost of the abstraction.
- dsego 5y agoI think this is a good teaching example of doing GUIs with the DOM and the MVC approach. It builds up step by step to introduce all the concepts. https://github.com/madhadron/mvc_for_the_web https://github.com/madhadron/mvc_for_the_web