kevinfiol
Joined 4 years ago
Joined 4 years ago
Deno from my understanding included a version of the TypeScript compiler as part of its build. Node doesn't do this. I'm not sure what Bun does, but I wouldn't trust it for anything more than a hobby project.
If you don't find any of the above to be a problem, you don't have anything to worry about, of course.
So while Vue is not gatekeeping their reactive primitive library, they aren't exactly advertising it like Preact in a way that the average library author (like Mador's author) might even be aware of it.
Also as someone who has built React applications for more than 7+ years, I'm also still not sure what React's reactive primitive package is. Googling or asking ChatGPT has turned up nothing.
preact/signals-core is great, but since HTML elements have no way to subscribe to signals, you have to handle that yourself:
import { signal, effect } from "@preact/signals-core";
const $ = (s) => document.querySelector(s);
const counter = signal(0);
effect(() => {
$('.counter').textContent = counter.value;
});
$('.increment').addEventListener('click', () => {
counter.value += 1;
});
vs mador:
import mador from "https://cdn.jsdelivr.net/npm/@marsbos/mador@latest/dist/mador.js";
const $ = (s) => document.querySelector(s);
const [read, write] = mador({
count: 0,
});
read(".counter", (el, count) => {
el.textContent = count;
},
(state) => state.count,
);
$('.increment').addEventListener('click', () => {
write((state) => { state.count++; });
});
Anyways, I love projects like these that try to make working with the web easier with minimal tools.As a sidenote, X is rightfully crucified for blatant anti-semitism and Hitler worship all over the site, complemented by Musk's own ridiculous anti-semitic dogwhistling and retweeting misinformation and conspiracy theories. The site is bottom of the barrel /pol/-tier trash. I literally searched "Hitler" seconds ago, and found a thread today full of people adoring him.
https://x.com/GrossAdmiral_/status/2092000855750832572
https://x.com/truthtroll_X/status/1840440966668579257
https://www.reddit.com/r/GetNoted/comments/1esj9uf/i_dont_th...
https://www.theguardian.com/technology/2023/nov/16/elon-musk...
Are you suggesting these people have increased or decreased in quantity? I feel like I've met more vim/neovim/tmux/theprimagen/tool-rewritten-in-rust geeks with every new job.