101010.pl is one of the many independent Mastodon servers you can use to participate in the fediverse.
101010.pl czyli najstarszy polski serwer Mastodon. Posiadamy wpisy do 2048 znaków.

Server stats:

491
active users

#eventdriven

0 posts0 participants0 posts today

Pretty soon, you’re going to be able to view your live pages and the events on them in real time while developing Kitten apps.

The improved component model with support for class-based routes (and a server-side component hiearchy that lets you build well-encapsulated components and pages and work in an event-driven way) is coming along nicely and I’m back to writing Place¹ using it.

(In the GIF, you’re looking at Place’s profile settings page. Not shown here but those profile changes reflect in realtime on all open pages. The highlighted piece of code is what streams the event details to the browser.)

¹ codeberg.org/place/app

Feeling more like myself today after getting my ass kicked by this bug for the past few weeks and I’m finally making progress on improving Kitten’s¹ component model.

Soon, you’ll be able to implement page event handlers in an even simpler way than before. Is your connected DOM element named `pixel`? Then export an event handler called `onPixel()` on your page route and it’ll get called when that element triggers its event.

And there’s so much more coming, including a class-based page and component model with DOM-style event bubbling on the server. This should really let you make the most of the Streaming HTML² workflow in Kitten by writing event-driven GUI-like code but for a web app without really caring about the client/server separation.

Need to update the examples, test, test, test, and update docs but this had me stumped for a while now with several false starts and I feel this implementation might just be it 🤞

:kitten: 💕

¹ kitten.small-web.org
² kitten.small-web.org/tutorials

IMHO, we should really come up with a better name than Event

Probably missing some use cases, but I see major differences between

- Event in an #EventDriven architecture where an Event really is a propagated notification to other parts of the system

- Event in #EventSourcing where it really is an executed command that is stored so that it can be replayed or intercepted to create projections

both are called Event and IMHO this creates quite some confusion

#EventDriven #Ansible is great in the infrastructure automation space but it can be easily applied to other #ifttt style automations.

Take this one, for example! cloin.eda.rss can be used to subscribe to and alert on RSS feed updates. You could use this to subscribe to a blog and post the updates to a slack channel, pump the content into ChatGPT for a summary, and more. 🍻