OneGraph / oneblog-content

Test repo for essay.dev. You probably want onegraph/essay.dev
https://github.com/onegraph/essay.dev
0 stars 1 forks source link

Quick ReasonML and GraphQL Editor Demo #10

Open sgrove opened 4 years ago

sgrove commented 4 years ago

title: Quick ReasonML and GraphQL Editor Demo author: Sean Grove authorURL: http://twitter.com/sgrove

I wanted to show a quick glimpse of the programming dream (or my own, at least) - immediate feedback while programming, validated against a live server. Power, simplicity, reliability, and convenience, I want it all!

Here's an example video with narration on what it's like working with ReasonML + GraphQL in emacs:

https://www.youtube.com/watch?v=yMqE37LqRLA

A few benefits of this approach:

Some drawbacks:

The only drawback I can think of is I can't quite see a way to get auto-completion while writing the GraphQL in the PPX. I'd ideally like to have a GraphiQL-like experience with the fields auto-completing, and being able to read docs/types inline. Currently I tend to write the bulk of my queries in our fork of GraphiQL, then paste in the result. It's minor, but would be really nice if there was a way to do this (I know there's a way in Atom for example, but emacs may not make this easy).

Closing notes:

This example is in emacs, but the experience should be the same (or better!) in vim, Atom, and especially vscode, thanks to the great Reason editor integrations there.

oneblog-bot commented 4 years ago

View your post at http://sgrove.localhost:3001/post/10/quick-reasonml-and-graphql-editor-demo