minigubben's lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
MasterNerd@lemm.ee to Programmer Humor@lemmy.ml · 2 months ago

Labels go brrrr

lemm.ee

message-square
17
fedilink
  • cross-posted to:
  • programmer_humor@programming.dev
94

Labels go brrrr

lemm.ee

MasterNerd@lemm.ee to Programmer Humor@lemmy.ml · 2 months ago
message-square
17
fedilink
  • cross-posted to:
  • programmer_humor@programming.dev
alert-triangle
You must log in or # to comment.
  • Telorand@reddthat.com
    link
    fedilink
    arrow-up
    24
    ·
    2 months ago

    Fr, though, duck typing in Python is one of my biggest annoyances.

    • PotatoesFall@discuss.tchncs.de
      link
      fedilink
      arrow-up
      13
      ·
      2 months ago

      I love duck typing! dynamic typing is my issue…

      • Ethan@programming.dev
        link
        fedilink
        English
        arrow-up
        3
        ·
        2 months ago

        “Assume it’s a map and treat like a map and then catch the type error if it’s not.” Paraphrased from actual advice by Guido on how you should write Python. Python isn’t a bad language but the philosophy that comes along with it is so fucked.

        • ZephyrXero@lemmy.world
          link
          fedilink
          English
          arrow-up
          2
          ·
          2 months ago

          This is just preferring runtime validation instead of compile time validation.

      • darklamer@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        1
        arrow-down
        1
        ·
        2 months ago

        👆 This.

  • Magister@lemmy.world
    link
    fedilink
    arrow-up
    19
    ·
    2 months ago

    nasm? the x86 assembler from the 90s?

  • zenforyen@feddit.org
    link
    fedilink
    arrow-up
    14
    arrow-down
    1
    ·
    2 months ago

    Python with type hints and mypy and ruff = <3

    Large Python codebase without types = nightmare

  • livingcoder@programming.dev
    link
    fedilink
    arrow-up
    7
    arrow-down
    1
    ·
    2 months ago

    When I learned Python I thought that not having a statically typed language was the way to go, but then it just became an issue when I was trying to ensure that everything was at least something like what I was expecting. Going back to statically typed languages even harder with Rust has been a dream. I love it.

  • renegadespork@lemmy.jelliefrontier.net
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    2 months ago

    let comment: String = String::from(“lol”);
    println!(“{}”, comment);

    • Bogasse@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      2 months ago
      println!("{comment}");
      

      C’mon, it’s 2025!

    • spacecadet@lemm.ee
      link
      fedilink
      arrow-up
      1
      ·
      2 months ago

      Not inside a main function, won’t pass rust compiler check

      • renegadespork@lemmy.jelliefrontier.net
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 months ago

        Just a snippet from a bigger function.

  • Midnitte@beehaw.org
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    2 months ago

    Not sure I’ve ever heard of nasm

    • darklamer@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      3
      ·
      2 months ago

      https://en.wikipedia.org/wiki/Netwide_Assembler

  • bodaciousFern@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    1
    ·
    2 months ago

    I was actually tempted to try learning nasm for funsies a year or two ago until I discovered it doesn’t support ARM processors 🥲

    • Ethan@programming.dev
      link
      fedilink
      English
      arrow-up
      6
      arrow-down
      1
      ·
      2 months ago

      Assembly languages are always architecture specific. Thats kind of their defining feature. Assembly is readable machine code.

      • h4x0r@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 months ago

        nasm is an assembler though, not a ‘languages’, that only supports x86/x64. gas for example supports a wide range of architectures so you can write risc-v, arm, x64, etc.

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

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: !programmerhumor@lemmy.ml

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

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

  • 723 users / day
  • 723 users / week
  • 915 users / month
  • 3.62K users / 6 months
  • 2 local subscribers
  • 36.2K subscribers
  • 1.73K Posts
  • 35.8K Comments
  • Modlog
  • mods:
  • cat_programmer@lemmy.ml
  • AgreeableLandscape@lemmy.ml
  • BE: 0.19.7
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org