• 10 Posts
  • 517 Comments
Joined 2 years ago
cake
Cake day: July 13th, 2023

help-circle
  • You mean the other reply you gave me where you either misquoted it or you misunderstood the study? And you artificially limited the scope to a single kind of hurt which wouldn’t even capture the kind of hurt we’re discussing here?
    Actually I tried to find the study that you’re talking about and I can’t find it. Did he actually do a study on this? Afaict he is just a self-help author. I cant even find any formal education related to the subject.

    Meanwhile if you do a quick search for if unresolved trauma leads to violence, you see a ton of research supporting that.
















  • 1984 got the characters and the setting, but not the plot. WTF weirding modules?!?!

    2000 got the plot, but not the characters or setting. Why is Paul a spoiled little crybaby? Why is Mortal Kombat happening in a desert temple?

    I prefer the 1984 because although it absolutely demolished the plot, between the acting, set designs, costume, and directing, it still salvaged an entertaining movie.
    2000 miniseries just had me screaming at the characters in between scoffing at the atrocious costumes and direction.



  • Switch is good if you only need to compare equals when selecting a value.
    Although some languages make it way more powerful, like python match.
    but I generally dislike python despite of this, and I generally dislike switch because the syntax and formatting is just too unlike the rest of the languages.

    Generally I prefer the clear brevity of:

    var foo=
        x>100 ? bar :
        x>50 ? baz :
        x>10 ? qux :
        quux;
    

    Over

    var foo;
    if(x>100) {
        foo=bar;
    } else if(x>50) {
        foo=baz;
    } else if(x>10) {
        foo=qux;
    } else {
        foo=quux;
    }
    

    Which doesn’t really get any better if you remove the optional (but recommended) braces.
    Heck, I even prefer ternary over some variations of switch for equals conditionals, like the one in Java:

    var foo;
    switch(x) {
    case 100:
        foo=bar;
        break;
    case 50:
        foo=baz;
        break;
    case 10:
        foo=qux;
        break;
    default:
        foo=quux;
    }
    

    But some languages do switch better than others (like python as previously mentioned), so there are certainly cases where that’d probably be preferable even to me.