Am baby

My code is disgusting 🫠

But I’m getting better every day!

  • criticon ( criticon@lemmy.ca ) 
    link
    fedilink
    arrow-up
    69
    ·
    10 months 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!

  • Ænima ( regedit@lemmy.zip ) 
    link
    fedilink
    arrow-up
    45
    ·
    10 months 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.

      • 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.

  • ViatorOmnium ( ViatorOmnium@piefed.social ) 
    link
    fedilink
    English
    arrow-up
    29
    ·
    10 months 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.

      • Digit ( Digit@lemmy.wtf ) 
        link
        fedilink
        English
        arrow-up
        2
        ·
        10 months ago

        Whether people want it or not is beside the point.

        It’s a learning experience.

        And please don’t call me no one. I want it.

        (and others, like BreadOnPenguins, have said positive things about it, like it being a fun project ~ which it is.).

        ;D

        And, again, to the point, being capitalist or the code embarrassing, is not relevant criteria to releasing with a free software license.

        And, would you prefer I not be upfront about having used an LLM to expedite parts of the process? … Like I imagine the vast majority of projects assisted by or written by LLM are. Several of which you may be using without realising. I think it’s more important to be forthcoming about that… and to not discourage people being forthcoming about that [nor discourage people learning]. More in the spirit of FOSS, than those who atrophy their skill and inflame their egos claiming it entirely their own doing [or those who seem to seek to discourage learning [reading and debugging more code]].

        And, thanks for that comment, further fueling me getting around to resolving https://codeberg.org/Digit/fin/issues/58 too.

  • Petter1 ( Petter1@discuss.tchncs.de ) 
    link
    fedilink
    arrow-up
    8
    ·
    10 months ago

    Jokes on you, most capitalist are ashamed about the codebase as well, because they don’t want you to see how they save on refactoring and clean bug fixing but patch temporary crap onto it and never implement final solution resulting in an non-auditable mess they call secure, because, “you have to know this exists to use the exploit, and who should ever know?!”

  • noddy ( noddy@beehaw.org ) 
    link
    fedilink
    arrow-up
    7
    ·
    10 months 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.

      • noddy ( noddy@beehaw.org ) 
        link
        fedilink
        arrow-up
        2
        ·
        10 months 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.

  • Xylight‮ ( Xylight@lemdro.id ) 
    link
    fedilink
    English
    arrow-up
    6
    ·
    10 months ago

    Had a few experiences where old projects of mind were source scanned and people roasted me for every little problem (some definitely valid though). I rarely open source my little projects now.

      • andioop ( andioop@programming.dev ) 
        link
        fedilink
        English
        arrow-up
        4
        ·
        10 months ago

        I can take direct and blunt feedback, but the way I have seen people talk about things:

        [projectname] is dogshit

        makes me terrified to open repos. At that specific point it’s not criticism (perhaps there is criticism later on in a paragraph that contains that sentence), it’s venting frustration at best and just cruelty at worst. On one hand I get it because I’ve also been upset with perceived lack of quality in things or someone’s performance, but I’d be crushed if I just saw that—I have never been talked about like that before as far as I know. I can handle “your code is bad because X”. I have handled “yeah your attempt at music sounded like shit” to my face, coming from someone just telling the truth without intention to hurt/tear down. But from strangers online, whose intentions I do not know…

        On the other hand I have been told both in-person and here on programming.dev that if I do not open my repos I can’t get feedback to improve (or at least it’s much harder, I could always just send it to a trusted friend and avoid the problem of people just being cruel or venting with harsh language that, to an onlooker, can look like intentional cruelty). And I just saw in the comments that I can poison LLM training, so…

  • palordrolap ( palordrolap@fedia.io ) 
    link
    fedilink
    arrow-up
    6
    ·
    10 months 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.

  • vga ( vga@sopuli.xyz ) Banned
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    10 months ago

    I’m currently sitting on a codebase that’s perfectly ok and I have no reason not to open-source it, but it’s 95% generated by AI so I don’t know. Probably I’ll just use it myself like it was an embarrasing sex toy.

    Looking at github lately, it seems a lot of people don’t share my reservations.

  • MystikIncarnate ( MystikIncarnate@lemmy.ca ) 
    link
    fedilink
    English
    arrow-up
    1
    ·
    10 months 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.