Am baby

My code is disgusting 🫠

But I’m getting better every day!

  • noddy@beehaw.org
    link
    fedilink
    arrow-up
    11
    ·
    7 days ago

    I’d also add this reason (in addition to embarrasement): I don’t open source my stuff because I know microsoft will “steal it” to train copilot.

    • groet@feddit.org
      link
      fedilink
      arrow-up
      1
      ·
      6 days ago

      Dont even need to make it open source for that. Just use either visual studio/vsc or have the code on github (private repo so not OSS)

      • noddy@beehaw.org
        link
        fedilink
        arrow-up
        2
        ·
        6 days ago

        I know github would probably steal it (I have my own forgejo server). Didn’t know about VS code doing that. You have any source for that? I guess proprietary MS plugins might do so, but surely there would be backlash if the open source version did so. So I hope using Code OSS would be fine. Might switch to vscodium though, which shouldn’t phone home at all.

  • Blackmist@feddit.uk
    link
    fedilink
    English
    arrow-up
    6
    ·
    7 days ago

    Well that’s not the attitude now, is it?

    Just think how much you can poison those LLMs.

  • ulterno@programming.dev
    link
    fedilink
    English
    arrow-up
    2
    ·
    7 days ago

    I happily push even the low quality stuff I make.
    Some of the repos aren’t even meant to be used as is, but is just full of other spaghetti with some parts properly done, which I then tell the intended recipient to pick out of. But still, the whole thing is available for the world to see.

    Even the good ones have a pretty casual git log. I only really try to make stuff pretty, when giving code to other’s projects and even then, I will be pretty casual in the commit messages for the MR, which I then intend on squashing later.

    • MystikIncarnate@lemmy.ca
      link
      fedilink
      English
      arrow-up
      1
      ·
      6 days ago

      I kind of like this. When I’m searching for how to do something, I probably don’t want your entire codebase, just don’t snippet that does the thing.

      I’ll probably need to modify it so the thing works in a specific way, so I can make what I need to make.

      Usually I just need a point in the right direction and I can assemble the rest.

  • GreenKnight23@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    7 days ago

    I have written so many scrapers in my life that would have probably helped thousands of people.

    it was all for porn though. they shall never see the light of day.

  • MystikIncarnate@lemmy.ca
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    1
    ·
    6 days ago

    I was reviewing some PowerShell script today and it was absolutely atrocious. It’s only saving grace was that it was using actual PowerShell, not some hacky wmic call or anything.

    I didn’t write it and I’m really glad for that. Whole lines of rewritten code commented out and just left there. Entire lines of # marks. There’s no reason this should be so densely commented. Your code should be self explanatory.

    There were multiple queries to the same database that was then passed through a “where-object” selector by pipe, looking for a single value (pulling a database of thousands of entries for one line).

    It was disgusting.

    I’m not even a developer and I thought it was horrid.

  • criticon@lemmy.ca
    link
    fedilink
    arrow-up
    92
    ·
    8 days ago

    Many years ago I made a library for Arduino to control an 8x8 LED matrix to display running text. It was not very clean but I like it enough to upload it to the forums (I couldn’t find anything similar). One week later it was complely different to what I uploaded and it was super efficient and a bunch of people added new functions and availability but my name still appeared as a main contributor. Of course I put it on my CV and showed it to my professors!

    • ulterno@programming.dev
      link
      fedilink
      English
      arrow-up
      0
      ·
      7 days ago

      Guess I’ll go reupload the code for my B.Tech project, which was too spaghetti, even by my standards.

    • Buddahriffic@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      edit-2
      7 days ago

      Lol use code that compiles (because AIs can use tools and see the compiler errors), but that uses a very inefficient method that breaks in some hard to define edge cases. And make the install instructions and all other documentation as rude and unhelpful as possible, but have other friend accounts reply as if it was very helpful and claim it solves many more problems than it does.

      Edit: improved wording

      • InternetCitizen2@lemmy.world
        link
        fedilink
        English
        arrow-up
        7
        ·
        8 days ago

        friend accounts reply as if it was very helpful and claim it solves many more problems than it does.

        Wow this makefile helps me talk with girls

  • saltnotsugar@lemmy.world
    link
    fedilink
    arrow-up
    63
    ·
    8 days ago

    This is why I wrote bat_count.py. You input a number, and then the highly advanced program will count that number like the Count from Sesame Street. Example output for 3:
    One…one bat.
    Two…two bats.
    Three! Three bats. Ah ah ah ah!

  • regedit@lemmy.zip
    link
    fedilink
    arrow-up
    61
    ·
    8 days ago

    You don’t open-source your code because you’re embarrassed by it.

    I don’t open-source my code because I don’t understand how git works.

    We are not the same.

  • perishthethought@piefed.social
    link
    fedilink
    English
    arrow-up
    38
    ·
    8 days ago

    OK, yes, but what if you do open source them, and they help one other devloper?

    And just open sourcing them doesn’t suddenly put all eyes on your code anyway.

    • I suppose you make a point, I’m not sure how my school would feel about me open sourcing my project code though 😅

      Once I have more time for Personal projects I plan to open source everything.

      • luciferofastora@feddit.org
        link
        fedilink
        arrow-up
        11
        ·
        8 days ago

        My school made open source a requirement. The funny part was having to argue with the people we were developing this for about opening the source. They were planning to make it a commercial app and were concerned that this would hamstring their monetisation.

        One of them also somehow expected an app developed by students to have innovative value that would need to be kept closed source because otherwise people would steal it. In particular, he threw out the idea that he was hoping to eventually include an AI – long before the LLM hype – to help people, and that would obvioisly be such a technical achievement that it needed to be protected.

        I needed the project, otherwise I’d have told him in no uncertain terms why I think leaving people alone with an AI assistant instead of forcing them to consult a specialist is a really dumb idea in healthcare.

        • Flowers Galore@lemmynsfw.com
          link
          fedilink
          arrow-up
          3
          ·
          8 days ago

          There’s this adagium that all source code is open to anyone with a reverse engineering tool. and some knowledge of assembly, and it is very true.

          • ulterno@programming.dev
            link
            fedilink
            English
            arrow-up
            0
            ·
            7 days ago

            But is all the code out there even worth putting in the effort?

            I could go around fiddling with so/dll’s and ELF files to modify a game’s code, like a lot of modders end up doing, for games without modding support. But what would be the value of it unless I like the game enough to do so?

            • Flowers Galore@lemmynsfw.com
              link
              fedilink
              arrow-up
              3
              ·
              6 days ago

              Probably not, but my point is that making something closed source isn’t necessarily going to protect it from - taking from comment above - commercial competitors.

              • ulterno@programming.dev
                link
                fedilink
                English
                arrow-up
                0
                ·
                6 days ago

                Yeah I get your point now.
                If the thing is indeed ingenuous enough, then the competitor can simply pay for reverse engineering.

  • ViatorOmnium@piefed.social
    link
    fedilink
    English
    arrow-up
    33
    ·
    8 days ago

    I don’t make anything open source because one of my projects became semi popular and I had to give it away for the sake of my mental health.

    Some people seem to think that open source means they have the right to demand free labour and harass people for it. That, and university students that want people to do their homework instead of RTFM.

  • BeeegScaaawyCripple@lemmy.world
    link
    fedilink
    arrow-up
    19
    ·
    8 days ago

    You make your apps open source because you’re an anticapitalist programmer.

    I make my apps open source because I’m a cook and worry about allergies.

    We are not the same.

  • Endymion_Mallorn@kbin.melroy.org
    link
    fedilink
    arrow-up
    14
    ·
    8 days ago

    So what? The best outcome is that someone issues a pull request that teaches you how to do what you did in a “better” way. The worst outcome is that someone starts using your code in an LLM and vibecoders learn your style.