aral, to javascript
@aral@mastodon.ar.al avatar

Assign properties in a constructor’s parameter object (with defaults) to object being instantiated in JavaScript

https://codeberg.org/aral/gists/src/branch/main/assign-properties-in-a-constructors-parameter-object-with-defaults-to-object-being-instantiated-in-JavaScript.md

This is a little something I ended up playing around with this morning before figuring out how to do it (after spending far too much time down a rabbit hole with object destructuring when what I really needed was creative use of the spread operator).

(Useful for custom objects in JSDB 5 – https://codeberg.org/small-tech/jsdb#custom-data-types)

aral, to javascript
@aral@mastodon.ar.al avatar

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:

https://codeberg.org/aral/gists/src/branch/main/default-values-for-destructured-properties-of-parameter-objects-in-javascript.md

ehqo, to random
@ehqo@social.lol avatar

Upgrades, people, upgrades!

I've added some new items to my daily coffee setup, and so I've updated my coffee post. https://ehqo.net/blog/my-coffee-defaults/#updated-2024-04-19

br00t4c, to random
@br00t4c@mastodon.social avatar

Thames Water troubles swell as parent firm defaults

#defaults

https://www.bbc.co.uk/news/business-68742551

ehqo, to random
@ehqo@social.lol avatar

Working with the data extracted from everyone's #defaults lists has proven to a bigger task than expected. However, here's a glimpse at a sample of the data! More detailed analyses of the full dataset soon to come.

br00t4c, to random
@br00t4c@mastodon.social avatar
gunnarsson, to Blog
@gunnarsson@mastodon.social avatar

Late to the party as always ... I've written a "default apps" list on my tiny blog.

#blog #blogging #apps #defaults #defaultapps

https://www.martingunnarsson.com/posts/apps-2023/

br00t4c, to random
@br00t4c@mastodon.social avatar

US commercial real estate facing "wall of debt."

#defaults #realestate

https://www.wsws.org/en/articles/2024/01/04/jpet-j04.html

miguelmaiquez, to random Spanish
@miguelmaiquez@mastodon.social avatar

1/4

Veo en el blog de @aperalesf que la gente está compartiendo sus "aplicaciones por defecto" en 2023, con una lista fija de opciones, y entiendo que en el ordenador (no en el móvil), y sin contar las del trabajo. Así que ¡vamos allá! Ahora mismo:

✉️ Cliente de correo: @EvolutionGnome *
📫 Servidor de correo: #Posteo
📝 Notas: @nextcloud
✅ Tareas: Evolution (con Task . org)
📷 Cámara: Aplicación por defecto
🖼️ Administración de fotos: Nextcloud

#defaults #defaultapps

Catelli, to random
@Catelli@mstdn.ca avatar

I know YouTube!!! I want it that way!!!

Stop assuming the other way is the preference I should have.

abraxas3d, to ai

From a colleague in a private conversation about chatbots ( @sconklin and you should follow him too)

"A primary modern survival skill has already become the ability to make contact with the right human who can override the . This is true for everything from warranty returns to care. This is already only available to people with the knowledge, time, and resources to do it. It's only going to get worse."

aral, (edited ) to random
@aral@mastodon.ar.al avatar

@laura Please ignore, this is just a test of an “unlisted” @mention status’s visibility.

aral,
@aral@mastodon.ar.al avatar

@Skoop @laura Yep. Clearly “unlisted” doesn’t mean what we (or at least I) think it means.

(An @mention really shouldn’t be broadcast to everyone by default to begin with. That’s almost as bad as a quote tweet and I can’t really imagine why you’d use it unless you were calling someone out.)

CC @Gargron

aral, to fediverse
@aral@mastodon.ar.al avatar

Hmm, I would have thought a post starting with @mention would not be visible on the main timeline but only under posts and replies but apparently not.

I guess it’s “full attention of everyone following you” or “direct message.” Would be nice to have “public but I’m not shouting it to all my followers” as the default for @mentions.

aral,
@aral@mastodon.ar.al avatar

@autiomaa @krzysztofdrozdowski Not to mention (no pun intended) that there is a very real social difference between a public @mention that you don’t want to broadcast to all your followers (should be the default) vs a direct message. The default should be that you can say something to someone publicly without pointing at them and shouting “hey, everyone, listen to what I’m about to tell so-and-so!”

CC @Gargron

murshedz, to random
@murshedz@mstdn.social avatar

“Democrats could have tried to abolish this pointless and dangerous economic time bomb, but failed to do it.”

While Rs will be responsible if US #defaults, Ds also have themselves to blame for not being proactive when they had power. Great contextual breakdown from @ryanlcooper via @theprospect newsletter this am. #uspol

https://prospect.org/economy/2023-05-03-x-date-debt-ceiling-newsletter/

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