Vanilla-todo: A case study on viable techniques for vanilla web development
1–10 of 154 posts
Re: Vanilla-todo: A case study on viable techniques for vanilla web development
#2I would question the choice to use ES5, as it makes it significantly more complicated to handle dependencies between modules in a scalable way. I understand the point of avoiding a build step, but if the code can run in modern clients without it I don’t think it breaks the spirit of the project to use a bundler to support certain older browsers. It’s a lot like using polyfills when needed.
Re: Vanilla-todo: A case study on viable techniques for vanilla web development
#3Re: Vanilla-todo: A case study on viable techniques for vanilla web development
#4This is nice, patterns over libraries. I would question the choice to use ES5, as it makes it significantly more complicated to handle dependencies between modules in a scalable way. I understand the point of avoiding a build step, but if the code can run in modern clients without it I don’t think it breaks the spirit of the project to use a bundler to support certain older browsers. It’s a lot like using polyfills w…
I love the motivation behind the repo though. The author’s write-up is fantastic and refreshingly reasonable in the dogmatic webdev world. It gives great insight into the places where real value _is_ provided by frameworks and build tools
Re: Vanilla-todo: A case study on viable techniques for vanilla web development
#5That said, I don't hate it. For quite some time, I've taken the stance that a web development team needs an opinionated framework, but it's fine for it to be a bespoke creation rather than off-the-shelf. The biggest value of choosing React, Vue, Svelte, etc is, in my opinion, less about it doing the heavy lifting for you with the DOM and more about adopting an established valid opinion to guide the team's development.
Re: Vanilla-todo: A case study on viable techniques for vanilla web development
#6Re: Vanilla-todo: A case study on viable techniques for vanilla web development
#7First write the app in spaghetti code, then turn it into pure functions.
var app = todoList(data);
document.documentElement.appendChild(app);Re: Vanilla-todo: A case study on viable techniques for vanilla web development
#8This is nice, patterns over libraries. I would question the choice to use ES5, as it makes it significantly more complicated to handle dependencies between modules in a scalable way. I understand the point of avoiding a build step, but if the code can run in modern clients without it I don’t think it breaks the spirit of the project to use a bundler to support certain older browsers. It’s a lot like using polyfills w…
Re: Vanilla-todo: A case study on viable techniques for vanilla web development
#9Proceeds to literally invent a custom framework.
It’s interesting, but I’ll stick with Vue/React.
Re: Vanilla-todo: A case study on viable techniques for vanilla web development
#10The trick is to stop thinking XML/HTML and instead use functions which returns elements/components. First write the app in spaghetti code, then turn it into pure functions. var app = todoList(data); document.documentElement.appendChild(app);
(M) Model is your `data`. (V) View is what your function returns. (C) Controller is the functions your elements may use to mutate the data.