Its actually because I'm a noob š
submitted by
https://lemmy.dbzer0.com/pictrs/image/4a4a1a2f-d92b-4cf3-8c97-539f8584bf8f.webp
Am baby
My code is disgusting š«
But Iām getting better every day!
p3x.de
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!
This is encouraging!
This is a fantastic example of the benefits of open source and contributions
Upload it anyway and poison the training data
Gotta add the alt text of this average human man watching a sunset over a city skyline.
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
Wow this makefile helps me talk with girls
Guess Iāll go reupload the code for my B.Tech project, which was too spaghetti, even by my standards.
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.
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.
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.
But you did it! You understand it and thatās pretty rad. Every victory, no matter how small, is still a victory!!
Thatās one way of looking at it haha. Nice username btw.
Thanks, haha. All your hives are belong to me!
Have at it. My hives are like my brain in that theyāre entirely void of any signs of intelligent life. š
I found this website, it helped me learn about Git in a quick way, itās not perfect, but hey at least no javascriptš
Thanks. Iāll try to check it out when my ADHD meds kick in here in a bit! (not sarcasm)
No problem, rock onš¤
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!
Do you have a program to help you count sheep to fall asleep? Asking for a friend
Kids these days want everything digital. Back in my day, we used to count sheep by hand, uphill both ways in the snowstorms!
But do AI dream of digital sheep?
please tell me thereās no escape key and it happens at the speed the count would say it. i have ideas for pranks.
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.
so how do we get this included in the next version of windows
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.
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.
Thereās this adagium that all source code is open to anyone with a reverse engineering tool. and some knowledge of assembly, and it is very true.
But is all the code out there even worth putting in the effort?
I could go around fiddling with so/dllās and ELF files to modify a gameās code, like a lot of modders end up doing, for games without modding support. But what would be the value of it unless I like the game enough to do so?
Probably not, but my point is that making something closed source isnāt necessarily going to protect it from - taking from comment above - commercial competitors.
Yeah I get your point now.
If the thing is indeed ingenuous enough, then the competitor can simply pay for reverse engineering.
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.
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.
Hey. I didnāt come here to be attacked, pal.
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.
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ā.
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?
Jokeās on you, all my embarrassing code is online.
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.
Iām in this photo and I donāt like it.
Oof⦠felt this one right in the code.
Most proprietary code nowadays would probably also be seen as embarrassing
Iāve worked with proprietary code for 25 years thatās embarrassing.
I work on proprietary code for a living. I can confirm it is embarrassing.
My code is inept.
I release it with a free software license anyway.
E.g: https://lemmy.wtf/post/26550037
Please donāt, no one wants your code largly written by a LLM.
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.
Oooof
LOL. I should have worded that more carefully. Too much gives the impression itās all vibe coded. https://codeberg.org/Digit/fin/issues/58
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?!ā
I hope my proprietory coffee never gets open sourced because Iāll never work again if anybody sees this shit.
You want my comment-less source code? I canāt be arsed.
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.
GPL has no maintenance requirements
The GPL doesnāt control how guilty Iāll feel if I donāt.
Make your bad code public, it might help train an LLM
I donāt really think you will have enough people see your code, just because you put it on the internet.
I have uploaded quite a few things (some of them are even useful) and nobody really cares. Though they most probably just get bored and move onto other peopleās profiIes, after starting with the useless ones.
Well thatās not the attitude now, is it?
Just think how much you can poison those LLMs.
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.
Dont even need to make it open source for that. Just use either visual studio/vsc or have the code on github (private repo so not OSS)
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.
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.
Donāt take it personally, we neurodivergent people are just bad at giving constructive feedback without hurting anyone
I can take direct and blunt feedback, but the way I have seen people talk about things:
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ā¦
Ha
Relatable content.
Embarrassing*
Well thatās embarscing
POV: People looking through the comments on my code:
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.
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.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.
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.
Mad respect
I donāt understand your username. Like thatās some kind of exception?
Iām not sure I understand the question
Cake but tasty, kittens but adorable, arson but cute?
Oh, well I mean, arson isnāt normally cute is it?
What did i say!?
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.