News for hackers. Stuff that matters.
Re:The melting pot of JavaScript (2017) by TeMPOraL on Monday January 07, 2019 @04:41PM (#18850458)
It's not about RPC, it's about a way of DRYing code between the backend and frontend, using libraries as your copy-paste engine. You pull in the same library (or extract common code to a library) both on the page and on the server, and assume they're both identical.

I have mixed feelings about this. I don't feel comfortable with assuming that just because I use the same library in backend and frontend, I don't have to ensure consistency and behaviour. But then again, I've used this approach in one ClojureScript project (ClojureScript can transpile a lot of Clojure libraries to JS), and it is convenient.

Re:The melting pot of JavaScript (2017) by spricket on Tuesday January 08, 2019 @12:08AM (#18853338)
Needing to copy code around is largely a JS thing IMO. Java has such good standard and third party library support that I don't see what would be that reusable between the front and backend. Except maybe validators, gRPC doesnt support even basic field validation its annoying.