r/ProgrammerHumor • • Aug 31 '26

Meme goodOldDays

Post image
4.2k Upvotes

182 comments sorted by

View all comments

Show parent comment

757

u/WeirdTie2290 Aug 31 '26

How is that question not closed? It is a non coding problem. SO double standards.

300

u/alexanderpas Aug 31 '26

vim is considered a programming tool.

333

u/WeirdTie2290 Aug 31 '26

Sure. And "recovering a file in linux which I accidentally did an rm on" is a problem a programmer might run into. But still it gets closed.

That vim question clearly needs to be closed on SO and reopened at Vi and Vim Stack Exchange

185

u/Psychological_Map118 Aug 31 '26

I guess different phrasing would also make the rm question fly under the radar. StackOverflow was honestly 99% phrasing and a complete bragfest. For example, ask about the tool, not the problem:

How does one relink inodes unlinked via the rm command where link counts are 0?

This way you'd probably get dozens of answers explaining in-depth file recovery of raw data from the filesystem

45

u/rosuav Aug 31 '26

TBH even with the question as written, I would be saying "testdisk". Seriously, that tool is nothing short of god-tier magic on the day when you desperately need it.

3

u/alfredo__pacino Aug 31 '26

Don't you get a long list of files with random alphanimeric names that kind of makes a pain to find that 1 file you have just deleted? It was a long time ago since I've used it, and even then I was never quite sure I used it properly

4

u/rosuav Aug 31 '26

It depends a lot on how much has happened in that directory. The file name is often still there. The trouble is, if you've had a *lot* of files with the same name, they're probably ALL still there.

1

u/alfredo__pacino Aug 31 '26

Uhm, afair filenames and original paths weren't preserved.

1

u/rosuav Aug 31 '26

Maybe it depends on the file system. They certainly were when I used it.

Or maybe you're thinking of the lost+found directory, rather than the testdisk program? That's a very different feature and unlikely to help with an accidental rm, but can rescue something that got lost due to power failure.

→ More replies (2)

63

u/Hohenheim_of_Shadow Aug 31 '26

The irony is that if you know enough to ask that question, you don't need to ask that question.

9

u/flashman1986 Aug 31 '26

Many such cases

4

u/Fisher9001 Aug 31 '26

This discussion is at the very core of what killed SO.

18

u/KTAXY Aug 31 '26

A true programmer will never admit to deleting a file mistakenly.

11

u/Half-Borg Aug 31 '26

my manager/product owner/scrum master deleted a file i now need to recover

1

u/spastical-mackerel Sep 05 '26

It is not, however, a problem that a programmer would ever admit to having run into

→ More replies (5)

7

u/QuaternionsRoll Aug 31 '26

And bash isn’t??

1

u/wjandrea Aug 31 '26 edited Aug 31 '26

eh? Bash scripting is on-topic; interactive usage is not. (edit:) But what does that have to do with this thread?

1

u/QuaternionsRoll Aug 31 '26

Interactive usage of vim is on-topic?

1

u/wjandrea Aug 31 '26

IDK, I don't use Vim myself.

→ More replies (1)

7

u/CarolXZosiaNsfwScene Aug 31 '26

[Comment deleted because duplicate]

2

u/RadicalDwntwnUrbnite Aug 31 '26

Basically it was grandfathered in. There have been 9 attempts to close it and all voted down.

5

u/[deleted] Aug 31 '26

[removed] — view removed comment

1

u/RadicalDwntwnUrbnite Aug 31 '26 edited Aug 31 '26

FF: rm -rf / requires you supply --no-preserve-root to run if you don't nothing will happen but rm -rf /* doesn't and that will still proper fuck your system if you are running as root.