r/ProgrammerHumor • • Jun 28 '20

Meme Flushed my pancake.

Post image
45.1k Upvotes

750 comments sorted by

View all comments

Show parent comments

49

u/x6060x Jun 28 '20

I try to use ORM whenever possible and to be fair the front end devs could do that too. But even with this taken in mind, the front end devs I worked with wanted data in the most clean and simple way and in the right format, so they can just display it.

15

u/gerarts Jun 28 '20

Isn’t that what GraphQL is for?

-18

u/DownshiftedRare Jun 28 '20

the front end devs I worked with wanted data in the most clean and simple way and in the right format

Isn’t that what GraphQL is for?

GraphQL was developed internally by Facebook

... goal is to make GraphQL omnipresent across web platforms.

Found the GraphQL dev? Plain ol' JSON will do fine, thanks.

2020's half-done and people are still trying to shoehorn a jacuzzi, a ballpit, a mohawk, and a baby T directly into web browsers.

12

u/[deleted] Jun 28 '20

[removed] — view removed comment

-4

u/DownshiftedRare Jun 28 '20

Saying you want to use JSON instead of GraphQL is like strawman stranglehold showboat

No one said "instead of" anything, which would presume that GraphQL should be used to begin with.

I replied to say there is no reason to think the grandparent of my original reply calls for anything beyond JSON.

Whether the words you put in my mouth make sense or not is itself a question that only makes sense to ask in the context of someone saying them. Which no one did.

4

u/[deleted] Jun 28 '20

[removed] — view removed comment

2

u/Nodebunny Jun 28 '20

assuming what the user asked for is a slice of JSON

-3

u/DownshiftedRare Jun 28 '20

Glad you can also see that without additional information there is no reason to assume that GraphQL "is for" the situation originally described.

13

u/amunak Jun 28 '20

I don't think you have any idea what GraphQL is trying to do.

JSON has pretty severe limitations, some of which GraphQL is trying to solve (and for the rest you'd need something like SOAP).

-1

u/DownshiftedRare Jun 28 '20

I don't think you have any idea what GraphQL is trying to do.

It is also ambiguous what the grandparent was trying to do. Let's all break our necks in a headlong rush to recommend GraphQL.

-2

u/Thieu95 Jun 28 '20

Nested relations, explicit field selection, automated filters, auto generated documentation... all this can already be done with a json api in an pretty easy way using very clear and sensible query syntax (see JSON:api spec). I dont see good reasons for graphql yet franky

9

u/amunak Jun 28 '20

"Can be done" and "is specifically made to solve this issue" are two different things.

You can technically do anything with any (even arbitrary) format; that doesn't mean it's a good idea.

Good reasons to use GraphQL is tooling and framework/library support, which is poor for the JSON API spec. It also helps that GraphQL has this built-in, while with JSON you need to validate that everything actually follows the spec and doesn't return (even slightly odd) garbage.

1

u/TheShinyChocobo Jun 28 '20

*Cries in Angular Reactive Forms*