Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
MasterNerd ( MasterNerd@lemm.ee )  to Programmer Humor@lemmy.ml · 2 years ago

Labels go brrrr

lemm.ee

message-square
22
link
fedilink
115

Labels go brrrr

lemm.ee

MasterNerd ( MasterNerd@lemm.ee )  to Programmer Humor@lemmy.ml · 2 years ago
message-square
22
link
fedilink
alert-triangle
You must log in or register to comment.
  • livingcoder ( livingcoder@programming.dev ) 
    link
    fedilink
    arrow-up
    23
    ·
    2 years 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.

  • Telorand ( Telorand@reddthat.com ) 
    link
    fedilink
    arrow-up
    22
    ·
    2 years ago

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

    • PotatoesFall ( PotatoesFall@discuss.tchncs.de ) 
      link
      fedilink
      arrow-up
      14
      ·
      2 years ago

      I love duck typing! dynamic typing is my issue…

      • Ethan ( firelizzard@programming.dev ) 
        link
        fedilink
        English
        arrow-up
        7
        ·
        2 years 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.

      • darklamer ( darklamer@lemmy.dbzer0.com ) deleted by creator
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        9 months ago

        deleted by creator

  • CanadaPlus ( CanadaPlus@lemmy.sdf.org ) 
    link
    fedilink
    arrow-up
    14
    ·
    2 years 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 ( fschaupp@lemmy.ml ) 
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      Ferris smirking You sure?

  • xthexder ( xthexder@l.sw0.com ) 
    link
    fedilink
    arrow-up
    9
    ·
    2 years 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.

  • zenforyen ( zenforyen@feddit.org ) 
    link
    fedilink
    arrow-up
    8
    ·
    2 years ago

    Python with type hints and mypy and ruff = <3

    Large Python codebase without types = nightmare

    • smiletolerantly ( smiletolerantly@awful.systems ) 
      link
      fedilink
      arrow-up
      7
      ·
      2 years 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 ( zenforyen@feddit.org ) 
        link
        fedilink
        arrow-up
        2
        ·
        2 years 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 ( smiletolerantly@awful.systems ) 
          link
          fedilink
          arrow-up
          1
          ·
          2 years ago

          Oh yeah rust tooling is insanely good ootb

  • SchwertImStein ( SchwertImStein@lemmy.dbzer0.com ) 
    link
    fedilink
    English
    arrow-up
    7
    ·
    2 years ago

    juniorest of memes

    • MasterNerd ( MasterNerd@lemm.ee ) OP
      link
      fedilink
      arrow-up
      4
      ·
      2 years ago

  • renegadespork ( renegadespork@lemmy.jelliefrontier.net ) 
    link
    fedilink
    English
    arrow-up
    6
    ·
    2 years ago

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

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

      C’mon, it’s 2025!

  • bodaciousFern ( bodaciousFern@lemmy.dbzer0.com ) 
    link
    fedilink
    arrow-up
    2
    ·
    2 years 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 ( firelizzard@programming.dev ) 
      link
      fedilink
      English
      arrow-up
      9
      ·
      2 years ago

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

      • h4x0r ( h4x0r@lemmy.dbzer0.com ) 
        link
        fedilink
        English
        arrow-up
        6
        ·
        2 years 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.

        • T. Hex ( 0x0@lemmy.dbzer0.com ) 
          link
          fedilink
          arrow-up
          2
          ·
          2 years ago

          Are you arguing that assembly languages are not architecture-specific? I don’t think that’s the typical definition.

          Nasm is an assembler, but it also represents a specific assembly language targeting x86 architectures.

          Gas is an assembler of a higher order. It can emit code for many architectures, and thus it accepts many different architecture-specific assembly languages.

        • Ethan ( firelizzard@programming.dev ) 
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 years ago

          nasm is an assembler though, not a ‘languages’

          That’s like saying “clang is a compiler though, not a language”. It’s correct but completely beside the point. Unless you’re writing a compiler, “cross platform assembler” is kind of an insane thing to ask for. If want to learn low level programming, pick a platform. If you are trying to write a cross-platform program in assembly, WHY!? Unless you’re writing a compiler. But even then, in this day and age using a cross-platform assembler is still kind of an insane way to approach that problem; take a lesson from decades of progress and do what LLVM did: use an intermediate representation.

        • MasterNerd ( MasterNerd@lemm.ee ) OP
          link
          fedilink
          arrow-up
          1
          ·
          2 years ago

          The reason I used the nasm logo is because Assembly itself doesn’t have a logo since it’s not really one language. This is the one I’m with the most familiar with so that’s the one I used. This meme would apply to any Assembly language.

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

    Not sure I’ve ever heard of nasm

    • darklamer ( darklamer@lemmy.dbzer0.com ) deleted by creator
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      9 months ago

      deleted by creator

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.

  • 1 user / day
  • 41 users / week
  • 42 users / month
  • 1.56K users / 6 months
  • 871 local subscribers
  • 43.7K subscribers
  • 1.25K Posts
  • 10.2K Comments
  • Modlog
  • mods:
  • AgreeableLandscape ( AgreeableLandscape@lemmy.ml ) deleted by creator
  • cat_programmer ( cat_programmer@lemmy.ml ) 
  • BE: 0.19.21
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code