@barefootstache Okay, thanks
@freeschool Thank you!
@freemo I'm looking to migrate servers, but I get an error page with a 500 (Internal Server Error) status when I submit the form on the redirect setup page. I set up the account alias on my new account about a week ago.
BTW, thanks for running this place, it's been a great introduction to Mastodon.
@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.
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.
I am now @acjay