szmer
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
MasterNerd@lemm.ee to Programmer Humor@lemmy.ml · 4 months ago

Labels go brrrr

lemm.ee

message-square
23
fedilink
174

Labels go brrrr

lemm.ee

MasterNerd@lemm.ee to Programmer Humor@lemmy.ml · 4 months ago
message-square
23
fedilink
alert-triangle
You must log in or # to comment.
  • zenforyen@feddit.org
    link
    fedilink
    arrow-up
    38
    arrow-down
    2
    ·
    4 months ago

    Python with type hints and mypy and ruff = <3

    Large Python codebase without types = nightmare

    • smiletolerantly@awful.systems
      link
      fedilink
      arrow-up
      14
      ·
      4 months ago

      I’m too lazy to insert the “look what they need to mimic a fraction of our power” meme here, so… Please imagine it instead.

      I’m switching jobs in a couple of months, and I am SO glad to be leaving a (very well maintained!!) python codebase with type hints and mypy for a rust codebase.

      It is just not the same.

      • zenforyen@feddit.org
        link
        fedilink
        arrow-up
        4
        ·
        edit-2
        4 months ago

        Nice! I’d love to use Rust at work, I was a Haskell guy for hobby things, rather recently switched to Rust for that, and I enjoy it a lot. Taking 80% of the good lessons from functional programming while staying performant and practical and just have nice tooling - whoever designed Rust are wise people who know what is important for happy developers.

        My job is mainly C++, and if you have seen the bright side of life, it is difficult not to be frustrated by the language and tooling. I think C++ without clang-tidy is almost as horrible as Python without types and linters. Undefined behavior and foot guns everywhere!

        • smiletolerantly@awful.systems
          link
          fedilink
          arrow-up
          1
          ·
          4 months ago

          Oh yeah rust tooling is insanely good ootb

  • Telorand@reddthat.com
    link
    fedilink
    arrow-up
    34
    ·
    4 months ago

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

    • PotatoesFall@discuss.tchncs.de
      link
      fedilink
      arrow-up
      21
      ·
      4 months ago

      I love duck typing! dynamic typing is my issue…

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

        👆 This.

  • Magister@lemmy.world
    link
    fedilink
    arrow-up
    25
    ·
    4 months ago

    nasm? the x86 assembler from the 90s?

  • CanadaPlus@lemmy.sdf.org
    link
    fedilink
    arrow-up
    16
    ·
    edit-2
    4 months ago

    Eh, strict typing makes debugging way, way easier. Saint Grace brought us compilers for a reason. If all you have is assembly, you should start writing one.

    • fschaupp@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      4 months ago

      Ferris smirking You sure?

  • xthexder@l.sw0.com
    link
    fedilink
    arrow-up
    14
    ·
    4 months ago

    For NASA, data types don’t matter when you’re programming Voyager 1 and 45 years later it gets hit by an energy burst causing 3% of the RAM to become unusable, and it’s transmitting gibberish. It’s awesome they were able to recover it.

  • garlicandonions@lemmy.world
    link
    fedilink
    arrow-up
    7
    ·
    4 months ago

    It’s documentation. I’m a strickler to type in python so later when I look at my code and go what does this do it’s easier.

  • SchwertImStein@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    9
    arrow-down
    3
    ·
    4 months ago

    juniorest of memes

    • MasterNerd@lemm.eeOP
      link
      fedilink
      arrow-up
      6
      arrow-down
      6
      ·
      4 months ago

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

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

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

      C’mon, it’s 2025!

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

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

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

        Just a snippet from a bigger function.

  • bodaciousFern@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    3
    ·
    4 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 🥲

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

    Not sure I’ve ever heard of nasm

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

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

  • laserm@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    3 months ago

    Time to rewrite the world in assembly

  • HStone32@lemmy.world
    link
    fedilink
    arrow-up
    1
    arrow-down
    1
    ·
    3 months ago

    Data types do matter, and someone’s got to declare them at some point, or else your compiler won’t know how to intepret them. It’s just a question of who should be doing the declaring: you, or a parser algorithm? Personally, I don’t like things being done for me.

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.

  • 104 users / day
  • 1.13K users / week
  • 2.82K users / month
  • 8.52K users / 6 months
  • 41 local subscribers
  • 37.5K subscribers
  • 1.94K Posts
  • 37.8K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.6
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org