Am baby

My code is disgusting 🫠

But I’m getting better every day!

  • finitebanjo@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    3 days 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.
    
  • ch00f@lemmy.world
    link
    fedilink
    arrow-up
    12
    ·
    4 days ago

    Trust me, there’s someone just starting out, and you got them 90% of the way there, and they will humbly submit a fix for your code with zero judgement.

    That someone is me, because I have no idea what I’m doing.

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

  • ulterno@programming.dev
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 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
      ·
      2 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.

  • Endymion_Mallorn@kbin.melroy.org
    link
    fedilink
    arrow-up
    13
    ·
    4 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.

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

  • BeeegScaaawyCripple@lemmy.world
    link
    fedilink
    arrow-up
    18
    ·
    3 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.

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

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

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

    Just think how much you can poison those LLMs.

  • Petter1@discuss.tchncs.de
    link
    fedilink
    arrow-up
    8
    ·
    3 days 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?!”

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

      I hope my proprietory coffee never gets open sourced because I’ll never work again if anybody sees this shit.

      • Digit@lemmy.wtf
        link
        fedilink
        English
        arrow-up
        2
        arrow-down
        1
        ·
        2 days 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.

    • kadu@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      2 days ago

      Author(s): Digit (Directing Claude Sonnet 4.0, Mistral, Qwen, opencode (grok), and more)

      Oooof

  • regedit@lemmy.zip
    link
    fedilink
    arrow-up
    57
    ·
    3 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.