tucson.social
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
narshee@iusearchlinux.fyi to Programmer Humor@lemmy.mlEnglish · 2 years ago

Finding a years old project be like

iusearchlinux.fyi

message-square
40
link
fedilink
380

Finding a years old project be like

iusearchlinux.fyi

narshee@iusearchlinux.fyi to Programmer Humor@lemmy.mlEnglish · 2 years ago
message-square
40
link
fedilink
alert-triangle
You must log in or register to comment.
  • 𝘋𝘪𝘳𝘬@lemmy.ml
    link
    fedilink
    English
    arrow-up
    71
    ·
    2 years ago

    Finding my own old projects: “What the hell did this guy do and why does it work?”

    • nicman24@kbin.social
      link
      fedilink
      arrow-up
      39
      ·
      2 years ago

      that is me with regex that I wrote from scratch like 5 mins ago

      • 𝘋𝘪𝘳𝘬@lemmy.ml
        link
        fedilink
        arrow-up
        20
        ·
        2 years ago

        “Finally! It works! I’ll never touch it again! I’ll just move it in a variable and–… WHYYYY???!?!11!”

        • fmstrat@lemmy.nowsci.com
          link
          fedilink
          arrow-up
          2
          ·
          2 years ago

          Its always the backslash before the forward slash. Every. Time.

      • d_k_bo@feddit.de
        link
        fedilink
        arrow-up
        12
        ·
        2 years ago

        That’s why I like to include a comment with a link to an example on regex101.com.

        • fmstrat@lemmy.nowsci.com
          link
          fedilink
          arrow-up
          3
          ·
          2 years ago

          This is so smart. I’m stealing this.

      • Bipta@kbin.social
        link
        fedilink
        arrow-up
        10
        ·
        2 years ago

        Commenting regex fucking sucks. There’s really no good approach.

        • Regular Human@lemmy.world
          link
          fedilink
          arrow-up
          7
          ·
          edit-2
          2 years ago

          // MAGIC?

          • nicman24@kbin.social
            link
            fedilink
            arrow-up
            2
            ·
            2 years ago

            https://github.com/nicman23/Automation-for-Molecular-Docking/blob/dc73355383fc3c9cb61df1f1ad4d2b1ba1a7001f/molport-downloader.sh#L13

            #date

      • tool@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 years ago

        Every regex that I write ends up looking like line noise or the holy tome to summon Chtulu.

  • nicman24@kbin.social
    link
    fedilink
    arrow-up
    38
    ·
    2 years ago

    bash is veeery old and it implements all of posix.

    • Noodlez@programming.dev
      link
      fedilink
      arrow-up
      21
      ·
      2 years ago

      Bash’s posix mode still has a lot of bashisms. The only way to test true posix compliance is to test with other shells like dash and ash. I have found this is the case a lot of time. People will say it’s POSIX compliant shell, but it’ll obviously only be tested in bash Like at that point just make it a bash script, since pretty much every system under the sun has it.

      • nicman24@kbin.social
        link
        fedilink
        arrow-up
        6
        ·
        2 years ago

        there is always shellcheck it points them out to you

      • QuazarOmega@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        2 years ago

        Oh hey, it really does!

    • narshee@iusearchlinux.fyiOP
      link
      fedilink
      arrow-up
      5
      arrow-down
      1
      ·
      2 years ago

      I was thinking about bash scripts that use bash specific builtins. Some of those require >= x version.

      • nicman24@kbin.social
        link
        fedilink
        arrow-up
        6
        ·
        2 years ago

        even <<< is like 10 years old

        • narshee@iusearchlinux.fyiOP
          link
          fedilink
          arrow-up
          6
          ·
          2 years ago

          Yeah. The only language I didn’t have the right version for in the past was python. I just wanted to make a joke about standards vs implementations.

  • d_k_bo@feddit.de
    link
    fedilink
    English
    arrow-up
    32
    ·
    2 years ago

    Rust has pretty strong stability guarantees. Backwards incompatible changes are only made using “editions” where every compiler version supports all previous editions and editions are fully interoperable.

    https://doc.rust-lang.org/stable/edition-guide/editions/index.html#what-are-editions

    • Gecko@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 years ago

      Also, you can just download an older version of the toolchain and use that to compile the project. If the project is properly setup it’ll tell you the toolchain version it used. If not you can probably guess by the time of the last commit ^^

  • Carlos Solís@communities.azkware.net
    link
    fedilink
    English
    arrow-up
    31
    ·
    2 years ago

    And don’t even get me started with C# and Node.js projects, chances are you will need to reimplement the entire application just to get the project out of vulnerable library versions.

    • doppelgangmember@lemmy.world
      link
      fedilink
      English
      arrow-up
      12
      ·
      2 years ago

      Ehem… I think you mean job security.

  • TheCee@programming.dev
    link
    fedilink
    English
    arrow-up
    19
    ·
    edit-2
    2 years ago

    install minor cc update

    compiler exploits undefined behavior as it always was technically allowed to

    Checkmate, Cniles!

  • Black616Angel@feddit.de
    link
    fedilink
    English
    arrow-up
    17
    arrow-down
    1
    ·
    2 years ago

    Better not pay in cash, if you’re so afraid of change, I mean.

    • optissima@lemmy.ml
      link
      fedilink
      arrow-up
      5
      ·
      2 years ago

      Why would someone who is afraid of change pay cash? Wouldn’t they be given change?

      • Black616Angel@feddit.de
        link
        fedilink
        arrow-up
        4
        arrow-down
        1
        ·
        2 years ago

        Yes. That is the joke.

      • Klame@lemmy.ml
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        Yep two other comments imply the change is moving toward paying with cash, with it is the opposite we are doing now?

      • fmstrat@lemmy.nowsci.com
        link
        fedilink
        arrow-up
        1
        arrow-down
        2
        ·
        2 years ago

        /c/whooosh anyone?

  • urpasswdistrash@lemmy.world
    link
    fedilink
    English
    arrow-up
    11
    ·
    2 years ago

    So true man

  • marcos@lemmy.world
    link
    fedilink
    English
    arrow-up
    8
    ·
    2 years ago

    It doesn’t matter what version of your dependencies you use if your code is always broken.

    (But anyway, C developers tend to avoid the older standards…)

  • 🇰 🌀 🇱 🇦 🇳 🇦 🇰 🇮 🏆@yiffit.net
    link
    fedilink
    English
    arrow-up
    7
    arrow-down
    1
    ·
    2 years ago

    Ew, used languages? Yuck! Gimme a brand, spanking new language, hot off the factory floor.

  • SubArcticTundra@lemmy.ml
    link
    fedilink
    English
    arrow-up
    6
    ·
    2 years ago

    Nothing like good old C with Classes

  • nomadjoanne@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    1
    ·
    2 years ago

    Call me antiquated, but I still don’t love Rust for these reasons. I don’t dislike it, and I recognize it solves some very real problems around memory management. Whether I like it or not it is probably the future… But Cargo is incredibly opinionated, essentially obligatory, the compiler is huge…

    It’s not something you could bootstrap on a glorified microcontroller running MINIX or something. I’ll just say that. And that’s something I really really love about C.

    • voxel@sopuli.xyz
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      2 years ago

      compiler is based on llvm and is relatively lightweight (llvm is the “huge” part which to be fair is also used in clang)

  • JoYo@lemmy.ml
    link
    fedilink
    English
    arrow-up
    3
    ·
    2 years ago

    these are the same picture.

  • HStone32@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    2 years ago

    Everything I’ll ever make will be done in C. Try and stop me.

  • SmoothSurfer@lemm.ee
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    2
    ·
    2 years ago

    I am sick of these meme. Of course we know c is better than python on many aspects but python is also. Lets say you are building… I an continuing, I hope you are capable of continuing it by yourself. Everyone knows which is better for their particular needs, so just let these memes go. We can be more creative with memes

    • miname@feddit.deB
      link
      fedilink
      English
      arrow-up
      13
      arrow-down
      2
      ·
      2 years ago

      No

  • SokathHisEyesOpen@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

    You can add PHP to the left picture. It doesn’t even require compile or special deployment pipelines.

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: [email protected]

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.

  • 61 users / day
  • 927 users / week
  • 2.99K users / month
  • 9.33K users / 6 months
  • 2 local subscribers
  • 37K subscribers
  • 1.76K Posts
  • 32.3K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org