News for hackers. Stuff that matters.
Re:I fell in love with low-JS by w-ll on Wednesday May 04, 2022 @09:57PM (#31268464)
Most of the web is just CRUD apps, be it php, rails, cgi calls, <your favorite language>. And no one is saying get rid of JS front end stuff, it should be used to enrich and not hinder.

> drop the files in an S3 bucket

If you have a completely static site you still shouldn't host of s3, that's a big no no.

S3 isn't a CDN; you want a CloudFront or something else in front of that.

But as soon as you need something more your gonna get lost or locked in.

Re:I fell in love with low-JS by qudat on Wednesday May 04, 2022 @10:55PM (#31268839)
> Most of the web is just CRUD apps

I disagree, pages for web apps don’t just CRUD one entity, they mix and match many entities in complicated ways. Also, I was referencing rails auto generated crud pages where there’s a single form and a single entity table.

If that’s all that’s required then kudos but rarely has that been true for the companies I work for. I wish it were true.

Re:I fell in love with low-JS by w-ll on Wednesday May 04, 2022 @11:21PM (#31269018)
Mixing and matching a C(reate) or U(pdate) api call into a single request is exactly why its better. Logic can be checked, verified, confirmed, denied and rolled back.

Multiple entities with multiple endpoints are harder, if not impossible to enforce.

Re:I fell in love with low-JS by arvinsim on Wednesday May 04, 2022 @10:41PM (#31268738)
> And no one is saying get rid of JS front end stuff, it should be used to enrich and not hinder.

Having separation between the HTML on the server side and the JS on the frontend side is exactly why React become popular.

Personally, I don't want to go back to the PHP+jQuery days. I want one language and one framework to handle both HTML and JS interactivity.

Re:I fell in love with low-JS by w-ll on Wednesday May 04, 2022 @11:26PM (#31269051)
> Having separation between the HTML on the server side and the JS on the frontend side is exactly why React become popular.

But did they really. Cuz now i see .jsx files with sql calls, adding in static js and css, and logic with mixed html in... Its honestly blowing my mind how we got to this point.

We all agreed biz logic, and view should be separated. and that html, css, js should also be in sperate files. and then .jsx or the like came along and merged them all back together in some of the ugliest code ive seen in years.

Re:I fell in love with low-JS by oneeyedpigeon on Thursday May 05, 2022 @05:02AM (#31271141)
> Most of the web is just CRUD apps

And most of that doesn't need to be.