-
-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open source projects built with sanctuaryjs #573
Comments
I have been pointing people to
Thank you for the kind words. 😊 |
I'm humbled to be in the same sentence as @Avaq since pretty much all the JS/TS async stuff I'm doing is just passing around Flutures :) Wish I could share it as example but my dayjob project is closed source... one thing I'll say is that the semantics of Sanctuary and Fluture just outright prevent entire classes of bugs that are super easy to accidentally create otherwise, and it's really a pleasure knowing that I'm building on a solid foundation. One open source thing that I have which might be worth a peek is this little thing I released a few weeks ago: https://github.com/dakom/ball-bounce-frp Gotta give it time to load since there's a bunch of heavy graphics. Almost the entire logic is in this file: https://github.com/dakom/ball-bounce-frp/blob/master/src/app/worker/frp/Ball-FRP.ts As you can see it makes very heavy use of Sanctuary's Maybe and map :) Without that, there would be much more noise like Though honestly I think we're kindof just seeing the beginning of a new revolution and the real mind-blowing stuff is still around the corner. It's only a matter of time before people really start looking at how to write functional JS to stay sane while scope of web apps blows up, especially with the growing popularity of frameworks like React that heavily lean on some of the same principles. |
I would love to see a React app written with SanctuaryJS :) Also thank for the examples, it is a great start ! |
If you don't mind, I would like to keep the issue open, maybe others will chip with examples. |
Here's a minimal example using Sanctuary with React: https://codesandbox.io/s/8kwpv0r3w9 It may not seem all that big of a difference from just setting state to some object with "isError" or whatever keys, but the thing is - with this "railway oriented programming" you can have large or async pipelines that "exit early" via combinations of map/chain and Either/Maybe. So for example you can have a Fluture that you |
https://github.com/sanctuary-js/sanctuary/network/dependents may be helpful. |
How do you feel Sanctuary could improve Context + Resolvers in an Apollo Server GraphQL for RedisGraph? I'm super keen to get into graph data with this stack and want to do this... but this library is so jargon-heavy I'm concerned it's gonna slow me down rather than help, and that it would scare off other implementers |
I know very little about these things, @bionicles. Perhaps someone else will be more helpful. 🤞 |
Hi there, I am looking for some more complex examples of near real-world projects/anything built with sanctuary. Can someone point me to some nice repos?
Kind thanks and big kudos up for this wonderful library!
The text was updated successfully, but these errors were encountered: