Do you guys have any plans to make local developme...
# prisma-whats-new
s
Do you guys have any plans to make local development any easier?
First and foremost, it can take 20 seconds to deploy any code change.
Second, the graph.cool logs are pretty terrible. All of the console.logs() get output into a single string with
\n
in between every single console.log(), and you have to
JSON.stringify(anyObject)
to see properties on an object, lest you enumerate over the object which injects
\n
between every key/value pair. It's basically unreadable noise. You have to copy/paste it out of the console and into something else like Sublime to try and break it up and figure out what the logs are saying.
No good very bad development experience. 😕
Considering the vast majority of development time is spent doing this, and not having a perfectly working environment, it seems like engineering the logs to only be useful when everything is working with only the occasional issue is a bad idea.
I have to be honest and say that my experience developing against graph.cool locally has been pretty awful.
And it's been months and nothing has improved as far as I can tell to address local development.
e
you can use util.inspect
s
That's hardly the primary issue
It's still buried in a giant "paragraph" of other stuff surrounded by `\n`s everywhere
Unless I'm expected to only log one thing at a time
Which is unacceptable.
I mean, maybe backend developers are used to horrible log environments where you have to write your own parsers to deal with the noise. I'm a front end developer. We have great debugging environments.
f
Isn’t it open source? You could make a PR :D
n
Thanks for bringing this up, @Steven Sacks! I totally agree with your observations, local development can be more complicated than expected. Especially with the sometimes hidden assumptions that Graphcool Functions bring to the table (like the strict requirements for input/output). Our developers are looking for ways to improve this experience. However, as we're using AWS Lambda under the hood, this is actually quite a difficult problem to crack. If you have a function heavy development workflow, you might have a better experience using tools like serverless. I also encourage you to explore Prisma, which gives you a much better local development experience, in terms of logging and debugging.