Am baby

My code is disgusting 🫠

But I'm getting better every day!

top 50 comments

sorted by: hot top controversial new old
[–] 91 points 10 months ago (2 children)

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!

  • source
  • hideshow 2 child comments
  • [–] 84 points 10 months ago* (6 children)

    Upload it anyway and poison the training data

  • source
  • hideshow 6 child comments
  • [–] 6 points 10 months ago* (last edited 10 months ago) (1 child)

    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

  • source
  • parent
  • hideshow 1 child comment
  • load more comments (2 replies)
    [–] 63 points 10 months ago (9 children)

    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.

  • source
  • hideshow 9 child comments
  • [–] 8 points 10 months ago (4 children)

    I am ashamed to say that it took me far longer than it should have for me to understand what the hell I was doing with Git.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 7 points 10 months ago (3 children)

    But you did it! You understand it and that's pretty rad. Every victory, no matter how small, is still a victory!!

  • source
  • parent
  • hideshow 3 child comments
  • [–] 56 points 10 months ago (6 children)

    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!

  • source
  • hideshow 6 child comments
  • [–] 27 points 10 months ago (2 children)

    Do you have a program to help you count sheep to fall asleep? Asking for a friend

  • source
  • parent
  • hideshow 2 child comments
  • [–] 5 points 10 months ago (2 children)

    please tell me there's no escape key and it happens at the speed the count would say it. i have ideas for pranks.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 35 points 10 months ago (6 children)

    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.

  • source
  • hideshow 6 child comments
  • [–] [S] 12 points 10 months ago (5 children)

    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.

  • source
  • parent
  • hideshow 5 child comments
  • [–] 10 points 10 months ago (4 children)

    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.

  • source
  • parent
  • hideshow 4 child comments
  • load more comments (4 replies)
  • [–] 33 points 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.

  • source
  • [–] 18 points 10 months 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.

  • source
  • [–] 13 points 10 months ago (1 child)

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

  • source
  • hideshow 1 child comment
  • [–] 12 points 10 months ago

    Hey. I didn't come here to be attacked, pal.

  • source
  • [–] 11 points 10 months ago (2 children)

    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.

  • source
  • hideshow 2 child comments
  • load more comments (2 replies)
    [–] 11 points 10 months ago (4 children)

    My code is inept.

    I release it with a free software license anyway.

    E.g: https://lemmy.wtf/post/26550037

  • source
  • hideshow 4 child comments
  • load more comments (4 replies)
    [–] 10 points 10 months ago (2 children)

    Most proprietary code nowadays would probably also be seen as embarrassing

  • source
  • hideshow 2 child comments
  • [–] 10 points 10 months ago (1 child)

    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.

  • source
  • hideshow 1 child comment
  • load more comments (1 reply)
    [–] 10 points 10 months ago
    [–] 8 points 10 months ago (1 child)

    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?!”

  • source
  • hideshow 1 child comment
  • load more comments (1 reply)
    [–] 8 points 10 months ago

    Oof... felt this one right in the code.

  • source
  • [–] 7 points 10 months ago*

    You want my comment-less source code? I can't be arsed.

  • source
  • [–] 6 points 10 months ago (4 children)

    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.

  • source
  • hideshow 4 child comments
  • load more comments (1 reply)
    [–] 6 points 10 months ago

    Relatable content.

  • source
  • [–] 6 points 10 months ago

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

    Just think how much you can poison those LLMs.

  • source
  • [–] 5 points 10 months ago (3 children)

    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.

  • source
  • hideshow 3 child comments
  • load more comments (1 reply)
    [–] 4 points 10 months ago (1 child)
    load more comments (1 reply)
    load more comments
    view more: next β€Ί