techhub.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A hub primarily for passionate technologists, but everyone is welcome

Administered by:

Server stats:

4.6K
active users

#promise

1 post1 participant0 posts today

“You #promise about 백일?” asked Jin as he laid a sleeping Lee-jin in his cot.
“He always stays asleep when you put him down,” said Ari. “Mia suggested 백일. So it’s a good idea, right?”
“On Lee-jin’s 100th day.”
“A family party, like a delayed birthday.”
“So you kind of know.” #vss365

#promise : to engage to do, give, make, or to refrain from doing, giving, or making, or the like

- French: promesse

- German: die Versprechung

- Italian: promessa

- Portuguese: promessa

- Spanish: promesa

------------

Join our new Discord Server for language learners @ wordofthehour.org/discord

DiscordJoin the Learn A New Language Discord Server!Check out the Learn A New Language community on Discord - hang out with 424 other members and enjoy free voice and text chat.

New twist on #marshmallowtest shows power of a #promise
If #children are paired in a marshmallow test and one promises not to eat their treat, the other is much more likely to also refrain from eating it.
Any parent could tell you that children of this age are really big on the importance of promises, and science largely concurs; a promise has been shown to enhance interdependent cooperation in this age group.
Younger children were slightly more likely to succeed.
arstechnica.com/science/2025/0

Ars Technica · New twist on marshmallow test shows power of a promiseBy Jennifer Ouellette

JavaScript, wow!🤣

I was under the impression that if a function returns a Promise, it never throws. Rather, in any case, it returns a Promise, rejected if the functions throws something.

But fetch() is a counter-example. Or this on the TypeScript playground:

typescriptlang.org/play/?#code

The crucial thing is. My impression above is true for functions of the form

async f(...): Promise<...> { ... }

Just add the async in the playground to see the difference.

www.typescriptlang.orgTS Playground - An online editor for exploring TypeScript and JavaScriptThe Playground lets you write TypeScript or JavaScript online in a safe and sharable way.