Show newer

`Object.setPrototypeOf(new Array, null)` is definitely cursed but is it useful?

@aescling in my case, it is very important that my mappings do not change after object creation, which is easy to achieve on ordinary objects with `Object.freeze()` but impossible to guarantee with Maps. since my keys are all strings, `Object.create(null)` is the simplest and most straightforward approach.

@aescling Map and Set are always mutable and do not participate in general JavaScript property access semantics (enumerability, writability, etc.)

[there is a proposal for readonly Maps and Sets but it’s still only Stage 1]

when you do actually want to take advantage of javascript property semantics (enumerability, writability, getters/setters), you need to use ordinary objects to do it. `Object.create(null)` is a great way to do this when you only need the property semantics and not the prototype chain.

sometimes my brain asks questions which really ought to be obvious, like “why are the accounts on girlcock club always horny”

once javascript gets records and tuples then that is probably ⁜actually⁜ what i will want, however

Show thread

having to significantly refactor this code because turns out i probably actually do want `Object.create(null)` instead of `Map` and `Array.from()` instead of `Set`

📟🐱 GlitchCat Sunday Post (3 October 2021) 

§ Instance News

• No major updates! There was a problem with Let’s Encrypt certificates? Didn’t seem to affect us! 😄

• It’s the spooky season!! Feel free to join in the celebrations with a spooky avatar or username (if you want).

• A reminder that October 8 (Friday) is International Lesbian Day!!

§ From Our Members

• I finished my work on u2764.com, an archive for various things I have published on the internet.

@aescling is working on refactoring httpd.execline (which powers our WebFinger and her website) but it isn’t done yet!

oh right i should do a Sunday Post huh

@witchfynder_finder but yeah the fans just act so entitled these days

i even like the team for the most part these days but it's seattle, man, you're not supposed to win every game

@witchfynder_finder bring back the days when everyone hated us for making the playoffs with a losing record, that was the shit

@witchfynder_finder honestly as a longtime seahawks fan i long for the days when they were Not Good, and the only thing keeping me from actively wishing they were worse is a feeling of rivalry with all the other teams in our division, who are unfortunately also excellent

@witchfynder_finder
seahawks fans 🤝 the rest of the NFL except for steelers fans

hating the steelers

@witchfynder_finder have the seahawks like, ever done that

like even As A Seahawks Fan they always start slow

straights don’t get to write books about the death drive

Show thread
Show older
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.