@aismallard yeah, it's possible it might have to be parenthesized. I think there's some reason to think it could be workable tho since this would always be in the context of a list item, either after the opening `[` or a `,`.

As mentioned in my other comment, if you had prefix &, you'd have

Promise.all([
& condition1 && task1()
& condition2 && task2()
& condition3 && task3()
])

which is even less noisy.

@aismallard @rauschma

If so, it raises a couple interesting points:

- Having it be null-based requires the explicit null in the false branch of the conditional. A falsey-based version (e.g. prefix &) would allow for something even more streamlined.

- Although not applicable to Promise.all, I can imagine similar syntax for conditional arguments to variadic functions.

@aismallard @rauschma I agree. Something like this?

Promise.all([
? condition1 ? task1() : null,
? condition2 ? task2() : null,
? condition3 ? task3() : null,
])

@rauschma Sorry for the delayed response, but thanks, Axel!

I JavaScript, has a spread-like operator for optional elements been considered? Something like:

['a', ?'b']
=> ['a', 'b']

['a', ?null]
=> ['a']

I know you can emulate this with a spread + conditional + array literal, but I think this could be way simpler to understand.

@rauschma or any other JavaScript experts

The Associated Press -- like essentially every other major journalism outlet -- has totally normalized extremism.

Calling the new house speaker a "staunch conservative" -- a pathetically weak euphemism for far-right extremist -- is only the latest example of Big Journalism's collapse into willful helplessness.

It's journalistic cowardice in the face of a movement that aims to bring down democracy, and by extension journalism.

@Osteopenia_Powers @mekkaokereke I feel ya, but there's a big gap between knowing how to do something and being able to effectively tutor someone through it. Also, poverty looks a lot of different ways. You're absolutely right that some poor people have sharp math skills that they use to survive. But it's also true that others rely on other supports for survival. One of the hardest parts of teaching a high poverty population is that it's impossible to generalize the challenges.

@mekkaokereke one small point from my time teaching public school in Baltimore. My school did not suffer from any lack in teachers caring. In fact, our teachers were far more intensely dedicated than the ones in the high performing suburban public school I went to. The difference was that it was our job to try to correct all the effects of the systematic damage of poverty.

@GeePawHill The Seven Years' War also directly precipitated the French Revolution, which completely reshaped Europe.

@Geoffberner why do you assume it's COVID-related? I haven't seen anything that suggests that. My wife had almost the same experience of near total hearing loss in one ear, since 2017, so definitely pre-COVID.

@alexelcu reports of Scala's death are greatly exaggerated, apparently

I haven't programmed it in a while, but it's still my fave language.

Shit, here it is to everyone not to a thread:

It was the extraordinary James Baldwin who taught me that one could be very angry and very kind AT THE SAME TIME.

Gandhi told me. King told me. But I dint get it, until I saw Baldwin doing it.

Baldwin, doing it. Read James Baldwin, watch the videos of James Baldwin

Get your mind right.

@AvengingFemme I have a mental block around PowerShell. It seems like gibberish to me.

At some point, I just need to go through a "Learn PowerShell the hard way" type tutorial.

@hicksca It's not just an illusion of exclusivity, it's *literally* exclusive. The only way to get on is to know someone with an invite.

I think that has made it a really enjoyable experience. But it's very unclear whether that can scale to an open network, let alone a decentralized one.

I wrote about 2 groundbreaking pancreatic cancer studies this week: #AI identifying high-risk individuals and a vaccine clinical trial published @nature today
erictopol.substack.com/p/a-one

bird.makeup/users/EricTopol/st

It all feels like sour grapes that Bluesky released a not even half finished product and got lots of notoriety. They obviously did something right. Try to figure out what that is, if you want your network to be more appealing

Show thread

But I get frustrated when people talk about the same things being possible in ActivityPub that ATProto claims to be designed for. Someone should go ahead and make it, then. Otherwise, it's fine if another person wants to do it the way they feel like.

Show thread

What bugs me about these rants is that if he's right, and ATProto is unnecessarily complicated for no good reason, then surely there's nothing to worry about for people who like the ActivityPub ecosystem.
QT: urbanists.social/@sam/11033990

Sam :verified:  
Fucking Christ the @protocol is the most obtuse crock of shit I've ever looked at. It is complex solely for the sake of being complex and still suf...

@atomicpoet @davidgarywood Typically something a lot like the feeds in most commercial social media apps. The right balance of
- stuff from folks I intentionally follow, with some adjustment to balance out differences in how often people post
- stuff I might actually be interested in discovering
- the zeitgeist

I think the strict reverse chronological default Mastodon feed just doesn't do it for me.

Show more
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.