199 karma · joined February 28, 2012
Good questions to ask yourself
“We're not pursuing homomorphic encryption for @WhatsApp…”
Full tweet: https://twitter.com/wcathcart/status/1422611553954668546?s=2...
Primus-GraphQL is less opinionated and just provides a GraphQL data-transport layer (client and server). Primus-GraphQL also offers a network-layer for Relay (an opinionated GraphQL client framework that works well with React).
Since it is built on top of Primus it allows flexibility with data-protocol layer - from socket.io, socksjs, websockets, or even a custom implementation.
Hope that answers your question. Let me know if you have more :-)
I will probably have go back and change this now that I know about it. In general though, not gonna a lie, I am not very concerned about micro performance optimizations.
I move out modules so I can write really nice tests for the independent of the projects I am using them in. Also, I tend to write projects w/ 100% test coverage, breaking out utils allows me to test projects easier and faster.
Also note, the implementation of this module changed a few times today. With it being open source and having the collaboration of other engineers, we ended up with a very performant version, and discovered interesting quirks about "safe integers" in JS.
Here is a link to the Github project: https://github.com/laCour/slack-night-mode
I wish the Slack App had a night theme..
I was thinking `throw new Error('You're doing it wrong');` :-P