Replies

This profile is from a federated server and may be incomplete. Browse more on the original instance.

henrikjernevad, to javascript
@henrikjernevad@mastodon.social avatar

Another leak in the JavaScript single-threaded facade (or a bug in Jest, really).

Asserting expect(...).toStrictEqual(...) fails with two structurally identical objects created by two different Node worker threads because their prototypes are not the same (though identical). Asserting expect(structuredClone(...)).toStrictEqual(structuredClone(...)) works.

#javascript #typescript #jest

underlap,
@underlap@fosstodon.org avatar

@henrikjernevad Have you looked at Elm?

Last time I looked, the docs were like "Elm for JavaScript developers" or at least "Elm for front-end developers", hence opaque to me. But the language has a lot of promise.

cory, to tech
@cory@social.lol avatar

📝: Search is dead — long live curation #Tech #AI https://coryd.dev/posts/2024/search-is-dead-long-live-curation/

underlap,
@underlap@fosstodon.org avatar

@cory Does this mean that it's time to block the regular Google web crawler(s) if one wants to block AI web crawlers?

If so, that's quite a moment: choosing not to be indexed by Google search.

henrikjernevad, to programming
@henrikjernevad@mastodon.social avatar

Should you build software that is extensible and future-proof?

That sounds like a good idea, doesn’t it? Well, that depends on how good you are at predicting the future.

https://henko.net/blog/design-for-today/

underlap,
@underlap@fosstodon.org avatar

@henrikjernevad Very helpful. I generally agree and I've definitely been guilty of over-engineering in the past. 1/3

underlap,
@underlap@fosstodon.org avatar

@henrikjernevad The only exception that springs to mind is that when it becomes necessary to generalise some code, it's sometimes worth going further than immediately necessary. 2/3

underlap, (edited )
@underlap@fosstodon.org avatar

@henrikjernevad The criterion in this case should be to come up with a well-rounded abstraction (a good concept, if you like).

The trick is to consider what general extension the current extension might be part of and then ask the question: is the general extension simpler than the specific extension needed right now?

How can we judge simplicity? Two clues are if it's easier to document or easier to test.

3/3

underlap,
@underlap@fosstodon.org avatar

@henrikjernevad The post was great. It's good to have clear rules. You just need to know when to break them. 😉

underlap,
@underlap@fosstodon.org avatar

@henrikjernevad "Never break the rules"? 😂

amoroso, to random
@amoroso@fosstodon.org avatar

I know, Git is a mess. But, since we're stuck with it, we may as well try to learn how it works with resources like this, which aims to lead to some form of Git enlightenment.

https://think-like-a-git.net

underlap,
@underlap@fosstodon.org avatar

@amoroso After the initial couple weeks of steep learning curve, circa 2008, I have been happy with git and its slightly awkward "porcelain". I started with an intense practical session with some colleagues -- @nebhale will recall -- and then got a better mental model from https://eagain.net/articles/git-for-computer-scientists/ (works for mathematicians too).

(git switch -c was quite an improvement over git checkout -b for creating a new branch.)

underlap, to random
@underlap@fosstodon.org avatar

After my recent spate of unfollowing, my home timeline has nearly stalled. This is probably a good thing...

underlap,
@underlap@fosstodon.org avatar

@danielsiepmann @Anachron I wonder if there's an easy way to obtain an account's average posting frequency? I would take a punt on an infrequent poster but probably avoid the more prolific.

rjomara, to Blog
@rjomara@mastodon.social avatar

Made a breakthrough in how I think I can make this digital garden work. It always comes down to finding the right tool for the job, and I may have an idea of what might work for me.

https://microblog.rjomara.com/2024/05/10/still-making-mud.html

#DigitalGarden #IndieWeb #blog

underlap,
@underlap@fosstodon.org avatar

@rjomara Do you know what Obsidian's resource requirements are?

wader, to random
@wader@fosstodon.org avatar

Yesterday I read the recently published JSONPath RFC (RFC9535) and listening to an interview with one of the creators of SQL https://www.datacamp.com/podcast/50-years-of-sql-with-don-chamberlin and worst of all i poked around in sqlite code to figure out how the scheme table works...guess I just have to accept that I'm a query language nerd.

underlap,
@underlap@fosstodon.org avatar
underlap,
@underlap@fosstodon.org avatar

@wader Good progress!

rjomara, to Blog
@rjomara@mastodon.social avatar

Spent the day trying to come up with a draft of the digital garden setup. It's been a tough one, because I'm not quite able to get to the point I’d like it to be.

But I'm resigned to making something to start with. Something I can improve when my skills and tools allow. So I'll keep plugging away at it.

https://microblog.rjomara.com/2024/05/09/playing-in-the.html

#DigitalGarden #IndieWeb #blog

underlap,
@underlap@fosstodon.org avatar

@henrikjernevad @rjomara I've played with Logseq as an alternative to Obsidian. (Unfortunately, I can't find the resource requirements of either Logseq or Obsidian to know how big a VPS they'd need.)

underlap,
@underlap@fosstodon.org avatar

@henrikjernevad @rjomara I just found this data loss thread which puts me off Logseq: https://discuss.logseq.com/t/data-loss-happened-twice-i-cant-trust-logseq-anymore/6896/55

Sure I am happy with git and could implement proper backup, but I'd want to trust Logseq for normal note-taking operation.

underlap,
@underlap@fosstodon.org avatar

@henrikjernevad @rjomara Logseq produces a collection of markdown files optionally committed to git, so sounds similar.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • osvaldo12
  • DreamBathrooms
  • mdbf
  • InstantRegret
  • ngwrru68w68
  • magazineikmin
  • everett
  • thenastyranch
  • Youngstown
  • slotface
  • cisconetworking
  • kavyap
  • ethstaker
  • JUstTest
  • modclub
  • GTA5RPClips
  • khanakhh
  • tacticalgear
  • Durango
  • rosin
  • normalnudes
  • Leos
  • provamag3
  • tester
  • cubers
  • anitta
  • lostlight
  • All magazines