• 11 Posts
  • 239 Comments
Joined 1 year ago
cake
Cake day: July 17th, 2023

help-circle

  • Yeah but that’s exactly it though: they’re not very moderate if they really have no qualms about collaborating with the likes of SD.

    It’s the same here in Finland too, the “moderate” and “fiscally conservative” National Coalition Party (Kokoomus) is suddenly pretty much indistinguishable from the far right Finns Party (Perussuomalaiset) now that they’re in a 100% right wing government. They’re eg. loosening the punishment for denying the Holocaust, blocking the progress of a law that would ban “conversion therapy” (ie. psychological violence to turn people straight), their MPs are now openly racist, and so on.

    Feels like “moderate” conservatives are just waiting for an excuse to drop their masks. One of my former acquaintances who is supposedly a moderate KOK voter told me straight up that the world would be a better place if gender minorities (like me…) didn’t exist.











  • I dint know many OO languages that don’t have a useless toString on string types.

    Well, that’s just going to be one of those “it is what it is” things in an OO language if your base class has a toString()-equivalent. Sure, it’s probably useless for a string, but if everything’s an object and inherits from some top-level Object class with a toString() method, then you’re going to get a toString() method in strings too. You’re going to get a toString() in everything; in JS even functions have a toString() (the output of which depends on the implementation):

    In a dynamically typed language, if you know that everything can be turned into a string with toString() (or the like), then you can just call that method on any value you have and not have to worry about whether it’ll hurl at runtime because eg. Strings don’t have a toString because it’d technically be useless.


  • Everything that’s an Object is going to either inherit Object.prototype.toString() (mdn) or provide its own implementation. Like I said in another comment, even functions have a toString() because they’re also objects.

    A String is an Object, so it’s going to have a toString() method. It doesn’t inherit Object’s implementation, but provides one that’s sort of a no-op / identity function but not quite.

    So, the thing is that when you say const someString = "test string", you’re not actually creating a new String object instance and assigning it to someString, you’re creating a string (lowercase s!) primitive and assigning it to someString:

    Compare this with creating a new String("bla"):

    In Javascript, primitives don’t actually have any properties or methods, so when you call someString.toString() (or call any other method or access any property on someString), what happens is that someString is coerced into a String instance, and then toString() is called on that. Essentially it’s like going new String(someString).toString().

    Now, what String.prototype.toString() (mdn) does is it returns the underlying string primitive and not the String instance itself:

    Why? Fuckin beats me, I honestly can’t remember what the point of returning the primitive instead of the String instance is because I haven’t been elbow-deep in Javascript in years, but regardless this is what String’s toString() does. Probably has something to do with coercion logic.






  • It’s almost like many conservatives are psychopaths who are literally incapable of emotions (well, other than hatred anyhow.)

    Oh wait, they are:

    sources

    We found eleven significant correlations between conservative [Moral Intuition Survey] judgments and the Dark Triad – [narcissism, Machiavellianism, psychopathy,] all at significance level of p<.00001 – and no significant correlations between liberal [Moral Intuition Survey] judgments and the Dark Triad. We believe that these results raise provocative moral questions about the personality bases of moral judgments. In particular, we propose that because the Short-D3 measures three “dark and antisocial” personality traits, our results raise some prima facie worries about the moral justification of some conservative moral judgments

    I ran a follow-up study testing the Dark Triad against conservative and liberal judgments on 15 additional moral issues. The new issues examined include illegal immigration, abortion, the teaching of “intelligent design” in public schools, the use of waterboarding and other “enhanced interrogation techniques” in the war on terrorism, laws defining marriage as the union of one man and one woman, and environmentalism. 1154 participants […] Twenty-two significant correlations were observed between “conservative” judgments and the Dark Triad (all of which were significant past a Bonferonni-corrected significance threshold of p = .0008), compared to seven significant correlations between Dark Triad and “liberal” judgments (only one of which was significant past p = .0008).

    In the present research (N = 675), we focus on the relationship between the dark side of human personality and political orientation and extremism, respectively, in the course of a presidential election where the two candidates represent either left-wing or right-wing political policies. Narcissism, Machiavellianism, psychopathy, and everyday sadism were associated with right-wing political orientation, whereas narcissism and psychopathy were associated with political extremism. Moreover, the relationships between personality and right-wing political orientation and extremism, respectively, were relatively independent from each other.