Tusks is a little indie app by @bardi that lets you see just your posts and compose new ones (with a focus on making it easy to compose threads).
Just bought myself a lifetime license.
Check it out at: https://thirdculture.app/tusks
Love to see indie devs making useful little tools that do what they say on the tin and nothing more (check out the privacy policy in the attached screenshot).
#tusks [#fediverse](https://mast … ⌘ Read more
If your president is actively funding, arming, and supporting a genocide and you call him “a good person” and “a good president”, maybe it’s time to take a good, long look in the mirror and wonder where things went wrong for you and whether you see a path back to reclaiming your humanity.
Yeah, I mean who hasn’t funded a little genocide every now and then? Especially when it’s Brown folks on the other side of the world getting slaughtered in the tens of thousands, amirite?
#Biden #USA #UnitedStates #genocide #israel #palestine #gaza [#a … ⌘ Read more
JSDB 5.0.1 published 🎉
• Fixes #14: Crash if DataProxy getHandler() called on object with null prototype. ( https://codeberg.org/small-tech/jsdb/issues/14)
To install update:
npm install @small-tech/jsdb@small-tech/jsdb
Learn more about JSDB:
https://codeberg.org/small-tech/jsdb#javascript-database-jsdb
#JavaScriptDatabase [#JavaScript](https://mastodon.ar.al/t … ⌘ Read more
To really drive home the above 👆 point that 100% test coverage does not mean ‘bug free’, just found a bug in JSDB¹ 5.0.0 where running JSON.stringify() on a complex custom object (actually: the automatic Proxy of the custom object created by JSDB) results in an error.
Already have a failing test for it and about to implement the fix.
¹ https://codeberg.org/small-tech/jsdb
#JavaScriptDatabase [#JavaScript](https://mastodon.ar.al … ⌘ Read more
Heads up anyone playing with Kitten at the moment (yes, both of you):
I’m in the process of upgrading Kitten’s version of JSDB from 4 to 5.
*This is a breaking change.*
This will affect you if you’re persisting custom objects (instances of your custom model classes) in your databases.
Please see the details in this JSDB announcement post and the linked-to details page to prepare:
https://mastodon.ar.al/@aral/112361559531645603
(I should have the update out this … ⌘ Read more
May I just say that not being able to set your own fucking character limit on your own fucking Mastodon instance without having to fucking fork fucking Mastodon is a fucking pain in the fucking arse.
Thank you for listening and here’s wishing you a lovely day.
If you use a parameter object in JavaScript, even if you specify its shape using JSDoc, you’ll only get errors if required properties are missing; not if there are extra properties provided.
e.g.,
```js
class A {
/**
@param {{
id:string
}} params
*/
constructor (params) {
Object.assign(this, params)
}
}
// Error:
new A({})
// No error:
new A({id: ‘x’, foo:‘bar’})
```
According to this thread, it’s a fact-of-life:
[https://stackoverflow.com/questions/49580725/is-it-possible-to-restrict-typesc … ⌘ Read more
I might have formed an unhealthy obsession for chocolate-covered raisins.
🍇 + 🍫 = 🤤
(Specifically, the milk chocolate Bare Pantry ones with the jumbo raisins.)
Philosophically, JSDB – which writes out to native JavaScript logs – is very much the JavaScript version of SWX, the native data format for Flash that I released around 2007 (where data was written out in native SWF format). I have to say that I’m glad I didn’t have to reverse engineer SWF bytecode this time around :)
Here’s a video of a younger me doing an impromptu demo of SWX at some conference or other from 16 years ago.
https://m.youtube.com/watch?v=OM9qOADsO3w
[#JSD … ⌘ Read more
JSDB 5.0.0 published 🎉
• Custom classes must have a `constructor` that accepts a parameter object as its only argument. Constructors are run during deserialisation.
• Custom classes can now safely extend other classes (e.g., `EventEmitter`).
• Properties that begin with an underscore (`_`) are treated as private and ignored.
• Objects with null prototypes are supported. i.e., objects created with `Object.create(null, …)`.
Full details: [https://codeberg.org/small-tech/jsdb#migrating-from-earlier-versions- … ⌘ Read more
100% test coverage doesn’t mean your code’s bug free but it did just lead me to find and fix an issue in JavaScript Database (JSDB)¹ with a code path that wasn’t being hit that I would have otherwise missed because it was causing the relevant test to pass.
¹ JSDB is a zero-dependency, transparent, in-memory, streaming write-on-update JavaScript database for the Small Web that persists to a JavaScript transaction log (an append-only log).
https://codeberg.org/small-tech/jsdb
[# … ⌘ Read more
I’ve thought a bit more on this and decided:
1. Persisting custom classes _is_ an advanced feature.
2. Implementing these changes would mean that custom classes can extend base classes (e.g., EventEmitter, so we can, for example, listen for events on sessions in Kitten)
3. The con of dictating the constructor signature for custom classes is outweighed by the pros.
So I just implemented this, plus pseudo-private property support, etc., and will be releasing a new major version of JSDB soon. ⌘ Read more
Just wrote a note about a little gotcha with default values for destructured properties of parameter objects in JavaScript that has gotten me a few times:
#JavaScript [#destructuring](https://mastodon.ar.al/tags/destruc … ⌘ Read more
Folks, this is a deceptive design pattern. There is a very clear third option here (keep me updated on this campaign’s progress only) that is not implemented for marketing reasons.
I expect better from a platform that exists to effect ‘progressive change across Ireland’.
“…as well as promoting an open human-centered search engine market.”
Why does everything have to be a fucking market for fuck’s sake?! https://suma-ev.social/@openwebsearcheu/112360213078810208 ⌘ Read more
AI = Avoid Immediately ⌘ Read more
Did you know?… Calling a cop brainless is not an insult but a statement of fact.
https://abcnews.go.com/US/court-oks-barring-high-iqs-cops/story?id=95836
#studentProtests #USA #UnitedStates #policeState #Israel [#Palestine](https://mastodo … ⌘ Read more
Folks: there’s no alternative to capitalism.
Capitalism: Hello! Today I created a potentially deadly new pandemic by feeding ground-up chicken shit and other poultry waste to cows because profit! ⌘ Read more
“They don’t know what’s best for themselves anymore, much less what’s good for our civilization. They’re just panicking, hoarding money, and then panicking some more. That’s why they’re all building mega yachts and moving to island bunkers. They know they’ve screwed us all, and they’re deeply terrified.”
https://www.okdoomer.io/im-a-professor-heres-why-im-walking-away-from-my-tenure/
2/2 ⌘ Read more
“A lot of rich people don’t actually want an education system or the educated population that would come along with it. Sure, it would be better for everyone. But it would also mean having to share, and these people have let their greed literally drive them insane.”
https://www.okdoomer.io/im-a-professor-heres-why-im-walking-away-from-my-tenure/
½ ⌘ Read more
A fine is just that: it’s fine. Just pay us a cut of your profits and keep doing what you’re doing.
Had knives in my throat (not Covid, probably… at least tests were/are negative) so went to see my new GP and we ended up chatting about the OneWheel I rode in on (he took up skating later on in life and tried one in France apparently), the shit factory that is Silicon Valley (he used be a software dev there before he became a doctor), the Small Web (he digs the idea), and, yes even my sore throat (I’m on antibiotics now). Needless to say, I like my new GP :) ⌘ Read more
Just a quick update on this: after some experimentation and further thought, I feel the way JSDB works currently is the right trade-off.
While it could run the constructor of persisted custom objects when loading them back in, that would impose a rigid authoring flow that would sacrifice ease of use for simple use cases. I find the latter more important in this case.
(I’m off to document this ‘feature’ now as it is currently undocumented and that’s not good.) :)
More: [https://codeberg.org/small-tech/jsdb/issues/12] … ⌘ Read more
It’s amazing to me that folks have such a hard time with the very basic concept of “follow the money.”
This isn’t rocket science, people. Where/who you get your money from matters. The people who you surround yourself with matter. The success criteria you adopt matter. ⌘ Read more