4 ms·
You could, but you'd be reinventing the wheel. You might start with some snippets you copy around, and every now and then you have to go back to all your previo
by oneplane 4y ago
You could, but you'd be reinventing the wheel. You might start with some snippets you copy around, and every now and then you have to go back to all your previous projects to fix some change required in new browsers. So you might start using version numbers on your snippets you can figure out what you used when. But then you figure some HTML and CSS go really well together, so you try to put those snippets alongside each other and bundle them up. Your JavaScript probably needs to know which one of those HTML and CSS snippet bundles you are using, so you'll want to make sure that you specify which one you are using in your JavaScript.
At this point you're building a crappy version of a module and package manager, but all by yourself, nobody else is using your stuff, and you can't use their stuff either because it's not in your bespoke format.
All of the examples and concepts here are just inter-project related, but this applies within a project all the same.