• 0 Posts
  • 13 Comments
Joined 2 years ago
cake
Cake day: June 22nd, 2023

help-circle

  • In the short term it has and will, while we have low hanging fruit we can tackle, stuff like insulating houses, not burning fossil fuels, and taxing carbon output so that commercial / industrial processes take it into account has all lead to reductions, but those won’t last forever. I mean, now that Solar / Wind are cheaper than fossil fuels, a carbon tax alone no longer incentivizes reductions in energy use since energy and carbon output have been decoupled.

    Once we finished doing those basic things that we should have been doing for decades, per capita energy use will trend back up, and overall energy use has still been trending upwards this whole time anyways due to population growth.


  • masterspace@lemmy.catoProgrammer Humor@lemmy.mlEvil Ones
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    22 hours ago

    Yes, it most literally and inarguably is:

    https://www.iso.org/standard/71616.html

    Page 3 of INTERNATIONAL STANDARD

    • ISO/IEC 21778 - Information technology — The JSON data interchange syntax

    8 Numbers A number is a sequence of decimal digits with no superfluous leading zero. It may have a preceding minus sign (U+002D). It may have a fractional part prefixed by a decimal point (U+002E). It may have an exponent, prefixed by e (U+0065) or E (U+0045) and optionally + (U+002B) or – (U+002D). The digits are the code points U+0030 through U+0039.




  • masterspace@lemmy.catoProgrammer Humor@lemmy.mlEvil Ones
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    1 day ago

    Because that object is of a type where that member may or may not exist. That is literally the exact same behaviour as Java or C#.

    If I cast or type check it to make sure it’s of type Bar rather than checking for the member explicitly it still works:

    And when I cast it to Foo it throws a compile time error, not a runtime error:






  • masterspace@lemmy.catoProgrammer Humor@lemmy.mlEvil Ones
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    2
    ·
    3 days ago

    Pretty much the only language that handles this worse is Python (and maybe Lua? I don’t really know much about Lua though).

    This is the case for literally all interpreted languages, and is an inherent part of them being interpreted.

    However, while I recognize that can happen, I’ve literally never come across it in my time working on Typescript. I’m not sure what third party libraries you’re relying on but the most popular OAuth libraries, ORMs, frontend component libraries, state management libraries, graphing libraries, etc. are all written in pure Typescript these days.


  • masterspace@lemmy.catoProgrammer Humor@lemmy.mlEvil Ones
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    18
    ·
    edit-2
    3 days ago

    Honestly the meme of ‘JavaScript bad’ is so tired and outdated it’s ridiculous. It made sense 14 years ago before invention of Typescript and ES5/6+, but these days it basically just shows ignorance or the blind regurgitation of a decade old meme.

    Typescript is hands down the most pleasant language to work in, followed closely by the more modern compiled ones like Go, Swift, C#, and miles ahead of widely used legacy ones like Java, and PHP etc. and the white space, untyped, nightmare that is python.

    I’m like 99% sure that it’s just because JavaScript / Typescript is so common that for anyone who doesn’t start with it, it’s the second language they learn, and at that point they’re just whiny and butthurt about learning a new language.


  • masterspace@lemmy.catoProgrammer Humor@lemmy.mlEvil Ones
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    6
    ·
    3 days ago

    Lol name one outside of it’s well known equality rules that linters check for.

    Also, name the language you think is better.

    Because for those of us who have coded in languages that are actually bad, hearing people complain about triple equals signs for the millionth time seems pretty lame.