Re:If Not React, Then What?
by baobabKoodaa on Sunday December 01, 2024 @04:44AM
(#42287365)
> I never saw anyone on this thread deny that JS CAN be used without frameworks [...]
https://news.ycombinator.com/item?id=42282054
"brochure-ware"
B-R-O-C-H-U-R-E-W-A-R-E
He's right. You have a project with two source files in it. That's basically not at any kind of scale he was talking about, and is easily classified as brochure-ware, from an architectural standpoint, simply because there's no architecture to it at all. Just a monolithic file.
Re:If Not React, Then What?
by baobabKoodaa on Sunday December 01, 2024 @02:14PM
(#42290056)
> Just a monolithic file.
I was willing to assume good intentions from you earlier, but at this point it's clear you're just lying. You've seen the number of files in the repository, we already had a back and forth and you already conceded there was more than one file. And yet here you are, reiterating the same lie. Weird stuff.
Those two 17 LOC files don't count. That leaves precisely two source files, just like I said. It's well under the threshold where I'd consider a framework mandatory.
Re:If Not React, Then What?
by baobabKoodaa on Sunday December 01, 2024 @04:45AM
(#42287379)
> And your app is tiny. It's got like two source files.
If the same app had been written by a typical team of React devs, it would be >1000 source files and 50K LoC. That's not an argument against my approach, it's an argument in favor of it.
Re:If Not React, Then What?
by palmfacehn on Sunday December 01, 2024 @06:01AM
(#42287704)
The SPA version would unmanageable without the latest 4th generation JS build tools. Spend an afternoon reading the manual for the configs. Watch the output of 'pnpm list' break your terminal environment when you try piping it through 'less'.
You can use React with or without SPAs. Not saying you didn't know that. Just pointing out they're separable.
What people are saying is that for LARGE projects you NEED a framework. And your app is tiny. It's got like two source files. So it's just an example of a tiny project getting by without a framework. I have a couple of those currently myself, because I don't need a framework for them. They're just HTML+CSS+JS.