1040

Am baby

My code is disgusting 🫠

But I'm getting better every day!

top 50 comments
sorted by: hot top controversial new old
[-] criticon@lemmy.ca 97 points 2 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!

[-] ArsonButCute@lemmy.dbzer0.com 42 points 2 months ago

This is encouraging!

[-] Landless2029@lemmy.world 12 points 2 months ago

This is a fantastic example of the benefits of open source and contributions

[-] InternetCitizen2@lemmy.world 87 points 2 months ago* (last edited 2 months ago)

Upload it anyway and poison the training data

[-] Zoomboingding@lemmy.world 24 points 2 months ago
[-] anomnom@sh.itjust.works 6 points 2 months ago

Gotta add the alt text of this average human man watching a sunset over a city skyline.

[-] Buddahriffic@lemmy.world 6 points 2 months ago* (last edited 2 months 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 8 points 2 months 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

load more comments (2 replies)
[-] saltnotsugar@lemmy.world 64 points 2 months 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!

[-] troyunrau@lemmy.ca 32 points 2 months ago

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

[-] Lemminary@lemmy.world 8 points 2 months ago

Kids these days want everything digital. Back in my day, we used to count sheep by hand, uphill both ways in the snowstorms!

[-] Honytawk@feddit.nl 10 points 2 months ago

But do AI dream of digital sheep?

[-] HeyThisIsntTheYMCA@lemmy.world 5 points 2 months ago

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

[-] saltnotsugar@lemmy.world 7 points 2 months ago

That’s correct. It operates at the speed of the count typing this out due to the highly technical nature of the program. There is also no limit so you could put ten billion in there for example.

[-] HeyThisIsntTheYMCA@lemmy.world 5 points 2 months ago

so how do we get this included in the next version of windows

[-] regedit@lemmy.zip 64 points 2 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.

[-] MonkderVierte@lemmy.zip 12 points 2 months ago

I have multiple 200+ loc shell scripts with their own little built-in changelog-parser because i rather did that than setting up the server i've built already.

[-] SatouKazuma@programming.dev 8 points 2 months ago

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.

[-] regedit@lemmy.zip 7 points 2 months ago

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

[-] SatouKazuma@programming.dev 6 points 2 months ago

That's one way of looking at it haha. Nice username btw.

[-] regedit@lemmy.zip 4 points 2 months ago

Thanks, haha. All your hives are belong to me!

load more comments (1 replies)
[-] biotin7@sopuli.xyz 4 points 2 months ago

I found this website, it helped me learn about Git in a quick way, it's not perfect, but hey at least no javascript😉

[-] regedit@lemmy.zip 4 points 2 months ago

Thanks. I'll try to check it out when my ADHD meds kick in here in a bit! (not sarcasm)

load more comments (1 replies)
[-] perishthethought@piefed.social 39 points 2 months 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.

[-] ArsonButCute@lemmy.dbzer0.com 14 points 2 months ago

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 11 points 2 months 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.

load more comments (4 replies)
[-] ViatorOmnium@piefed.social 34 points 2 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.

[-] HeyThisIsntTheYMCA@lemmy.world 19 points 2 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.

[-] db2@lemmy.world 15 points 2 months ago

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

[-] Endymion_Mallorn@kbin.melroy.org 14 points 2 months 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.

[-] ZILtoid1991@lemmy.world 13 points 2 months 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".

[-] ArsonButCute@lemmy.dbzer0.com 5 points 2 months ago

I used to watch Lunduke's linux Sucks speech every year it came out. What happened to that guy? Was he always the worst and I didn't notice til 2020?

[-] ch00f@lemmy.world 12 points 2 months 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.

load more comments (1 replies)
[-] hperrin@lemmy.ca 12 points 2 months ago
[-] noddy@beehaw.org 11 points 2 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.

load more comments (2 replies)
[-] Digit@lemmy.wtf 11 points 2 months ago

My code is inept.

I release it with a free software license anyway.

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

load more comments (4 replies)
[-] mycodesucks@lemmy.world 11 points 2 months ago

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

[-] FalschgeldFurkan@lemmy.world 11 points 2 months ago

Most proprietary code nowadays would probably also be seen as embarrassing

[-] jaybone@lemmy.zip 6 points 2 months ago

I’ve worked with proprietary code for 25 years that’s embarrassing.

load more comments (1 replies)
[-] Petter1@discuss.tchncs.de 9 points 2 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?!”

load more comments (1 replies)
[-] roofuskit@lemmy.world 8 points 2 months ago* (last edited 2 months ago)

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

[-] Blackmist@feddit.uk 6 points 2 months ago

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

Just think how much you can poison those LLMs.

[-] palordrolap@fedia.io 6 points 2 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.

[-] Korhaka@sopuli.xyz 10 points 2 months ago

GPL has no maintenance requirements

[-] palordrolap@fedia.io 7 points 2 months ago

The GPL doesn't control how guilty I'll feel if I don't.

[-] Korhaka@sopuli.xyz 5 points 2 months ago

Make your bad code public, it might help train an LLM

load more comments (1 replies)
[-] eemon@programming.dev 6 points 2 months ago

Relatable content.

[-] Xylight@lemdro.id 6 points 2 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.

[-] Petter1@discuss.tchncs.de 4 points 2 months ago

Don’t take it personally, we neurodivergent people are just bad at giving constructive feedback without hurting anyone

load more comments (1 replies)
load more comments (1 replies)
[-] blockheadjt@sh.itjust.works 4 points 2 months ago
load more comments (1 replies)
load more comments
view more: next ›
this post was submitted on 02 Dec 2025
1040 points (98.3% liked)

Programmer Humor

29672 readers
818 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS