this post was submitted on 18 Feb 2025
223 points (100.0% liked)

Programmer Humor

428 readers
5 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
 
top 29 comments
sorted by: hot top controversial new old
[–] tetris11@lemmy.ml 24 points 1 week ago* (last edited 1 week ago) (1 children)
cd ~/repos/work-project27
git checkout dev
git branch new_feature
### code for a few hours, close laptop, go to sleep, next morning
git checkout dev
### code for a few more hours, close laptop go to sleep, next morning
## "oh fuck, I already implemented this in new_feature but differently"
git checkout dev
git diff new_feature
## "oh no. oh no no no. oh fuck. I can't merge any of this upstream and my history is borked."
git clone git@workhub:work/work-project work-project28
cd ~/repos/work-project28
[–] programmer_belch@lemmy.dbzer0.com 12 points 1 week ago (1 children)
[–] Boomkop3@reddthat.com 24 points 1 week ago (1 children)

That last one is more common than I'd like, a lot more

[–] pewpew@feddit.it 5 points 1 week ago

Oh I used to do it as a kid

[–] bleistift2@sopuli.xyz 13 points 1 week ago

The last is just a normal git workflow, isn’t it?

[–] tamlyn@lemmy.zip 13 points 1 week ago (1 children)

At university there were some students that want to manage projekts in could storange. That was just stupid but i didn't know it better at that time.

[–] lesnout27@feddit.org 28 points 1 week ago (1 children)
[–] tamlyn@lemmy.zip 12 points 1 week ago* (last edited 1 week ago) (1 children)

I'm sick...that's my excuse....

[–] lesnout27@feddit.org 9 points 1 week ago (1 children)

Didn't want to be mean with the meme

[–] tamlyn@lemmy.zip 9 points 1 week ago

Don't worry, it's fun

[–] Slotos@feddit.nl 9 points 1 week ago (1 children)

Why did you mention git twice?

[–] thadah@lemmy.blahaj.zone 5 points 1 week ago

While TFS did support Git, I had to deal with the much worse TFVC for a long while, up until Azure DevOps came along.

[–] brandon@lemmy.ml 7 points 1 week ago (1 children)

MyProject - Copy v2.bak new NEW (3)/

[–] lars@lemmy.sdf.org 2 points 1 week ago

And when it’s release, then you rename it to

MyProject - Copy v2.bak new NEW (3) FINAL.2-19-24/

and then at the next standup, we all ponder how we can rename it to

MyProject - Copy v2.bak new NEW (3) FINAL.2/19/24/

because the team lead needs m/d/yy names with forward slashes

[–] PoolloverNathan@programming.dev 4 points 1 week ago (2 children)
[–] magikmw@lemm.ee 1 points 1 week ago

With properly configured subvolumes, I'll allow it.

[–] mcmodknower@programming.dev 1 points 1 week ago (1 children)

Isn't that just git with more steps and harder to share?

[–] PoolloverNathan@programming.dev 2 points 1 week ago (1 children)

It's equivalent to cp -r, but:

  • the copy is read-only
  • reuses unchanged files
  • easier to share (btrfs sub send)
[–] mcmodknower@programming.dev 1 points 1 week ago

Sounds just like git (unless you do some special operations to change the copies)

[–] parpol@programming.dev 4 points 1 week ago

Couldn't add perforce to the list because someone else was checking it out, I see.

[–] 0101100101@programming.dev 3 points 1 week ago* (last edited 1 week ago)

CVS is gonna make a comeback! I tell ya!

[–] 0101100101@programming.dev 3 points 1 week ago

I do miss the tags of SVN that would replace certain strings on each commit such as the date, a version number, etc.

[–] yogsototh@programming.dev 2 points 1 week ago
cp $fic $fic.$(date -Iseconds)
git commit -a -m "save at $(date -Iseconds)"
# edit $fic
git commit -a -m "save at $(date -Iseconds)"
git push -f

No love for cvs?

[–] JadeSleeps@lemmy.blahaj.zone 1 points 1 week ago

The last one can easily describe Django. Feels like depending on the code base/your mistakes/people you work with can easily turn a normal project into a project where majority of the files is just migration files.

[–] 0x01@lemmy.ml 1 points 1 week ago

I knew a dude who would burn a cd every week and store it in his house as his version control, his software is still used by hundreds of businesses to this day

[–] almost1337@lemm.ee 1 points 1 week ago

Perforce Helix, here I come!

[–] mrkite@programming.dev 1 points 1 week ago

cp index.php index.php-20250220