• 0 Posts
  • 9 Comments
Joined 1 year ago
cake
Cake day: August 3rd, 2023

help-circle

  • CheezyWeezle@lemmy.worldtoProgrammer Humor@lemmy.mlGender.js
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    10 months ago

    Kind of. With hoisting, the compiler/interpreter will find variable declarations and execute them before executing the rest of the code. Hoisting leaves the variables as undefined until the code assigning the value to the variable is executed. Hoisting does not initialize the variables.

    For example:

    console.log(foo);
    var foo;
    //Expected output: console logs ‘null’

    foo = ‘bar’;
    console.log(foo);
    var foo;
    //Expected output: console logs ‘bar’

    console.log(foo === undefined);
    var foo;
    //Expected output: console logs ‘true’

    This means you can essentially write your code with variable declarations at the end, but it will still be executed as though the declarations were at the beginning. Your initializations and value assignments will still be executed as normal.

    This is a feature that you should probably avoid because I honestly cannot think of any good use case for it that won’t end up causing confusion, but it is important to understand that every variable within your scope will be declared at the beginning of execution regardless of where it is written within your code.



  • No, I read the “win/win” as listing there only being two possible scenarios. They are saying you either win or you win. “Win/win” reads as “win or win”, so there is your “either… or”, but even then you don’t need to say specific words to be able to imply exclusivity.

    Example:
    “You must be joking, and if not, then you are a fool” Notice how in that sentence I did not use “either/or”, yet I still implied only two possibilities? Well, that sentence is homogenous to the sentence in OP’s post. I just used “if/then” instead of “either/or”.


  • The post suggests that there are only two options in the scenario: they are either secretly trans, or they are a bigot trying to belittle and insult trans women. They don’t leave any nuance for a different option. Dare I say that they have a rather binary way of thinking…


  • I never understood this obviously toxic take… saying that a cisgendered male crossdressing MUST be trans or trans-curious is exactly the same toxic energy as denying trans women’s existence.

    Are you folks really gonna say that, for example, Tim Curry is a closet Trans Woman? Because that’s the kind of thing being implied by that. Just let people do what they are gonna do and be what they are gonna be, leave your assumptions and judgements out of it.