Re:Things I wish I knew before moving 50K lines of code to R...
by Osiris on Friday September 01, 2023 @01:57AM
(#37347316)
Doing database lookups on the server was the primary reason people STOPPED doing server side render and shifted to JS+API. Why do we now think that the way we used to do it was actually better?
[ Parent
| on HN ]
Re:Things I wish I knew before moving 50K lines of code to R...
by simonbarker87 on Friday September 01, 2023 @02:05AM
(#37347368)
Where do you propose database lookups get done in the JS+API world?
Surely they are getting done on the server that hosts the API? Unless you are using something like Firebase or SupaBase which can sort of enable client side database access (but not really, it’s still doing it on a server, just their server and running the call through RLS or similar)
Re:Things I wish I knew before moving 50K lines of code to R...
by 4hg4ufxhy on Friday September 01, 2023 @02:09AM
(#37347398)
You still need to do it, but now you additionally have a serialized data format in between client and server. Now you need to keep that format versioned and backwards compatible, otherwise users with cached clients will break.
Re:Things I wish I knew before moving 50K lines of code to R...
by Scarblac on Friday September 01, 2023 @04:04AM
(#37348004)
We need to do that anyway, our customers call our application through our API. Building our web apps on top of the same ensures that they have the full functionality available, kind of eating our own dog food.
(but yes, we have unusual customers I guess)
Re:Things I wish I knew before moving 50K lines of code to R...
by zarzavat on Friday September 01, 2023 @02:04AM
(#37347363)
Indeed, the longer you are around you see these cycles repeat again and again.
Thin client vs thick client has been a point of contention since mainframes and minicomputers.
Re:Things I wish I knew before moving 50K lines of code to R...
by papichulo2023 on Friday September 01, 2023 @03:50AM
(#37347924)
When I read that I felt grateful to not work wherever this person works