I’m doing you a favor

54 points

I post my terrible code to github so I can sabotage copilot

permalink
report
reply
32 points

Get copilot to generate bad code in quantity, then upload that to GitHub so it slowly cannibalizes itself.

permalink
report
parent
reply
17 points
*

I only post upload badly written reverse shells so that copilot just turns all code in a backdoor, take that NSA!

permalink
report
parent
reply
6 points

Imagine Copilot using it to intentionally showcase terrible code.

permalink
report
parent
reply
40 points
*
Deleted by creator
permalink
report
reply
4 points

Someone did that at the company I used to work for. IIRC, no one noticed for months.

permalink
report
parent
reply
38 points

I dont post my code to github because I would rather use gitlab

We are not the same

permalink
report
reply
18 points

I dont post my code to gitlab because I would rather use codeberg

We are not the same

permalink
report
parent
reply
1 point

I want to start moving stuff into Gitlab, but Github Actions is just too good. Is the CI/CD stuff in Gitlab comparable?

permalink
report
parent
reply
2 points

GitHub’s actions are so good once it clicks and you understand them. On GitLab, you start from a docker image, so it’s harder to setup some things but easier for others. If you are very good at docker and don’t mind making your own images just for CI purposes, then go ahead.

Ideally, you should just try them both. You can mirror a project between the two and setup the CI at both places.

permalink
report
parent
reply
1 point

On GitLab, you start from a docker image, so it’s harder to setup some things but easier for others. If you are very good at docker and don’t mind making your own images just for CI purposes, then go ahead.

I think I’d probably consider myself at/near expert-level with Docker, but CI/CD runners instanced in containers just doesn’t work for some of our workloads.

As an example, some of our projects have a bunch of Docker images that get built via their own Dockerfiles in the repo, are ran and discarded during the workflow, and each one is modifying the checked-out source tree in some fashion (NPM stuff, composer, whatever, etc), and then a final prod Docker image is built and tested from that source repo tree that has been modified by the Docker containers built/ran/discarded during the workflow. So in Gitlab, it sounds like we’d be running Docker in Docker for some projects.

You ever ran Docker in Docker? It’s temperamental at the very best and there are a thousand gotchas associated with it, not to mention having to worry about how many variable scopes deep you are and keeping track of that, how to properly bind mount volumes into the nested Docker containers because the method and paths will vary depending on how nested you are, etc. It’s just an absolute nightmare to deal with all-around in that context.

I’ll see if we have some projects I can try out on it, but the majority of ours are like what I described above.

permalink
report
parent
reply
1 point

Ive never used githubs CI/CD, but gitlab has quite a large ecosystem for its CI/CD.
Seems to me like you could use gitlab as a one-stop-shop to host everything from your code to your artifacts and containers, if you are willing to pay for those fancy features

Free is able to just do basic CI/CD for like 250 minutes a month, or unlimited via your own runners/build servers, thats about it

permalink
report
parent
reply
1 point

You can also use GitHub as a mirror to make your project more discoverable

permalink
report
parent
reply
37 points

I don´t post code to github because it’s a microsoft company.

permalink
report
reply
3 points
*

codeberg, self-hosted gitlab, gitea/forgejo, sourceforge

permalink
report
parent
reply
4 points

Didn’t sourceforge go to shit some years back with ads, embedding bloatware into downloads, and I don’t remember what else? Did it get better again?

permalink
report
parent
reply
4 points

It did, but the interface is still dogshit for new users and it’s impossible to know how to access a project’s page or its download page. When I started using GitHub, I didn’t even realize that SourceForge was a git hub for a fucking while, yet I was still downloading stuff from there.

permalink
report
parent
reply
1 point

i didnt realize that but you can ignore that one

permalink
report
parent
reply
35 points

I got one star on my repo so i immediately privated it

permalink
report
reply
14 points

Shit that’s brutal

permalink
report
parent
reply
6 points

me when i accidently star my own repo

permalink
report
parent
reply

Programmer Humor

!programmerhumor@lemmy.ml

Create post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.

Community stats

  • 3.7K

    Monthly active users

  • 1.5K

    Posts

  • 35K

    Comments