Earlier quoted context omitted.
Man I cannot wait for bundlers and all of that garbage to go the way of the dodo bird.
Man I cannot wait for compilers and linkers and all that garbage to go the way of the dodo bird.
Modern SPAs without bundlers, CDNs, or Node.js
101–110 of 170 posts
Re: Modern SPAs without bundlers, CDNs, or Node.js
#102Import maps strike me as a huge win for making prototypes, or things where you control what exactly you're importing (eg from a private registry instead of NPM), but throwing out the bundler and more importantly the tree-shaking and minification steps of bundling, will result in a massive about of unused code being delivered to the user. You'll be relying on maintainers putting minified, unbloated assets in their pac…
I think the issue might be the name "tree shaking". People from outside of the JavaScript just don't understand what it means, and how important it is. Maybe we should have just called it "dead code elimination". (I think there is some subtle difference but my memory is failing me).
Re: Modern SPAs without bundlers, CDNs, or Node.js
#103Earlier quoted context omitted.
I’ve been doing it professionally for 20 years, and I agree. Modern front end development with TypeScript, Vite, Preact, and even the much maligned npm are so much better than anything that preceded them for building complex front end applications. I like having a build step for code that I write. I build C, I build Go, I build C#. I don’t ship debug builds of those things. I don’t know why I’d want to forego all of…
Comparing building a golang project with "building" a frontend project is pretty laughable. Frontend "builds" are atrocious.
Re: Modern SPAs without bundlers, CDNs, or Node.js
#104Earlier quoted context omitted.
I’ve been doing it professionally for 20 years, and I agree. Modern front end development with TypeScript, Vite, Preact, and even the much maligned npm are so much better than anything that preceded them for building complex front end applications. I like having a build step for code that I write. I build C, I build Go, I build C#. I don’t ship debug builds of those things. I don’t know why I’d want to forego all of…
I have never ever in my lifetime seen a front end application that was enjoyable to use.
Re: Modern SPAs without bundlers, CDNs, or Node.js
#105Sigh... Another post like this. Sure, it works well enough for the example shown in the article, but won't work well beyond this. Bundlers, package managers and other tools were created to address problems people saw in medium-large projects for websites with a lot of traffic. And as soon as the project has dozens of files and even just two or three external libraries, this becomes unmaintainable. Not to mention mini…
I’ve been doing it professionally for 20 years, and I agree. Modern front end development with TypeScript, Vite, Preact, and even the much maligned npm are so much better than anything that preceded them for building complex front end applications. I like having a build step for code that I write. I build C, I build Go, I build C#. I don’t ship debug builds of those things. I don’t know why I’d want to forego all of…
I do mind that they install 2000 packages, though.
Re: Modern SPAs without bundlers, CDNs, or Node.js
#106Sigh... Another post like this. Sure, it works well enough for the example shown in the article, but won't work well beyond this. Bundlers, package managers and other tools were created to address problems people saw in medium-large projects for websites with a lot of traffic. And as soon as the project has dozens of files and even just two or three external libraries, this becomes unmaintainable. Not to mention mini…
The last couple days there's been a lot of negativity towards the build step, but it's like everyone's forgotten the historical context that made the build step so popular to begin with. I'll give credit to the post about the fragility of certain build tools long-term in the npm ecosystem, but I don't think that's a reason to shrug off build tools period. We just need better, more stable ones (and I think we're start…
Maybe the reasons are not as strong as it seems?
Re: Modern SPAs without bundlers, CDNs, or Node.js
#107If I really needed to go without a bundler, my search would start and end with Vue. Other popular js frameworks (even some of newer ones) are heavily tied to a bundler. And why use less popular alternatives when vue comes with official router, state mgmt and devtools?
Re: Modern SPAs without bundlers, CDNs, or Node.js
#108Re: Modern SPAs without bundlers, CDNs, or Node.js
#109Earlier quoted context omitted.
Man I cannot wait for compilers and linkers and all that garbage to go the way of the dodo bird.
You don’t, and never did, need compilers and linkers for JavaScript. There’s even “script” right in the name.
Re: Modern SPAs without bundlers, CDNs, or Node.js
#110Sigh... Another post like this. Sure, it works well enough for the example shown in the article, but won't work well beyond this. Bundlers, package managers and other tools were created to address problems people saw in medium-large projects for websites with a lot of traffic. And as soon as the project has dozens of files and even just two or three external libraries, this becomes unmaintainable. Not to mention mini…
"Sigh, another car user. What are you going to do when you need to transport 50 humans at the same time?"