HackerTrans
TopNewTrendsCommentsPastAskShowJobs

olavk

no profile record

comments

olavk
·8 ปีที่แล้ว·discuss
I don't really have anything against JSON RPC but it is just a standard for encoding a method name with dynamically typed parameters. You can say "close the door" in JSON RPC, or you can just post the string "close the door" to an URL. It doesn't make the service more robust or reliable to use an extra layer of wrappers.
olavk
·8 ปีที่แล้ว·discuss
Yeah OK, so JSON RPC avoids this particular problem by simply not supporting GET. But that is kind of throwing the baby out with the bathwater, since GET is quite conventient when used appropriately.
olavk
·8 ปีที่แล้ว·discuss
Yeah obviously he is doing it wrong, that is the point of the story. GET methods should not have side effects. But wouldn't you have the same problem if you sent a JSON RPC request using GET?

Clearly this is not a REST architecture, they are just using raw HTTP requests as RPC's. I just don't see how the JSON RPC standard would help anything, it just seem like an additional wrapper.
olavk
·8 ปีที่แล้ว·discuss
Why is that better?
olavk
·8 ปีที่แล้ว·discuss
The universal client is a human who is trying to figure out how to implement a client against the API.
olavk
·8 ปีที่แล้ว·discuss
HATEOAS is pretty simple - it is pretty much what you describe. Like a webpage which embed links to other webpages which you can then follow.

The problem is people thinking HATEOS is a requirement for web services.
olavk
·8 ปีที่แล้ว·discuss
I don't see why the browser or HTTP is to blame here? GET is supposed to be safe, so what the browser is doing seem perfectly fine to me.
olavk
·10 ปีที่แล้ว·discuss
Pure FP languages are still pretty niche, but what has happened is the big mainstream languages like C# and Java has adopted more functional features like higher order functions, lambda syntax, increased focus on immutability and so on. So functional languages are clearly trendy among the language designers, from where the inspiration trickle down to the mainstream.
olavk
·11 ปีที่แล้ว·discuss
It is amazing how many in this thread who make declarations about the underlying political causes for this tragedy. As far as I know, no group have yet claimed responsibilities and very little is known about the perpetrators at this point. Theories have been put forth that they are either IS or al-Queda, two groups with quite different history and agenda. And it is still not confirmed it is either. So any attempt at political explanation at this point is pure knee-jerk.