logoalt Hacker News

bitbashertoday at 4:43 PM5 repliesview on HN

It's almost like trying to magically wire up your frontend to the backend through magical functions is a bad idea.


Replies

division_by_0today at 8:35 PM

This reminds me of the recent SvelteKit Remote Functions GH discussion:

> Even in systems that prevent server functions from being declared in client code (such as "use server" in React Server Components), experienced developers can be caught out. We prefer a design that emphasises the public nature of remote functions rather than the fact that they run on the server, and avoids any confusion around lexical scope. [0]

[0] https://github.com/sveltejs/kit/discussions/13897

bederstoday at 5:38 PM

One could get the impression that the only really really important non-functional requirement for such a thing is to absolutely ensure that you can only call the "good" functions with the "good" payload.

dizlexictoday at 5:24 PM

ikr, no way this could have been predicted and warned about for months and months before now.

bossyTeachertoday at 5:43 PM

CV driven development needs new ideas for resume padding regardless of whether the idea is good or bad. Then you get this

baiwltoday at 4:59 PM

Look at the money they’ve made to see if it was a bad idea or not.

show 1 reply