News for hackers. Stuff that matters.
Re:The Road to GraphQL by rwieruch on Wednesday November 07, 2018 @07:10PM (#18403401)
Hello everyone. Author here :-) I released the book 48 hours ago and I am overwhelmed by the positive reactions. The last 10 months I put lots of work into it and finally released it as a top quality and up-to-date resource for people who want to learn GraphQL in JavaScript.

If you are interested in the content, checkout the release blog post that is used here on HN. The book comes with 4 applications, client- and server-side, that you will build along the way, 350 pages, 45+ exercises, 400+ code snippets.

I would be curious how you like the content, but also what other content you would have expected in this book. Thanks to all of you again!

Re:The Road to GraphQL by k__ on Wednesday November 07, 2018 @07:18PM (#18403441)
Seems like a solid book to me. I wrote one myself in the last 3 months and now it seems like nothing compared to yours, haha.

I'll definitely read it. I like the fact that it focuses on Apollo and not Relay.

Re:The Road to GraphQL by fooyc on Thursday November 08, 2018 @04:23AM (#18405243)
What's wrong with Relay ? (true question)
Re:The Road to GraphQL by k__ on Thursday November 08, 2018 @06:19AM (#18405562)
Nothing is wrong with it; it's just more opinionated than Apollo.
Re:The Road to GraphQL by syndacks on Thursday November 08, 2018 @08:45AM (#18406162)
>In another life, I wanted to do music[...]Eventually, I decided to code and started to enjoy it too. Still, music is one reason why I am staying partly in Berlin. Nowhere else, I believe, will you find such a great selection of electronic music.

:))

Listening to your SoundCloud now. You're an inspiration!

Re:The Road to GraphQL by evangow on Thursday November 08, 2018 @08:08AM (#18405976)
This looks awesome! I've been using essentially the same stack (postgres, sequelize, nodeJS, Apollo server + client) for ~1 year now and built it to be Relay compliant. I'm interested to see how our approaches compare. :)
Re:The Road to GraphQL by jcolella on Wednesday November 07, 2018 @09:01PM (#18403858)
Great job. This is a great resource for a person like myself that is getting into the world of GraphQL
Re:The Road to GraphQL by fold_left on Thursday November 08, 2018 @01:54AM (#18404740)
Thank you for creating this, Robin.
Re:The Road to GraphQL by starptech on Thursday November 08, 2018 @03:42AM (#18405093)
The chapters reads like the Apollo documentation. Does the book contains real world experience of topics like caching, CDN's, REST integration, deduplication of requests? Thanks for sharing this with the community!
Re:The Road to GraphQL by rwieruch on Thursday November 08, 2018 @07:40AM (#18405832)
Hello, author here :)

There are 4 applications the readers of this book are going to build along the way. I think that's more pragmatic than other programming books.

Most, not all, of the other mentioned topics are too niche to address them in a beginners GraphQL book that should be read by a broader audience IMO. But I keep these topics in a list to write supplementary blog posts about them.

Thanks for your insights on this! Helps a lot to identify the pain points the community has on this topic :)

Re:The Road to GraphQL by brennebeck on Wednesday November 07, 2018 @09:54PM (#18404051)
I think it’s great that you reduce the price for countries that are less wealthy.
Re:The Road to GraphQL by jazoom on Wednesday November 07, 2018 @11:24PM (#18404308)
Where does it say that?

Unless I'm mistaken, the actual book itself is free too, which is generous.

Re:The Road to GraphQL by delta1 on Thursday November 08, 2018 @02:55AM (#18404929)
When signing up for an account there's a message about Purchasing Parity Power for your country
Re:The Road to GraphQL by rwieruch on Thursday November 08, 2018 @06:29AM (#18405594)
Yes. I have PPP via this https://github.com/rwieruch/purchasing-power-parity Unfortunately I hit the API limit for this month for the third-party APIs the library is using. Hacker News ... :D
Re:The Road to GraphQL by Assadi on Saturday November 10, 2018 @02:25PM (#18423004)
Hey, as a Palestinian student in Siberia, you're a really cool guy. Thanks for doing this. It's painful how many people charge the equivalent of my rent for a digital product and then wonder why Russia has such a high piracy rate.
Re:The Road to GraphQL by cbzehner on Thursday November 08, 2018 @02:26AM (#18404838)
I haven't read this yet, but I plan on purchasing it and working through it this weekend or next. Robin's "Road to React" really helped me cement my understanding of React and learn how to use it in a concrete way. The focus on refactoring in his previous book has been immensely helpful in my day job.
Re:The Road to GraphQL by rwieruch on Thursday November 08, 2018 @07:42AM (#18405837)
I think you will meet more refactoring in this book :) Great that you liked it!
Re:The Road to GraphQL by coding123 on Wednesday November 07, 2018 @10:54PM (#18404225)
Thanks for this, will be sharing with my team!

The "Graph" part is where this technology is interesting. I'm sure not everyone links together all their models, but if you do things right, you essentially can let the front end pull in very interesting relationships without having to set it all up yourself. Very cool stuff.

Re:The Road to GraphQL by fooyc on Thursday November 08, 2018 @05:06AM (#18405363)
Is there any benefits for using Apollo with React ? It seems that Relay provides higher level abstractions that Apollo is lacking (because it is framework agnostic). It seems that every Apollo user is going to rebuild the abstractions already provided by React.
Re:The Road to GraphQL by djmashko2 on Thursday November 08, 2018 @11:16AM (#18407279)
Apollo Client contributor and user here - which abstractions are you referring to?
Re:The Road to GraphQL by porphyrogene on Wednesday November 07, 2018 @09:57PM (#18404070)
I haven't read your work but it is nice to see more instruction on GraphQL being published. I think Apollo is a great choice for beginners and an appropriate choice for many projects in general - largely due to its framework ambiguity. I look forward to looking into your section on other options. It's good to keep perspective on that sort of thing and hard to do so when it involves such a learning curve.

An e-book is a good choice of format as well. I learned GraphQL from a video resource until I was competent enough to proceed with the (admittedly very good) documentation. I wish there had been a resource like this available.

Re:The Road to GraphQL by eksemplar on Thursday November 08, 2018 @01:07AM (#18404612)
For django there is graphene, with Django migrations, it really makes for the easiest way to build a backend outside of serverless.
Re:The Road to GraphQL by charrondev on Wednesday November 07, 2018 @09:01PM (#18403856)
This looks like a really good resource! Sadly at my work we are just finally getting most of our web stack on top of a REST API. So it may be a while before I get to work with something like this a production environment.
Re:The Road to GraphQL by santypk4 on Thursday November 08, 2018 @07:54AM (#18405893)
This is really cool! We have been waiting for this for a long time ...
Re:The Road to GraphQL by goddtriffin on Wednesday November 07, 2018 @11:33PM (#18404342)
Does anyone have a pdf copy of the book? I see that it is released for free, I just would prefer not to sign up for another service.
Re:The Road to GraphQL by Accacin on Thursday November 08, 2018 @04:10AM (#18405187)
I can understand the dislike of signing up to a service but in this case that's the price of the book. I also dislike signing up to various services, but I did for Road to React and I can confirm I haven't recieved any spam. In fact the first message I recieved was about this new book. I wouldn't worry too much.
Re:The Road to GraphQL by boobsbr on Thursday November 08, 2018 @03:58AM (#18405149)
I don't like signing up for stuff either, but that is the price of the book: your email address.
Re:The Road to GraphQL by k__ on Thursday November 08, 2018 @06:24AM (#18405579)
Don't understand the down-votes here.

It's true!

Maybe it's not the best book on GraphQL, I don't know, but it is miles better than most paid tech-books out there.

The book is self-published and the author isn't well known, so he needs to something to build an audience. Giving them such a good book for an email is a nice way to do so.

I'm not well known either and my publisher only gives away one chapter for an email and then you have to buy it.