• 0 Posts
  • 13 Comments
Joined 11 months ago
cake
Cake day: July 31st, 2023

help-circle

  • Konlanx@feddit.detoProgrammer Humor@lemmy.mlWith PieMixin
    link
    fedilink
    arrow-up
    25
    ·
    edit-2
    7 months ago

    This is likely referring to TypeScript.

    TypeScript has all of these patterns, they are used very frequently and they are necessary because TypeScript tends to be interesting from time to time since its types only exist at compile time, because it compiles to JavaScript, which is a language without types.

    TypeScript also allows any as a keyword, which says “I don’t know which type this is and I don’t care”, which still produces valid JavaScript. To get back to typed variables it is necessary to use typeof (or similar constructs like a type guard).

    https://www.typescriptlang.org/docs/handbook/2/typeof-types.html





  • Konlanx@feddit.detoich_iel@feddit.deich🍯iel
    link
    fedilink
    Deutsch
    arrow-up
    8
    ·
    10 months ago

    Was sind denn deiner Meinung nach “richtige Klimaprotestaktionen” und wieso machen sie diese kaputt? Magst du vielleicht auch begründen, wie du zu deinen Aussagen kommst? Denn “es ist nicht witzig” ist ja absolut subjektiv.

    Ich habe nämlich das Gefühl, dass die Letzte Generation dich schon ziemlich triggert, was ja für die Wirksamkeit sprechen würde.


  • Konlanx@feddit.detoich_iel@feddit.deich🍯iel
    link
    fedilink
    Deutsch
    arrow-up
    23
    arrow-down
    2
    ·
    10 months ago

    Die letzte Generation tut das nicht, weil sie es witzig findet und die Tatsache, dass sie versuchen etwas zu ändern um uns allen das Leben zu retten, empfinde ich nicht als lächerlich.

    Sich der Gefahr und Dringlichkeit nicht bewusst zu sein ist hingegen äußerst lächerlich.







  • JS !== Java

    Try Javascript some day!

    • We have truthy and falsy! Empty string or null? Yeah, that’s false!
    • Of course we can parse a string to number, but if it’s not a number it’s NaN!
    • null >= 0 is true!
    • Assign a variable with =, test type equality with == and test actual equality with ===. You will NEVER use the wrong amount of = anywhere, trust me!
    • Our default sort converts everything to string, then sorts by UTF-16 code. So yes, [1, 10, 3] is sorted and you are going to live with it.
    • True + true = 2. You know I’m right.

    Try Javascript today!