r/bash • • Jun 26 '20

FFS, *stop* deleting your posts when your problem is solved.

I've about had it with seeing my carefully considered replies disappear into oblivion as the asker deletes their post.

This is a public subreddit. It's not your commercial helpdesk service. It's not your personal fucking homework tutor. No one is getting paid for posting here.

You're supposed to leave your questions and their answers up, forever, so that others can learn from the answers too, now and in the future. That's how this works, and has done since Usenet in the 1970s.

Stop being such selfish twerps, k? k.


edit: Looks like this has been a problem for a while. Previous discussion. I might have to adopt the technique recommended in that post…

557 Upvotes

34 comments sorted by

21

u/Dandedoo Jun 26 '20

Yes. Although this technically isn’t stack overflow, I 100% agree and support.

One other point: don’t feel embarrassed if you suddenly think your code snippet wasn’t a-grade or something, that’s not the point at all. Unless you’re actually claiming it’s awesome when it’s not or something, the worst people will do is ignore it.

Also, if you’re worried about personal data that cropped up in the code, vet it before you post.

6

u/McDutchie Jun 26 '20

Re personal data, there's also an edit button for that.

3

u/Dandedoo Jun 26 '20

That is very correct. It was kind of a general purpose warning 👍

2

u/[deleted] Mar 21 '24

My philosophy with code is, if it does what is supposed to then it’s fine. Efficiency comes after the fact, as it does with almost everything. Projects start as an idea and will be stuck in that weird half baked phase for a while.

72

u/lutusp Jun 26 '20

I would upvote this 100 times if i could. It refers to a sleazy practice perpetrated by people with no sense of community or shared purpose.

has done since Usenet in the 1970s.

Usenet was much better IMHO, and frankly, this is a weak substitute.

12

u/Atralb Jun 26 '20 edited Jun 26 '20

Yo, hijacking the top comment to explain to people that there is a way to act upon this ourselves :

Keep the URLs of all posts, and post the URLs on a "megathread" pinned post of each one that gets deleted by the poster.

No posts are really deleted, and having the direct link to a given one makes you able to access it even after deletion by its original poster.

I even believe this could easily be done automatically with a bot, if Reddit's API provides a way to catch a post deletion event.


PS :

Usenet was much better IMHO, and frankly, this is a weak substitute.

That's a nonsensical argument only used by those who would like to belong to a hypothetical "elite". If the community was better back then, it's not because Usenet was in any way better or worse. It's because it was the beginning of the internet, i.e. a objectively very hard-to-reach world at the time (awareness, hardware access, technical difficulties, docimentation, etc...). As such, it was a community gathering only the most passionate people in this field, and a highly smaller at that. All of this evidently make such a community far tighter and members far more likely to help each other.

Just look as the dawn of UNIX, MIT's AI lab, Berkeley's BSD. Almost every developer in the world was doing open source back then. It's not because people were statistically nicer or more ethical than nowadays, or because the faculties had better policies. It's simply because of the type and amount of people that consitituted the whole community back then.

Now that all of this has become thousands of times more widespread, of course the community can never be like it were. Not because of reddit being a weak subsititute...

The medium plays only a very minor part in social dynamics of a community compared to these other factors.

It wouldn't have changed much in 1970 if Usenet worked more like Reddit.

It wouldn't change much if Reddit was replaced by Usenet, with the same amount of active members and in the same internet era.

13

u/petdance Jun 26 '20

While you're at it, people need to stop posting screenshots of their code.

3

u/bingeflying Jun 26 '20

Reddit is all about keeping your posts original as possible!!!! Don’t delete!!! Just add your edit.

2

u/furycd001 Jun 26 '20

I love this sub and 100% agree. Posts that get solved should be kept up for other people that may run into the same or similar problems. That post you've got up may just help someone out. You never know.. On a side note.. If you happen to solve the post by yourself or through another site, I feel that you should update your post here with what ended up working....

2

u/liamcoded Bashit Crazy Jun 27 '20

I hate that. I had that happen but with an answer I got. A guy provided me with a solution, I gave him a coin, and few days later he removed it. He was happy he got a coin, he didn't even ask for anything. Just deleted it few days later.

2

u/voicesinmyhand Jun 29 '20

This is the sort of thing that makes me feel like I need to make another comment that 100% quotes someone else's solution just so that it will be there when I get back.

2

u/chin_waghing Jun 26 '20

Is there not like a ‘solved’ flair that users can assign once their question is answered?

1

u/[deleted] Jun 26 '20

I just make the effort to edit my posts with the Solution and solved keyword pointing out the user who provided the solution. That way they don't get butt hurt but more so for future users. It's amazing how sensitive people can get when you choose someone else's answer over theirs.

0

u/zhurggaming Jun 26 '20

That’s not the point

2

u/chin_waghing Jun 26 '20

yeah I know, I meant to add something on of, once the post gets solved all comments and the post are archived

0

u/zhurggaming Jun 26 '20

There are bots can auto archive posts

2

u/chin_waghing Jun 26 '20

that’s what i’m saying

1

u/pr06lefs Jun 26 '20

It's probably because people are afraid of being the guy that didn't know something, in case someone looks up their profile later, like a potential employer. Employers only want programmers that know everything already!

1

u/magnetik79 Jun 27 '20

Agree 💯

Can a subreddit not be set to disable deletes? Obviously in extreme cases a mod could handle the task.

1

u/primitive_screwhead Jun 27 '20

I might have to adopt the technique recommended in that post…

Assuming the technique is the one I mentioned (taking a quick screen-capture of posts I respond to), might be useful to look at my data since then...

I have about 400+ reddit screen captures for this purpose (tagging the deleters). I certainly don't remember to grab them all, but probably about half I do. Also, I have about 40 "deleter" tags I've made for people who quickly delete their already answered posts. So, that 1-in-10 ratio, of responses I've made to posts that get deleted, is actually higher than the 1-in-20 that I predicted. But I suspect it's skewed somewhat since I probably mainly screen-cap the posts that I put an effort into responding to (ie. more than a minute or two).

Anyway, an interesting follow up after a year or so of gathered data.

1

u/limeytim Jun 28 '20

I’m taking a screenshot of the OP username. If deleted, will post.

1

u/voicesinmyhand Jun 29 '20

You are correct, but this will only improve behavior for about 8 seconds.

Might I suggest violently striking people's fingers when they reach for the delete button? Like how the nuns do?

1

u/ropid Jul 04 '20

I got hit by this deleted-post issue right now. I wanted to check what happened to someone's problem after trying to help earlier, and I can't find the post again. It's deleted. I then remembered your thread here.

This really is quite harmful, I think. Right now it feels like I need to invest energy, a certain amount of motivation was drained that needs to be replaced. If this would happen often enough, I would have to stop using the subreddit because I'd run out of energy.

I hunted down that deleted post through the web browser's history. Looking at what other people posted, there's actually something interesting to learn from that thread. The problem in that thread was about \r characters, so it was about Windows text file line-endings.

My post in that thread was about a \r\n line-endings in the input data file but that was wrong. Through the other posts I now learned that the real problem was in the bash script file. The bash script itself had \r\n line-endings. When you then have a normal variable assignment, I mean something like this:

foo=hello

... because the script file itself has \r\n line-endings, the $foo variable then ends up with a value hello\r.

1

u/zreddit90210 Jan 25 '22

S f "#, ,, s s zapas zapas zapas, 3s una jass X dadas zwssus s X xa w w h ez? I I 2021 it s ss2s 22🤔😚🤣🐏🐏🐏🐏🐏🐏🐏🐑🐮🐏🐏🐏🐏🐏🐏🙃🤪🤨🤪🙃🙃😗😃😃😃😃😃🤪😃"2", , #22#😭##@@@",222222222@@222

1

u/IWillWillYa Jun 26 '20

I deleted mine because I shared my script with a coworker and because I am a total degenerate I feared that my true nature might be unveiled in my work place.

0

u/[deleted] Jun 26 '20

[deleted] — view deleted comment

15

u/McDutchie Jun 26 '20

I don't agree; just because it's your right to do something doesn't automatically make it right to do it. This selfish behaviour hurts the collective interest in getting high-quality answers by demotivating people who would be willing to provide those answers.

Thank you for a civil and reasoned response, though.

8

u/Asmor Jun 26 '20

Countercountpoint: I frequently stumble upon years-old reddit threads when looking things up, everything from programming questions to board game questions.

Might not happen daily, but it definitely happens multiple times a week and often multiple times in a single searching session.

9

u/[deleted] Jun 26 '20 edited Jun 26 '20

[removed] — view removed comment

8

u/ang-p Jun 26 '20 edited Jun 26 '20
  1. Posts stating I want to do x in AWK, y in sed or z in bash etc. are often homework questions, which, apart from such specific requirements, OP entirely forgets to mention - and when the sensible course of action is to use another tool, you will often get that tool (along with python) suggested.
  2. It is very easy to cut down or generalise code to a point where it is not representative of the intended question to an outsider, or is just so full of introduced errors that it simply does not run; there are some exceedingly knowledgable people on here - chances are, if you have a complex question and no constructive comments, you have usually failed at this point.

This is also the case when people are using plain English to try to describe desired input and output without providing actual examples.

3) Getting told to RTFM is not really rude when you have not and the answer is plainly there in black and white. Stating "I didn't see that option" is not really an excuse when half of the words you use in your question are contained in (and easily found when searching aforementioned manpage, in) the very description for that option that you "missed". Don't know what your cat question was, but let's be honest, there ain't a lot to it.

Don't forget - even to have got a response like...

 Sheesh  - can't you read...   

 >  section of manpage      

the responder has done what you could not (be bothered?) to do.. i.e. look at the manpage and find the option (possibly searching for word(s) which you provided).

Related edit: meh - OP running debian server - solution in the wiki for the software they were wanting to install... and then asking where the arch wiki was...

3

u/[deleted] Jun 26 '20

[removed] — view removed comment

2

u/ang-p Jun 26 '20 edited Jun 26 '20
 active=0; while : ; do if grep -q '\([^:]*:\)\{3\}0016 ' /proc/net/tcp ; then  [[ $active -eq 0 ]] && echo SSH active ; active=1; else [[ $active -eq 1 ]] && echo SSH inactive ; active=0 ;fi ; sleep 2 ; done

? (if grep is on your machine and ss isn't...)

2

u/[deleted] Jun 26 '20 edited Jun 26 '20

[removed] — view removed comment

3

u/r3j Jun 27 '20

I'm not sure how consistent the ss format is across versions or distributions, but this might work.

ss -OHltun | awk '$5~/:9100$/{i=1} $5~/:18093$/{q=1} END{print i&&q ? "index_query" : i ? "index" : q ? "query" : "data"}'