Paulo's Lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
ElCanut@jlai.lu to Programmer Humor@programming.dev · 6 months ago

Different philosophies

jlai.lu

message-square
21
link
fedilink
5

Different philosophies

jlai.lu

ElCanut@jlai.lu to Programmer Humor@programming.dev · 6 months ago
message-square
21
link
fedilink
alert-triangle
You must log in or register to comment.
  • Kushan@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    6 months ago

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

  • samus12345@lemm.ee
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    6 months ago

    You know, I always wondered what the original image looked like, and even trusty Know Your Meme doesn’t show it. It looked like this:

  • TomasEkeli@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    6 months ago

    a compile-time error is highly preferable to a run-time error

  • UnfortunateShort@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    6 months 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.

  • DannyBoy@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    1
    ·
    6 months ago

    You wouldn’t typecast a car.

    • mogranja@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      6 months ago

      What about typecasting to a car?

    • qarbone@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      6 months 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.

  • HexesofVexes@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    6 months 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

  • ℍ𝕂-𝟞𝟝@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    1
    ·
    6 months ago

    You don’t even need to cast in Python, a reference is a reference.

  • Diplomjodler@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    6 months ago

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

    • plunged_ewe@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      6 months ago

      For the Brits, it’s a Vauxhall Corsa.

      • Ⓜ3️⃣3️⃣ 🌌@lemmy.sdf.org
        link
        fedilink
        arrow-up
        1
        ·
        6 months ago

        For everyone : it’s a sh’tbox (never again)

  • KindaABigDyl@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    6 months ago

    And that’s why I don’t use Python for anything more than simple scripts

  • mlg@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    6 months ago

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

    • bleistift2@sopuli.xyz
      link
      fedilink
      English
      arrow-up
      1
      ·
      6 months ago

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

    • mindbleach@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      ·
      6 months ago

      1 + 1 = “11”.

      • Justas🇱🇹@sh.itjust.works
        link
        fedilink
        arrow-up
        1
        ·
        6 months ago

        [] + [] = “”

  • Limonene@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    6 months 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

    • SaharaMaleikuhm@feddit.org
      link
      fedilink
      arrow-up
      1
      ·
      6 months ago

      Please stop, I have CPTSD.

  • wewbull@feddit.uk
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    6 months ago

    Python doesn’t have casts and is strongly typed.

  • Moc@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    6 months ago

    Do we need any more proof Python is superior?

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

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 2.01K users / day
  • 4.18K users / week
  • 8.05K users / month
  • 19K users / 6 months
  • 1 local subscriber
  • 25K subscribers
  • 927 Posts
  • 17.6K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org