If you don't find any of the above to be a problem, you don't have anything to worry about, of course.
367 karma · joined April 24, 2022
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.
What minor controversy I have seen is a small minority that argue either 1. You shouldn't pay for YT Premium because it enables user-hostile business practices or 2. You shouldn't use ad-block because it's effectively "stealing."
[1] https://github.com/gorhill/uBlock/blob/master/MANIFESTO.md
* Going to restaurants with bars (like diners or sushi bars) where I could attempt to make small talk with servers
* Regularly going to the gym. Cliche, I know, but at least 3 times a week at the same times and I started becoming friendly with other regulars who had similar schedules. If you get friendly enough with someone, don't be afraid to ask if they wanna get food or beer after.
* Volunteering (cliche as well, but it helps) at the same place once a week. I volunteered for a high school bringing near-spoiled produce from local supermarkets to their horticulture club. There's loads of ways to get involved, but maybe start with your city/county's website to look for volunteer opportunities, ideally ones where you see the same people every time. This lets you build trust and community with folks who are often from different walks of life.
[1] https://en.wikipedia.org/wiki/1960_United_States_presidentia...
[2] https://en.wikipedia.org/wiki/Trump_fake_electors_plot#1960_...
It was not a good policy and was unpopular with many Democrats, but I think there were several other more major contributing factors to why as Trump won (ex. general displeasure with inflation post-COVID, high emphasis on the asylum crisis/trans issues, plus only having 4 months lead-up time after Biden's withdrawal).