I thought IIFE’s usually looked like (function (...params) {})(...args)
. That’s not the latest way? To be honest I never used them much, at least not after arrow functions arrived.
I thought IIFE’s usually looked like (function (...params) {})(...args)
. That’s not the latest way? To be honest I never used them much, at least not after arrow functions arrived.
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.
My experiences in Rocket League can confirm. People being toxic in chat? Tell them something in chat back – get the “tg” to confirm French. Every goddamn time, always the French that are so rude.
Why? Why are they having such a bad day every day? Play a game to have fun ffs.
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. 😅
lol you’re not doing anything wrong yet then 😄
I don’t think it’s lane surfing if you’re not changing lanes.
No, definitely not. It’s only lane surfing if you’re changing lanes to pass. Sorry, I thought that was the implication.
Anyway, this comment section has made me realize that it always just depends. Drive aware, keep safe distance, don’t unnecessarily change lanes, let people pass (on the left) if they’re going faster than you, etc.
Yes, agree completely. ❤️
The best advice I ever got about driving was “be predictable.” I think if anyone really takes that to heart empathetically then it would be safer.
Exactly. That person understands traffic. So many times people will decelerate very rapidly to stop and give way for me (because it’s a place where they are supposed to). But because they are coming at such speed, it doesn’t look like they’ll stop in time and it makes me react by breaking suddenly.
People need to look far, and break early and slowly. Be predictable and have clear car body language.
👌👌 You and I are on the same page.
This is the wildest question I’ve read in quite a while.
That’s too neutral or positive for my connotation. Mine includes something negative from the perspective of the one being manipulated. It might be incorrect but it’s my connotation.
I think the definition of manipulation is a bit odd here. Manipulation to me has a connotation of being nonconsensual. If both or all parties are voluntarily participating I wouldn’t consider it manipulation.
But I do see what you all mean, conceptually.
Right, so I think you have a different definition of “manipulation”, perhaps. Which is fine. 👍
If I’m going straight, or right eventually, I wouldn’t use the left lane to pass people when driving in the city. That’s just lane surfing and not very safe driving.
Exactly my point, yes. Both/all lanes should be for navigational purposes in most cases in the city. 👍
Walks. Walking past trees and other natural objects helps the mind process thoughts and emotions, from what I heard. Maybe even not just natural objects.
It engages everything, I suppose. The body and the mind.
Supposedly helps you get over stuff.
I can’t vouch for it myself, but worth giving it a go if it does work. Couldn’t hurt. Good luck, friend!