News for hackers. Stuff that matters.
Re:I fell in love with low-JS by kitsunesoba on Wednesday May 04, 2022 @10:12PM (#31268563)
I've always felt that it was a bit of an odd decision to put all of one's eggs in a basket that you don't own or meaningfully control (the client). The client's basket will need to hold some of your eggs sometimes, that's unavoidable in some cases, but it makes perfect sense to put as many of your eggs in the basket you do control (your back end).
Re:I fell in love with low-JS by spion on Wednesday May 04, 2022 @10:18PM (#31268589)
I always felt the opposite was odd. Server side rendering felt like an odd hack due to the limitations of the platform. Imagine all you had was a PDF reader - then it would make sense to construct an application by building PDF files which contain links to other PDF files. But otherwise, why not write an actual client program that maintains its own UI state and have the server take care of what it does best - provide the data?

Would you build a CLI (ncurses style or otherwise) application by fetching the TTY codes to render the current screen from a server for most user interactions?

Re:I fell in love with low-JS by kitsunesoba on Wednesday May 04, 2022 @10:24PM (#31268623)
That makes sense when the client is always a known quantity, but such is not the case with the web. While you can get an idea of what the majority of your target audience is running, there's always going to be some percentage that will be left out when writing client code for the majority browser only. There's always going to be client situations that you can't predict much less write for, and in those cases more server-heavy solutions tend to do better.
Re:I fell in love with low-JS by lolinder on Thursday May 05, 2022 @12:45AM (#31269574)
Is a traditional desktop client really a better-known quantity than a web browser these days?
Re:I fell in love with low-JS by jmbwell on Wednesday May 04, 2022 @11:50PM (#31269220)
The more your app can run client-side, the lower your bills server-side.
Re:I fell in love with low-JS by ConsoleTVs on Friday May 06, 2022 @01:44PM (#31287915)
And yet all client-side frameworks like next.js, remix and others are literally moving to server again, making you even more tied to serverless stuff.