I'm not sure it's ever a great idea to make your GUI application look totally different to the rest of the OS you're working in. Looking at you, Slack.
@NanoSector Yea.. I used it quite a lot, but trust me, it should be forbidden...
JS is too dangerous throwing errors at will and even with TS the types are unsound and more a guideline, because at runtime everything can happen, incl. undefined! Crashing the server/app!
Whatever happens between #bun, #nodejs, and #deno, I hope this standard library effort survives. Porting it too early might introduce too many cooks and spoil the broth, however, so let's give it time to mature.
I hate#nodejs. Who in their right mind would compile a hard coded list of trusted root CAs into their software‽ Well, nodejs is who. See https://github.com/nodejs/node/issues/4175.
Of course there is the NODE_EXTRA_CA_CERTS env var which I can set to a path of additional root CAs to use. I'd have to do that for every process I need though. So surely there's a similar option to just use the system CAs? No, of course not. There's a compile time configuration option to disable the built in CA store: https://github.com/nodejs/node/blob/e329a11515c40e890920fc81f735edd4725b882e/configure.py#L229
TL;DR: I'm compiling nodejs right now. At least #nixos lets me easily add that configuration flag. Maybe time for a PR to enable it by default?
I was going through some HTML markup/ content where my <h1>,<hx> tags have no anchors/ ID's. pain in the butt to do that manually if i want anchors, It occurred to me: why don't I just process the markup and use the <h1> (..contents ...) </h1>
but the (...contents...) atom needs filtering. E.g. "this just in", maybe I want "this_just_in"
@ajaxStardust It wasn’t a cinch. I don’t work with #JavaScript daily and I’ve never used #Mojolicious’ JS version. And the last time I wrote anything for #NodeJS in anger was 2019.
The @PINE64#PinetabV is real and in my hands! Nice keyboard case with touchpad too. Hope I can get some time to play with it properly so it isn't just a door stop, although it came with a kennel installed on it which is more than I had expected 😁 #RISCV
Just released JavaScript Database (JSDB)¹ version 3.0.3
This is a bug fix patch that fixes options defaults not being applied when an options object is passed to the JSDB and JSTable constructors².
¹ 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 (https://codeberg.org/small-tech/jsdb)
After some log debugging, I realized my #Mastodon instance was not using the, uh, newest#nodejs and so upgrading from 4.1.2->4.1.[4|5] was having issues. Being able to have multiple versions of the same system language installed at the same time can be confusing, even to someone who has used computers for decades. Sigh.
That being said, I am now on 4.1.5 and feeling, uh, more secure, or something.
#Mastodon doesn't have full text-search, so I built my own. Actually just a pet project to learn #NodeJS, #TypeScript and glue everything together with #Kafka and #Elasticsearch. Data is ingested in real-time via #ServerSentEvents. Visualization and search through #Kibana. I'll publish the source code over the weekend
I would like to minimize waste, but I fear at this point my best guess is to make a #Docker image that runs npm run deploy && rsync public/ /var/www.
I WAS going to try out #Bun until I realized that it doesn't support Windows yet. Then I thought to myself "wtf was all that v1.0 hype chant on social media all about then?" If it's going to be producing wtf moments like this for some time, then I'd much rather remain with my #Nodejs toolset.
Color me surprised and impressed. I often get bad vibes from both #NodeJS and #Docker, but they worked great this time.
I found a repo with some code that counts the estimated reading time of some text. Normally, IME, JavaScript projects that haven't been touched in three years take a lot of work to get them just to install dependencies.
But with one Docker run command helpfully given in the repo, it totally worked, first try.
"The state of the art is no longer in finding more sophisticated ways to build JavaScript or CSS. It's not to build at all. To lean on HTTP/2 and the now universal support for import maps to avoid bundling."