A virtual DOM is essentially a data structure that abstracts over modifications to another data structure simply for performance reasons. It's just a way of modifying some data in memory and then committing all of those changes in a single transaction. The very fact that this is actually a reasonable solution given the tools available just goes to show how broken the tools are. The whole computational model exposed by browsers is completely out of touch with how it's being used. For example, why isn't there a language construct in JavaScript inside of which all DOM manipulation isn't propagated to the rendering engine? Instead we build a virtual system inside of a virtual machine to achieve the same, and then wonder why things are so clunky.
It could have a “talk” mode and a “command” mode so that typing “spell check my homework” into the talk mode would suggest that you could type “read homework.txt | spellcheck” into the command mode
Here's a fun way to spend an hour: try re-creating this nomogram using nothing but a compass and a straight edge. I found it really quite satisfying to reverse the addition and multiplication that falls out of the quadratic equations the nomogram can be used to solve. https://www.cambridge.org/core/services/aop-cambridge-core/content/view/8AECE3C0A20A8D993501D2E59349168C/S1757748900001523a.pdf/a-simple-nomogram-for-the-solution-of-quadratic-equations.pdf
There are dozens of fish or fish-like emoji (e.g., 🐟 🐠🎣🐡🦈🐬🐳🐋🐟.𓆝𓆟)
In fact, there are so many that, if I sent you a random one, a third party wouldn't have a good chance of guessing which one I'd sent.
This means we could adopt a new form of 2FA based on sending fish emoji
“In addition to your password, please log in with your one-time cod”
A few years ago I made this flow chart of which Mastodon posts end up in which timelines!
So, you can see how each instance will have a different local timeline, and even a slightly different federated timeline - and you can see why the federated timeline moves so much faster than the local one, too.
This is why it's important to boost good posts and use hashtags - the fediverse is fragmented and harder to search by nature.
"Being poisoned to death will kinda disrupt any plans you might have had for the afternoon" https://youtu.be/cNJZrHd39ag
I love /r/antiwork but I really don't like the name.
It should be /r/antijob.
Human nature is to do work.
But human nature is not to have a job.
Building software is work. Gardening is work. Making music is work.
Work is good. Work is healthy.
Jobs, though. That's where our mental, emotional, and often even physical selves break down.
I've really taken to property-based testing recently and this quote just really helped me crystallise why property testing is worth the extra effort over example-based unit testing: "Instead of thinking about whether my code worked I began to think about whether it’s correct." https://jrsinclair.com/articles/2021/how-not-to-write-property-tests-in-javascript
I'm really starting to think that anything short of a WW2-scale government-led mobilisation effort to fight climate change is just a bit of window dressing. Individual actions like flying less or going vegan, or corporate actions like carbon offsetting are just not going to scale fast enough and are probably just a distraction from meaningful change. The technology is there and the transition will (probably) happen eventually at this point, we just need the political action to drastically reduce the timeframe.
Software engineer by trade. Programmer by hobby too (in addition to basketry and spoon carving). Personal website: https://rlamacraft.uk/. Gemini capsule: gemini://gemini.rlamacraft.uk