• HexesofVexes
    link
    41 hour ago

    It works and is a pile of jank - Python

    It doesn’t work and is a pile of jank - C++

    You violated gods laws with how bad your code is and it still runs (right through the wall) - C

  • UnfortunateShort
    link
    32
    edit-2
    20 hours ago

    In bigger projects, you tend to miss type safety really bad, really fast. Rust has it built in, Python can have it bolted on. That’s simply one of the many aspects to consider when choosing your programming language.

    But don’t worry about it too much. If one thing’s for sure, it’s that you will regret that choice in any case.

  • Kushan
    link
    English
    951 day ago

    Rust is completely correct to be a dick about it as well. Type safety is there for a reason.

    • Ephera
      link
      fedilink
      English
      423 hours ago

      Yeah, gotta newtype it up to make it even more relentless.

  • @mlg
    link
    English
    601 day ago

    Hey at least it’s not JavaScript which is perpetually high on crack with Object object

    • @[email protected]
      link
      fedilink
      English
      824 hours ago

      Well, that happens when you don’t override the toString method. Not worse than Java’s 0xf00cu

    • @qarbone
      link
      English
      413 minutes ago

      I may be on the wrong side of history but I can’t see what other role a car could get in the film industry except vehicle.

    • @mogranja
      link
      917 hours ago

      What about typecasting to a car?

  • Diplomjodler
    link
    1181 day ago

    For our American friends: the Opel Corsa is a car.

  • @Moc
    link
    720 hours ago

    Do we need any more proof Python is superior?

    (I’m ^joking, ^I ^love ^Rust)

  • @Limonene
    link
    721 day ago

    C when I cast a char * * to a char * * const: ok

    C when I cast a char * * to a char * const *: ok

    C when I cast a char * * to a char const * *: WTF

    C when I cast a char * * to a char const * const *: ok

    • xep
      link
      fedilink
      361 day ago

      The WTF case isn’t allowed because it would allow modification of the const. From https://en.cppreference.com/w/cpp/language/implicit_conversion

      int main() { const char c = ‘c’; char* pc; char** ppc = &pc; const char** pcc = ppc; // Error: not the same as cv-unqualified char**, no implicit conversion. *pcc = &c; *pc = ‘C’; // If the erroneous assignment above is allowed, the const object “c” may be modified. }

    • @[email protected]
      link
      fedilink
      32 hours ago

      Look at mister “Sometimes I write programs that have more than a single niche function” over here

      This is a post about growing disappointment with Python

    • Elvith Ma'for
      link
      fedilink
      301 day ago

      If it’s loud, moving, can chase you and honks at you, then it’s an obnoxious goose a car

  • @[email protected]
    link
    fedilink
    English
    101 day ago

    Perl when I iterate over an object and treat the result as a hash reference: “fine, whatever. Fuck you, tho”