this post was submitted on 18 Feb 2025
352 points (96.1% liked)

Programmer Humor

23507 readers
679 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 49 comments
sorted by: hot top controversial new old
[–] Boomkop3@reddthat.com 40 points 3 months ago (2 children)

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

[–] ByteJunk@lemmy.world 10 points 3 months ago

$ cp -r src/ src.old

No sir never seen it in me life, honest to god sir

[–] pewpew@feddit.it 8 points 3 months ago

Oh I used to do it as a kid

[–] tamlyn@lemmy.zip 17 points 3 months 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 47 points 3 months ago (2 children)
[–] tamlyn@lemmy.zip 17 points 3 months ago* (last edited 3 months ago) (1 children)

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

[–] lesnout27@feddit.org 16 points 3 months ago (1 children)

Didn't want to be mean with the meme

[–] tamlyn@lemmy.zip 14 points 3 months ago

Don't worry, it's fun

[–] Valmond@lemmy.world 10 points 3 months ago

It's quantum stuff, I could do that, or I could not do that...

[–] bleistift2@sopuli.xyz 13 points 3 months ago (1 children)

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

[–] Jyek@sh.itjust.works 2 points 3 months ago

I'm pretty sure it means, they copy and paste the project file and iterate the version number manually.

[–] Slotos@feddit.nl 10 points 3 months ago (1 children)

Why did you mention git twice?

[–] thadah@lemmy.blahaj.zone 5 points 3 months 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.

[–] mEEGal@lemmy.world 10 points 3 months ago (1 children)

the last one is just immutability, praised in modern JS / TS, albeit at the repo level

[–] frezik@midwest.social 12 points 3 months ago (1 children)

I "love" how JavaScript has slowly rediscovered every piece of functional programming wisdom that was developed before 1980.

[–] expr@programming.dev 2 points 3 months ago (2 children)

Kind of, though they honestly just do pretend immutability. Object references are still copied everywhere.

[–] 0101100101@programming.dev 4 points 3 months ago

All of javascript is kinda just pretend.

[–] frezik@midwest.social 2 points 3 months ago

I find you need the whole ecosystem to support immutability to make it work. Every library needs to be based around it. Elixir is about the only modern option that does.

[–] Ugurcan@lemmy.world 7 points 3 months ago* (last edited 3 months ago)

It’s actually a pretty good idea to have a full system snapshot time to time, where the project can compile successfully, for future Virtual Machine use. It’s usually easier to spin a VM than setting up the whole dev environment from scratch.

[–] Matriks404@lemmy.world 6 points 3 months ago (1 children)

Git is so ready to understand, that I don't understand how people work without it.

[–] echodot@feddit.uk 4 points 3 months ago

It's one of those things that's hard to really understand why it's so useful, until you actually use it.

[–] Alphare@lemmy.world 6 points 3 months ago* (last edited 3 months ago) (1 children)

As one of the maintainers of Mercurial, I take great offense in this meme. ;)

[–] nogooduser@lemmy.world 5 points 3 months ago (2 children)

It’s definitely up with Git in my opinion. I much prefer the branching in Mercurial.

It’s certainly very offensive to lump it in the same band as SVN and TFVC.

[–] bleistift2@sopuli.xyz 5 points 3 months ago (1 children)

What could possibly be preferrable to git switch -c <branchname>?

[–] nogooduser@lemmy.world 2 points 3 months ago (1 children)

It’s not the mechanism of branching that I prefer.

It’s the fact that Mercurial tags the commit with the name of the branch that it was committed to which makes it much easier to determine whether a commit is included in your current branch or not.

Also, Mercurial has a powerful revision search feature built in which I love (https://www.mercurial-scm.org/doc/hg.1.html#revisions).

[–] bleistift2@sopuli.xyz 3 points 3 months ago

I admit that I have been bitten by the fact that commits don’t have a “true home branch”.

[–] Alphare@lemmy.world 4 points 3 months ago

Given that Git and Mercurial were both created around April 2005 to serve the same purpose by very similar people for the same reason... I'd say it's fair!

[–] PoolloverNathan@programming.dev 4 points 3 months ago (2 children)
[–] mcmodknower@programming.dev 1 points 3 months ago (1 children)

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

[–] PoolloverNathan@programming.dev 2 points 3 months 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 3 months ago

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

[–] magikmw@lemm.ee 1 points 3 months ago

With properly configured subvolumes, I'll allow it.

[–] parpol@programming.dev 4 points 3 months ago

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

[–] nogooduser@lemmy.world 4 points 3 months ago (1 children)

And worse than all of those options is Visual Sourcesafe.

[–] Valmond@lemmy.world 3 points 3 months ago

Fox Pro!

Shrug

[–] yogsototh@programming.dev 4 points 3 months ago (1 children)
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
[–] ZILtoid1991@lemmy.world 3 points 3 months ago (1 children)
[–] brotundspiele@sh.itjust.works 1 points 3 months ago

cp is short for create packup

[–] 0101100101@programming.dev 3 points 3 months ago

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

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

CVS is gonna make a comeback! I tell ya!

[–] GenderNeutralBro@lemmy.sdf.org 2 points 3 months ago

No love for cvs?

[–] Carighan@lemmy.world 2 points 3 months ago (3 children)

I miss mercurial and it's far more sensical flags and commands...

[–] wewbull@feddit.uk 2 points 3 months ago

Me too. It also handled some situations, like divergent lines in the same branch or obsolete changes, much better.

[–] Alphare@lemmy.world 2 points 3 months ago (1 children)

It's still here and very much alive in case you were curious.

[–] nogooduser@lemmy.world 1 points 3 months ago

The only reason that we stopped using Mercurial is that Microsoft used Git in Azure DevOps. I still wish that they’d supported Mercurial instead of or as well as Git.

[–] nogooduser@lemmy.world 1 points 3 months ago

I really liked Mercurial too. It was much easier to follow branches to find out if a branch included a commit.

[–] almost1337@lemm.ee 1 points 3 months ago

Perforce Helix, here I come!

[–] JadeSleeps@lemmy.blahaj.zone 1 points 3 months 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.

[–] mrkite@programming.dev 1 points 3 months ago

cp index.php index.php-20250220