I don't know who originally said it but "If you're not using a framework, you're building a framework". This repo even has the following caveat: (2) These usually end up becoming a custom micro-framework, thereby questioning why you didn't use one of the established and tested libraries/frameworks in the first place. That said, I don't hate it. For quite some time, I've taken the stance that a web development team ne…
Vanilla-todo: A case study on viable techniques for vanilla web development
11–20 of 154 posts
Re: Vanilla-todo: A case study on viable techniques for vanilla web development
#12The neat thing is that it starts from scratch and adds things, like pub/sub, then models, controllers and so on.
Re: Vanilla-todo: A case study on viable techniques for vanilla web development
#13The 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);
In other words, the good old MVC pattern. (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.
Re: Vanilla-todo: A case study on viable techniques for vanilla web development
#14> There's no custom framework invented here. Proceeds 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
#15> There's no custom framework invented here. Proceeds to literally invent a custom framework. It’s interesting, but I’ll stick with Vue/React.
What definition do you have of “framework” if you say that? I just see a bunch of procedures that create and manipulate DOM, coordinating through regular events and selectors. There are patterns and loose organizing principles, but no framework code that I can see.
Re: Vanilla-todo: A case study on viable techniques for vanilla web development
#16> There's no custom framework invented here. Proceeds to literally invent a custom framework. It’s interesting, but I’ll stick with Vue/React.
Original author here. During the study, I explicitly forbid myself from writing general-purpose helpers which would make up a framework. Would you mind elaborating what in your view makes up the "custom framework"? Thanks!
Re: Vanilla-todo: A case study on viable techniques for vanilla web development
#17I don't know who originally said it but "If you're not using a framework, you're building a framework". This repo even has the following caveat: (2) These usually end up becoming a custom micro-framework, thereby questioning why you didn't use one of the established and tested libraries/frameworks in the first place. That said, I don't hate it. For quite some time, I've taken the stance that a web development team ne…
Re: Vanilla-todo: A case study on viable techniques for vanilla web development
#18I don't know who originally said it but "If you're not using a framework, you're building a framework". This repo even has the following caveat: (2) These usually end up becoming a custom micro-framework, thereby questioning why you didn't use one of the established and tested libraries/frameworks in the first place. That said, I don't hate it. For quite some time, I've taken the stance that a web development team ne…
Can I claim I don't violate the "No general-purpose utility functions related to the DOM/UI" if I use only one such function? O:) https://github.com/stefanhaustein/notemplate (the demo is just TodoMVC, though)
Re: Vanilla-todo: A case study on viable techniques for vanilla web development
#19I don't know who originally said it but "If you're not using a framework, you're building a framework". This repo even has the following caveat: (2) These usually end up becoming a custom micro-framework, thereby questioning why you didn't use one of the established and tested libraries/frameworks in the first place. That said, I don't hate it. For quite some time, I've taken the stance that a web development team ne…
With React and particulary svelte (for now) it's a mishmash of possible choices.
Where that bites is when you have 3 choices to make with 4 options.
4^3 === 64 - so any project you pick up/come onto has a 1/64 chance of using a stack you've seen before.
Re: Vanilla-todo: A case study on viable techniques for vanilla web development
#20I don't know who originally said it but "If you're not using a framework, you're building a framework". This repo even has the following caveat: (2) These usually end up becoming a custom micro-framework, thereby questioning why you didn't use one of the established and tested libraries/frameworks in the first place. That said, I don't hate it. For quite some time, I've taken the stance that a web development team ne…