Live data from Hacker News

Modern SPAs without bundlers, CDNs, or Node.js

kofi.sexy

101–110 of 170 posts

Re: Modern SPAs without bundlers, CDNs, or Node.js

#101

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.

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

#102
post #66
post #56

Import 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).

IIRC tree shaking is a form of dead code elimination. Something like: dead code elimination is the what and tree shaking is the how.

Re: Modern SPAs without bundlers, CDNs, or Node.js

#103

Earlier 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.

What a silly thing to say.

Re: Modern SPAs without bundlers, CDNs, or Node.js

#104

Earlier 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.

Is there a reason you decided to come into a Javascript thread just to tell everyone how much you dislike Javascript?

Re: Modern SPAs without bundlers, CDNs, or Node.js

#105
post #78

Sigh... 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 don't mind those things.

I do mind that they install 2000 packages, though.

Re: Modern SPAs without bundlers, CDNs, or Node.js

#106
post #78

Sigh... 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…

> but it's like everyone's forgotten the historical context that made the build step so popular to begin with.

Maybe the reasons are not as strong as it seems?

Re: Modern SPAs without bundlers, CDNs, or Node.js

#107
post #76

If 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?

That has been my experience -- I've been able to leverage Vue and avoid bundlers, node, npm and all the other bloated nonsense.

Re: Modern SPAs without bundlers, CDNs, or Node.js

#109

Earlier 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.

Sure, you strictly do not need many things that make your site smaller and load faster.

Re: Modern SPAs without bundlers, CDNs, or Node.js

#110
post #78

Sigh... 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 like cars, they serve my use case exactly".

"Sigh, another car user. What are you going to do when you need to transport 50 humans at the same time?"

Post reply on HN