bolha.us is one of the many independent Mastodon servers you can use to participate in the fediverse.
We're a Brazilian IT Community. We love IT/DevOps/Cloud, but we also love to talk about life, the universe, and more. | Nós somos uma comunidade de TI Brasileira, gostamos de Dev/DevOps/Cloud e mais!

Server stats:

248
active users

#components

1 post1 participant0 posts today
Continued thread

👆 Sorry, life got in the way; just deployed this but I haven’t had a chance to document it properly yet. I’ll make a proper announcement when I do.

Also, you can now use the `delete` attribute on a DOM node/Kitten component you’re streaming back from the server to have it removed from the DOM on the client. It’s syntactic sugar for hx-swap-oob='delete' in htmx.

kitten.small-web.org

Continued thread

About that BusBoard Prototype Systems SB4 board -- they're expensive. They're more than $6 each (Canadian) plus shipping from DigiKey. They're $10 each plus shipping from Mouser.

That's a lot for a hobbyist when you're experimenting, especially if you're making mistakes.

I looked around again recently, and couldn't find anything I liked at a reasonable price point.

So what does one do in this situation? Well, if you go Overkill 9000, you design your own prototyping perfboard and have a bunch manufactured for you! When you design your own, you can give it any features you like. So this one has:

18 x 36 (648 holes total)

It's two 18 x 18 sections, though I didn't have them scored for snapping.

A total of 6 horizontal busses in groups of 2, at the top and bottom plus one in the middle.

3 sets of 2 vertical busses within that space between horizontal bus sets, similarly edge - center - edge.

Then each row has a 6-hole pad on each side of the center 2 busses, which are spaced for IC or other standard 0.4" component layout.

Made of proper FR4 fiberglass. Good copper, good soldermask.

Silkscreened row and column IDs on both the front and back, at both the start and end of each row/column (and they match up with the back...).

And silkscreened boxes on the front showing the pad/buss pattern - no more flipping!

They arrived today and ... they're beautiful.

2/x

New Kitten update

🥳 Kitten HTML templates and kitten.Component render functions can now be async.

kitten.small-web.org

This is quite a big one and it took me finally biting the bullet and getting my head around generators in JavaScript to implement properly.

So now you can mix synchronous and asynchronous components as you like and if there are any asynchronous components in your templates they will automatically be awaited (even if you forget to use await) ;)

I’ll write a proper post/tutorial/documentation for it soon but for the time being enjoy the screenshots where a layout template gets the latest three posts from my mock fediverse public timeline service and displays them on the page.

The kitten.Component version also has a refresh button that streams a different three to the page.

For those of you unfamiliar with Kitten, this is all the code in either example. No scaffolding, nothing. Pop either into a file called index.page.js and run kitten in that folder and visit https://localhost to see the example run.

Enjoy!

:kitten:💕