this post was submitted on 22 Sep 2025
155 points (99.4% liked)

Programmer Humor

38757 readers
115 users here now

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

Rules:

founded 6 years ago
MODERATORS
 
top 16 comments
sorted by: hot top controversial new old
[โ€“] MalikMuaddibSoong@startrek.website 15 points 3 weeks ago* (last edited 3 weeks ago) (2 children)
[โ€“] subiprime@lemmy.blahaj.zone 4 points 3 weeks ago

as someone very new to git who just uses it to back up their solo projects... i always just closed the window and reopened the directory ๐Ÿ˜ญ

[โ€“] 0x0@lemmy.dbzer0.com 3 points 3 weeks ago* (last edited 3 weeks ago)

More like this for me

:q!
EDITOR=emacs !!
[โ€“] argh_another_username@lemmy.ca 15 points 3 weeks ago (3 children)

Without saving? Bold move.

[โ€“] blargh513@sh.itjust.works 11 points 3 weeks ago (1 children)

Its vi. When I use it, I always fuck something up and get tangled up in knots. Best to just bail out and try again later.

Yes, open another terminal and start killing processes

[โ€“] FigMcLargeHuge@sh.itjust.works 9 points 3 weeks ago* (last edited 3 weeks ago) (2 children)

That's the people who use vi to view a file. Watched a guy almost get fired when he shared his screen during an audit and had 'sudo vi /etc/shadow' right there in the command window. Auditor saw it and called him on it. He swore that he was only viewing the file to look for a user's id, but the auditor didn't care, because he could have modified it either on purpose or by accident.

[โ€“] interdimensionalmeme@lemmy.ml 3 points 3 weeks ago* (last edited 3 weeks ago) (1 children)

sudo vi /etc/shadow

amateur !

screen sudo vi /etc/shadow

or

sudo screen nano /etc/shadow

if you're neurotypical

[โ€“] into_highest_invite@lemmygrad.ml 1 points 3 weeks ago (1 children)

EDITOR=/bin/rm sudo visudo

EDITOR=/bin/rm $(which sudo) $(which visudo)

[โ€“] racketlauncher831@lemmy.ml 3 points 3 weeks ago (1 children)

Why not cat then? I don't care of his reasons either.

[โ€“] MsFlammkuchen@lemmy.blahaj.zone 2 points 3 weeks ago (1 children)

Exactly, or grep would have worked. Dude just was used to doing this and picked the exact wrong moment to have it on his screen. He earned a finding with that one.

[โ€“] hddsx@lemmy.ca 8 points 3 weeks ago

Are you going to save without knowing what changes were made? Bold move.

[โ€“] dubyakay@lemmy.ca 8 points 3 weeks ago

So where do I get this sticker?

Leave no trace sign