Am baby

My code is disgusting 🫠

But I’m getting better every day!

  • finitebanjo@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    9 hours ago

    POV: People looking through the comments on my code:

        // This fucking piece of shit right here, I tried like 8 versions of the Library and only this one works which was incompatible with some other shit that's not here anymore
    
        // and I have no fucking clue why it needs to be divided by 3 but it does even though its supposed to be a memory stream, I have a flag set here if it crashes because I'm just about certain there will eventually be some undefined behavior
    
       //EDIT 07-15 :  I have commented it out because I noticed everything actually runs fine without it, for now.
    
        // EDIT 07-18 : Oh actually it appears that the other solution which didn't use to work is now working which is why everything appears to work as long as both solutions to this problem don't simultaneously fail.
    
        //  EDIT 09-02 : I need to start making comments like "this variable comes from" or "I named it this because" so I know what the fuck I'm looking at.
    
  • GreenKnight23@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    7 hours 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.

  • BeeegScaaawyCripple@lemmy.world
    link
    fedilink
    arrow-up
    14
    ·
    1 day 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.

    • Buddahriffic@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      edit-2
      17 hours 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
        4
        ·
        23 hours 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

  • palordrolap@fedia.io
    link
    fedilink
    arrow-up
    3
    ·
    21 hours ago

    Most of my stuff is badly hacked together “runs on my machine” code. If I released any of it onto a public repository, I’d then be on the hook for maintaining it and making it run on more than just my machine, or else examining, deconflicting, and merging pull requests where other people have done the work. I really don’t have what it takes for all that.

  • criticon@lemmy.ca
    link
    fedilink
    arrow-up
    59
    ·
    2 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!

  • saltnotsugar@lemmy.world
    link
    fedilink
    arrow-up
    48
    ·
    2 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!

  • ViatorOmnium@piefed.social
    link
    fedilink
    English
    arrow-up
    20
    ·
    1 day 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.

  • perishthethought@piefed.social
    link
    fedilink
    English
    arrow-up
    19
    ·
    2 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
        4
        ·
        1 day 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.

  • ZILtoid1991@lemmy.world
    link
    fedilink
    arrow-up
    7
    ·
    1 day ago

    Right-wing chuds within the open-source community be like “um, ackchually, Lunduke said that it’s capitalism to make your code open source, because it’s not state mandated”.