News for hackers. Stuff that matters.
Re:How to GraphQL – A Fullstack Tutorial for GraphQL by fizb on Wednesday June 13, 2018 @07:19PM (#17307863)
from the tutorial:

  const typeDefs = `
  type Query {
    info: String!
    feed: [Link!]!
  }

  type Link {
    id: ID!
    description: String!
    url: String!
  }
  `
Why is this rubbish in backticks accepted? It is especially stunning to see this in "modern" ES6+ code explaining the newest hype. It's not even mentioned that it sucks, it's presented like proper code.
Re:How to GraphQL – A Fullstack Tutorial for GraphQL by tomnipotent on Wednesday June 13, 2018 @07:20PM (#17307869)
Because it's a string?
Re:How to GraphQL – A Fullstack Tutorial for GraphQL by danlugo92 on Wednesday June 13, 2018 @11:26PM (#17309036)
It could be done in a type safe manner as opposed to magic strings.
Re:How to GraphQL – A Fullstack Tutorial for GraphQL by tomnipotent on Thursday June 14, 2018 @01:03PM (#17313171)
No, because it's meant to be a declarative language and not ECMA-based. At least spend five minutes understanding what something is before throwing shade.
Re:How to GraphQL – A Fullstack Tutorial for GraphQL by argestes on Thursday June 14, 2018 @03:11AM (#17309936)
Yeah you can do SQL with Hibernate too. It works but it's a nightmare