@grebert@irenerd Alt text: Comic: “ADL field guide” Open book. On left page, under the heading “Anti-Semitism”, a woman wearing a Free Palestine top and head scarf yells into a megaphone while holding a Palestinian flag. On the right page, under the heading “Not Anti-Semitism”, Elon Musk gives a Hitler salute.
So last night, while recording the preview of Kitten’s¹ improved component model², I made a silly mistake (copying raw HTML into a JavaScript function instead of wrapping it in a kitten.html`` tagged template, easy to do when you’re refactoring to pull out components from pages).
Then, once I figured out what I’d done, I made another one by forgetting to return the value from the function (easy to do when you’re used to using one-line closures as render functions).
I would have caught both of those so much faster if Kitten had helpful error messages for those two pitfalls. And guess what, this morning, it does :)
Attached are screenshot showing the before and after error messages.
@m0xee Yeah, man, exactly the fucking same thing. Thanks, I know we live in a sewer and I’m doing the best I can by USING what’s there. How the fuck is that the same as TAKING MONEY FROM them?
PS/ I make silly mistake while copying and pasting at one point in the video and I don’t catch it right away as I apparently don’t save the file although I thought I had. Anyway, the still frame in the video contains the mistake:
The <h1 morph>${new Date()}</h1> line should be contained in a kitten.html`` tagged template.
(In the video I only catch the issue when updating the example to make into a persisted counter to show off Kitten’s internal JavaScript database, JSDB.)
PS. The code you see is all the code in an app that streams a new date to the client whenever a button is pressed. All of it. No other files. Nada. You start kitten and it works (once you’ve fixed my mistake.) ;)
I mean, if Greenpeace allow ExxonMobil and Shell to sponsor them, they can’t really be that bad, can they.
These, environmentalists (extremists, really) must be off their rockers. There’s no way Greenpeace would allow themselves to be sponsored by ExxonMobil and Shell if those companies were bad for the environment.
No, clearly, these are environmentally friendly companies.
Little preview video: Kitten’s improved component model
• Class-based page routes and components • Object-oriented • Event-based • Seamless hypermedia-driven WebSocket-based event mapping and interface updates (Streaming HTML) • A light server-side live component hierarchy with event bubbling • Almost as if you’re building a desktop or mobile app instead of a web app…
… another authoring simplification made possible because on the Small Web you build a web app/site as a tool for one person (the owner of the site/app) instead of as a tool for you to farm millions of people.
Social oncologist. I make small things.Unapologetically anti-genocide.My posts are licensed under Creative Commons Attribution-NonCommercial-ShareAlike (https://creativecommons.org/licenses/by-nc-sa/4.0/)🍉🌻 🏳️🌈 🏳️⚧️#SmallWeb #SmallTech #web #tech #privacy #humanRights #personhood #democracy #aral #fedi22 #searchable