This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-02-02
Channels
- # announcements (3)
- # asami (29)
- # babashka (62)
- # beginners (131)
- # biff (7)
- # calva (31)
- # cider (5)
- # clerk (14)
- # clj-kondo (3)
- # cljsrn (12)
- # clojars (18)
- # clojure (72)
- # clojure-austin (17)
- # clojure-dev (6)
- # clojure-europe (31)
- # clojure-indonesia (1)
- # clojure-nl (1)
- # clojure-norway (18)
- # clojure-sweden (11)
- # clojure-uk (6)
- # clr (47)
- # conjure (42)
- # cursive (88)
- # datalevin (2)
- # datomic (25)
- # emacs (42)
- # exercism (1)
- # fulcro (10)
- # funcool (8)
- # gratitude (2)
- # honeysql (16)
- # introduce-yourself (5)
- # jobs-discuss (26)
- # leiningen (5)
- # lsp (31)
- # malli (21)
- # matcher-combinators (14)
- # missionary (2)
- # nbb (1)
- # off-topic (40)
- # pathom (38)
- # portal (2)
- # re-frame (7)
- # reagent (18)
- # reitit (1)
- # releases (5)
- # shadow-cljs (62)
- # sql (12)
- # testing (4)
- # xtdb (37)
Any opinions on https://www.asyncapi.com/? I'm considering it for some event-driven stuff at work but the spec is in yaml, it looks like it's still in progress, and I haven't seen it before in the Clojure community š edit: added link
Do you mean https://github.com/clojure/core.async ?
No, sorry, I meant https://www.asyncapi.com/ but forgot to add the link
Hmm, it's inspired by OpenAPI, yes, but it's meant to be for asynchronous endpoints, e.g. message busses, not HTTP APIs
Like SNS/SQS on the AWS stack
It's supposed to be agnostic of both medium (http, queueing systems, etc) and serialization format I like the idea
Hum, but what does it do except just documentation? It says it has generator,.but I'm confused how it would generate say publishing/consumption of an SQS message?
I guess discovery and documentation on its own would be pretty nice. If you could ask a service for it's set of async notification and their schema and a description of when/why they'd be published for example that be cool.
Think about all the annoying scaffolding you always need to do to connect to anything Imagine you just codegen it from the api spec Low code pipe dream?
Well, I can imagine a lot, my point was, it didn't seem like it could code gen things that aren't an API, at this time, but maybe I'm misreading.
I think that the generation feature makes more sense in strongly typed/oop languages. As in it will generate the data classes that will work with a given message bus
In other words, scaffolding
I think for me to be excited, it would need to generate a full client. Like if I just create a client and than call (listen event-type callback) or something. And it handles everything else needed to subscribe to events, handle errors, dead letter queues, missed messages, encryption/decryption, etc.
Or like, if I call an API and it responds through a SNS message later for example, if the generated API took a callback that handled the async SQS response for me, etc.
Does anyone know of any half-decent diagrams of React's architecture?
I haven't had that much luck, but in case anyone else is interested, this seems to be the best diagram I could find: sources: ā¢ https://projects.wojtekmaj.pl/react-lifecycle-methods-diagram/ ā¢ https://reactjsguru.com/react-component-life-cycle-with-diagram/
I'm pretty sure these diagrams are somewhat out of date, but better than nothing!
yeah that seems to be for class-based component and not hooks
which is fine if that's what you're using but hooks is what nearly everything is using these days
maybe the popular react-wrapper cljs projects still use classes?
This is basically the best diagram I could find that explained anything. If there are others, would love to check them out.
"hooks" is the key thing to add to your search
lifecycle is also helpful
confusingly, you can use both hooks and classes in the same application and so knowing both lifecycles is helpful
Ideally, I'm trying to find something that ties all the pieces together (renderers, reconcilers, hooks, lifecycle, events, etc). Something similar to the following, but for React
feels like a job for mermaid-js, time to make it š
I mean it's all a render loop with hooks to call functions at specific times so there's not anything clean like that, I don't think
oh, I guess that does loop, though
I also don't mind pencil and paper
For react, I think overview isn't a bad mental model, but I just need to turn several parts red.
pencil and paper is great, too!
I love wizard zines and it conveys so much with hand drawings https://wizardzines.com/comics/bash-tricks/
yea, those are really good!