@JordiGH that would basically be a reverse ORM, and possibly very useful, but I don't know if it exists as a generic solution. There definitely are thin translation layers that turn an existing SQL database into a GraphQL server.
@JordiGH to make matters more complicated, GraphQL queries are ALSO encoded in Json.
Compare most REST apis to an object store. They'll give you one object at a time, in its entirety. GraphQL will give you any requested combination of properties from joined sets of different objects.
But both are JSON - over - HTTP
@JordiGH of course, if you're implementing client and server in concert, you can create an optimized REST api that does this. But in practice, server and client are written by different teams, at different times even.
@JordiGH Imagine a music player app using REST. You see it hitting the 'playlist' info, and then in rapid succession the 'album info' endpoint.
With GraphQL, the client can say, 'give me the playlist, and then thumbnails for the cover art of all the albums in that playlist'.
The server doesn't have to send band bios, track listings, and large versions of the cover art, because the client never requests them. The client gets to save bandwidth (and latency!) the server can optimize its caches.
@JordiGH Facebook's APIs using it gave some boost to the necessity for client implementations, but yes.
From a client's perspective, it's better than plain json/REST because you get to request exactly the data that you want, nothing more.
From a server's perspective, you get to see what attributes and intersections people actually request and optimize your infrastructure.
Of course, it's basically SQL in a new form...
@22 I got the same impression from the flat earthers. Less openly harmful, but the same weird mix of politics, entertainment and racket.
@22 I think it's even wrong to use the word 'evildoers'. Infections in our body are just organisms trying to survive and thrive in the only way they know how to.
@PhoneBoy Context: most European air travel is actually tax exempt in many ways. Plane tickets are one of the few items that are completely exempt from VAT (which is 15-20% in most EU countries). Kerosine is typically not taxed, whereas gasoline and electricity are. In my country (don't know about others), the airports don't pay property tax, etc.
@HerraBRE I used to think nerds were too eager to wage ideological purity fights amongst themselves to get anything done. Twenty years later I realise the internet brings out these tendencies in Everyone.
@kirch I think the tech industry has a weird way of making us feel complicit about the shit we're in right now. Every tracking ad, every exploitative app, every over eager machine learning model was written by a programmer somewhere, but is this what we want?
@22 @wim_v12e probabilities aren't the same thing as betting odds. Sure, there are many people trying to pass off their subjective assessments as calculated risks, but that doesn't mean probabilities can't be objective. It's interesting to hear that some influential, financially successful people actually think that way.
@wim_v12e @ekaitz_zarraga @hirojin @rey @grainloom I think the notion that Words have moral value in and of themselves might be a very Anglocentric one. I get the impression that speakers of other languages are more suspicious of euphemisms. But FOSS is an Anglocentric culture, so we can't pretend the discussion doesn't apply to it.
@Vyllibh Love the first one, as well as the colour theme you have going on!
@Schepp Google even exploits SEO to remake the web to its liking, in the past by rewarding browser accessibility and page speed, nowadays by rewarding pages that use AMP.
@itdm5j21 It's a very nice image, and it has a vintae feel to it, but I'm not sure if it makes sense to call the style 'hand-toned TRI-X', when the technique is so far removed from the actual process.
Toning struggles to produce colours that aren't browns and blues. Theoretically reds and greens are possible, but they're quite exotic.
See http://www.lostlabours.co.uk/photography/formulae/toners/handcolouring.htm for actual examples.
Programmer and phoney amateur photographer. He/him/idiot. My toots are deleted automatically after twelve weeks.
One of the first Mastodon instances, there is no specific topic we're into, just enjoy your time!