![](/static/253f0d9b/assets/icons/icon-96x96.png)
![](https://programming.dev/pictrs/image/170721ad-9010-470f-a4a4-ead95f51f13b.png)
lol, you’d really have to go out of your way in this scenario. First implement a way to get every single permutation of a list, then to ahead with the asinine solution. 😆 But yes, nice one! Your imagination is impressive.
lol, you’d really have to go out of your way in this scenario. First implement a way to get every single permutation of a list, then to ahead with the asinine solution. 😆 But yes, nice one! Your imagination is impressive.
So there’s yet another level of quirkery to this bullshit then, it seems. 😆 Nice digging! 🤝
I also noticed that if you surround the curlies with parentheses, you get the same again:
> eval('{} + []')
0
> eval('({}) + []')
'[object Object]'
I guess, yeah, that’ll do it. Although that’d probably be yet one or a few extra factors involving n.
In node, I get the same result in both cases. "[object Object]"
It’s calling the toString()
method on both of them, which in the array case is the same as calling .join(",")
on the array. For an empty array, that results in an empty string added to "[object Object]"
at either end in the respective case in the picture.
Not sure how we’d get 0 though. Anybody know an implementation that does that? Browsers do that maybe? Which way is spec compliant? Number([])
is 0, and I think maybe it’s in the spec that the algorithm for type coercion includes an initial attempt to convert to Number before falling back to toString()
? I dunno, this is all off the top of my head.
My mental model of it is a chain, yes. But you can define it however you like. It’s just steps in some direction.
Maybe a cake would suit someone the best.
Exactly. For every level of abstraction, the abstractor is the high level and the abstractee is the lower level. Those aren’t real words perhaps, but you get what I’m saying. It’s all relative along the chain of abstraction.
How in the hell does anyone f— up so bad they get O(n!²)? 🤯 That’s an insanely quickly-growing graph.
Curious what the purpose of that algorithm would have been. 😅
Imagine having such a tense relationship with your only neighboring country. Must suck pretty badly. Not being able to focus entirely on progressive stuff, but just preventing war all the time, almost.
Besides that, why are they even so close to the border in the first place when they know guns will be fired?
I just ordered a Gan 3x3… I’m a beginner… Long way to go to beat this robot. 💀🙃
Yeah I dunno if this is “news” news but it’s certainly sad. But probably nothing but accidents.
That is also my general understanding about hatred and neophobia/xenophobia in general. It’s the lack of understanding and fear or the unknown that fuels it.
Just double checking your awareness that this article talks about the country, not the state.
I mean your comment is probably correct about both, I’m just saying FYI. 😁👍
I’m 37. I’ve always hated superhero movies. More into horror and space/sci-fi.
Are we done here with you trying to berate me? You’re not showing your best colors here, you know. These ad hominems are giving me second-hand embarrassment.
Believing in the basic human right to freedom and truth is pathetic now?
Let me guess, “believing in something” is “gay” too, am I right?
Quit now before you embarrass yourself further. This is too much cringe.
🤨 I think we’re not getting through to each other…
It’s not about what they enjoy, it’s about what they deserve. People deserve the truth, whether they like it or not. That’s what I believe.
It was quite long. This is what I could find at the end while skimming again.
I asked if they thought education would be improved on campus if phones were forcibly locked away for the duration of the school day. Only one student gave me so much as an affirmative nod!
Among students, the consensus was that kids generally tune into school at the level they care to, and that a phone doesn’t change that. A disinterested student without a phone will just tune out in some other way. They also put forth the idea that the quality of the teacher has a lot to do with how much they’ll tune in. This take had broad support.
🤷♂️ If it’s a problem or distraction it’s gotta go away. But of course it’s not the only factor. I didn’t grow up with notifications in class but I was very distracted still. But a phone would not have helped me, let’s just say that.
Couldn’t hurt. It’s about the principle of freedom.
I thought IIFE’s usually looked like
(function {})(...params)
. That’s not the latest way? To be honest I never used them much, at least not after arrow functions arrived.