davert 🇺🇦 Profile picture
Feb 18 6 tweets 3 min read
My experience of #GraphQL #API consumer

Previously I built integrations via #REST client but the current service provided only GraphQL so I had to learn that.

I felt that the usage of GraphQL was a great excuse for not writing API documentation at all.
2/6 Instead of well-organized documentation pages with request/response examples, which could be built with @Redocly or various open-source libraries, GraphQL provider throws you into their Schema

It's like a 'good dad' throws you into the sea to teach you how to swim Image
3/6 When I learned how to breathe and got the surface, I found myself looking into all possible queries & mutations looking for the right one. But I liked that API scheme and playground were built into via Apollo Studio so I could try queries without switching context
4/6 But the complexity of the interface and the vast number of available terms (payloads, objects, scalars, directives, aaaaaa!) were not user-friendly to me.

It seems like GraphQL was designed ChatGPT-first. So #AI would analyze that and build you a query on your request. Image
5/6 That's a wise move, as ChatGPT didn't even exist at the time. And even now ChatGPT can't read information from internet so on APIs its information is outdated.

But I think it's a matter of time we would translate "create me a comment" would transform into a valid mutation
6/6 So my conclusion: GraphQL is not for humans, its for robots. And the faster robots will take that burden out of me the better it is.

That was my very biased opinion.

Also I admit that my APIs are may not be so user-friendly (but at least they have examples).

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with davert 🇺🇦

davert 🇺🇦 Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @davert

Feb 17
A novel by Dostoevsky. Part II

As you know, a significant part of Dostoevsky's stories is murder and a court. In a novel written by 𝗰𝗼𝗿𝗲-𝗷𝘀 maintainer Denis Pushkarev this section is also presented. Let's look into it:

2/17 The good news is that we have a court decision! Oh, post-modernism, we can read the same story from a different perspective. Dostoevsky would like that!

We have a court ruling on Denis' case with some details I would like to share

web.archive.org/web/2020032516…
3/17 But before we start I'm adding a disclaimer. It's not a personal attack on Denis. I just want to show the twisted mindset Russians have due to the social and cultural environment they live in.

And that's what this story is about:
Read 18 tweets
Feb 16
Another #AI take:

Evolution of AI will teach us how to be humans again.

If writings, voices, images, and code will be generated by AI it would be hard to find a preson behind them
To detect that you talk to a real person you will prefer a video call instead of a chat or audio, as both can be simulated.

At some point even video will be mocked. However, it's much harder to do that as you can ask a person to change the focus and it can break the illusion
If your close friend calls you, you won't trust his voice (as it can be simulated). So you will rely on facts that you know together to test them.

Same in chats
Read 5 tweets
Feb 15
One of major changes in recent @CodeceptJS was removal of allure reporter

I didn't do it for political reasons

It just happened, that Allure reporter v1 was not maintained and Allure v2 has not been released. It took 4 years for team to not release it at all
@CodeceptJS I remember I spent a lot of time integrating Allure in CodeceptJS. I liked the flexibility of API as I could put nested steps into it. However, implementation became very complex (it is always complex for nested steps)

I thought Allure would be a standard of reporters.

However
For unobvious reasons Allure team stopped development of their JS version and started v2.

Also Allure still required Java to run. Phewww...

It was complicated and was too heavy for a simple HTML report
Read 7 tweets
Feb 14
If Dostoevsky lived today that would be his best novel:

github.com/zloirock/core-…

This a story of #russian #opensource maintainer with the complex of messiah and hatred towards the world That illustrates that 𝚖̶𝚒̶𝚜̶𝚎̶𝚛̶𝚊̶𝚋̶𝚕̶𝚎̶ mysterious Russian soul:
2/9 As an #opensource developer I feel his pain, but as a person, I can't understand the logic of that person.

All his life problems are direct consequences of his actions but instead of taking responsibility for them, he blames the world and greedy corporations.
3/9 His first mistake: he decided to return to Russia. Living there was his own choice. But Russia strikes back. What a surprise! ImageImage
Read 9 tweets
Oct 4, 2022
I will take this out and write a thread on why I don't enjoy writing #PHP anymore.

PHP development nowadays is bumping versions, updating types, and tests. And getting out of cross-dependencies conflicts.

👇
Let's take this situation, I have my own library MyLib that is expected to support PHP 7.4 and 8+ in the same time.

Meanwhile the coollib package I depend on releases its v2 where it changes interface of the same function to incompatible one: Image
Client #2 already migrated PHP 8.1 and wants to install coollib 2.0 while

Client #1 is using PHP 7.4 and can't move to coollib 2.0

As MyLib author I can either drop Client #1 and make a major release not because I introduced some breaking changes but because I bumped dep Image
Read 13 tweets
Oct 3, 2022
As of recent tweets of @elonmusk

I think it's ok that if you build your decisions by the idea of "not being the like others" the same pattern repeats when it comes to other decisions.

If we think of world as a big, corporation, Elon, what corporate culture do you encourage?
@elonmusk If someone stals your assets - it's fine

If someone kills your employees - let's negotiate

If someone captures your factories - let's make workers to decide in which company they want to work in

If someone threatens you to destroy completely, just give them what they ask
@elonmusk can you show us an example and share your stocks with BMV / General Motors / etc

Looks like this is the best option for Tesla! Why should your workers suffer?
Read 4 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(