Schalk Venter PRO
🔧 Front-end Development / 🎨 UI Design / 🌍 Social Good / ❤️ Destigmatising mental illness
"I have seen the future, and it looks a lot like GraphQL. Mark my words: in 5 years, newly minted full-stack app developers won’t be debating RESTfulness anymore, because REST API design will be obsolete."
- Is GraphQL the future?
lan Johnson (Engineering Lead at Artsy)
"Facebook has played a tremendous role in shifting not only in the way we build our servers, but also how we write code for browsers and phones," says Adam Neary, a tech lead at Airbnb. "The entire ecosystem is driven by technologies that Facebook pioneered and then open sourced."
"...It lets you model the resources and processes provided by a server as a domain-specific language (DSL). Clients can use it to send scripts written in your DSL to the server to process and respond to as a batch."
- Is GraphQL the future?
lan Johnson (Engineering Lead at Artsy)
<part id="part-B">
<num>B</num>
<heading>Submission of applications</heading>
<section id="section-1">
<num>1.</num>
<subsection id="section-1.subsection-0">
<content>
Other than those signs referred to in Sections 55 to 62 hereinbelow, no person shall display any advertisement or erect or use any sign or advertising structure for advertising purposes without the <term refersTo="#term-Municipality" id="trm19">Municipality</term>'s approval in terms of this By-law and any other applicable legislation.
</content>
</subsection>
</section>
</part>
"The Skylon is a fully reusable single stage to orbit (SSTO) vehicle, able to achieve orbit without staging [...] Because the SABRE engine uses the atmosphere as reaction mass at low altitude, it will have a high specific impulse (around 4,100–9,200 seconds for SABRE 4,[9]:6 or 3,600 seconds for SABRE 3[3]:3), and burn about one fifth of the propellant that would have been required by a conventional rocket."
“With REST, we might have a /authors/:id endpoint to fetch an author, then another /authors/:id/posts endpoint to fetch the post of that particular author. Lastly, we could have a /authors/:id/posts/:id/comments endpoint that fetches the comments on the posts. […] It is easy to fetch more than the data you need with REST, because each endpoint in a REST API has a fixed data structure which it is meant to return whenever it is hit.”
- Rest versus GraphQL
Chimezie Enyinnaya (Pusher Blog)
const addFollower = follower => `<li>${follower.login}</li>`;
const createList = (data) => {
return document.body.innerHTML = `<ul>{data.map(addFollower)</ul>`;
}
fetch('https://api.github.com/users/schalkventer/followers')
.then(response => response.json())
.then(createList);
Total Repositories * Total Followers
"A 'Hello, World!' program generally is a computer program that outputs or displays the message 'Hello, World!'. [...] it is often used to illustrate the basic syntax of a programming language and is often the first program that those learning to code write. A 'Hello, World!' program is traditionally used to introduce novice programmers to a programming language.”
"In its simplest form, GraphQL is all
about asking for specific fields of objects”
- Fullstack GraphQL
Julian Mayorga (Developer at GraphCMS)
"These queries are specified at field‐level granularity. In the majority of client‐server applications written without GraphQL, the server determines the data returned in its various scripted endpoints. A GraphQL query, on the other hand, returns exactly what a client asks for and no more.”
It's Raichu and his average weigth is 29.5kg.
By Schalk Venter
A (hopefully!) easy guide for front-end developers interested in getting started (and avoiding common pitfalls) learning GraphQL.
🔧 Front-end Development / 🎨 UI Design / 🌍 Social Good / ❤️ Destigmatising mental illness