-9

Today, I saw this question being closed as off-topic:

Can't delete file in /usr/bin on mac

The argument being that rm -rf qualifies as "general computing hardware and software" rather than "software tools commonly used by programmers". In the comments, it was described as "general-purpose file-system manipulation".

In essence, OP wrote a program, thought it made sense to store it in /usr/bin, then needed help to get back on the right track. Other programmers may benefit from this question and its answer. Isn't that what SO is all about?

EDIT

In response to the argument that the question fails to satisfy the requirement (as quoted from the help center) "unique to software development":

Please note that the question involves a very specific folder. This folder is typically not accessed by common users; hence the restrictions on that folder. OP accessed the folder specifically because OP wanted to deploy software, developed by OP. To me, that's enough for the question to be "unique to software development."

The fact that the issue of deleting a file may be trivial to most of us, is irrelevant to the discussion. What may be trivial to you, can be helpful to others. Other developers, who stepped in the same pitfall of copying their own scripts into /usr/bin.

22
  • 6
    With my limited knowledge of Mac, that seems like more of a SuperUser question than a Stack Overflow question.
    – Cerbrus
    Commented Jul 25, 2018 at 14:48
  • 6
    The question may very well be more suitable elsewhere (SuperUser, AskDifferent, and perhaps even Unix), but that alone doesn't make it off-topic for Stack Overflow.
    – yannis
    Commented Jul 25, 2018 at 14:52
  • Now does rm -rf sound like something the average non-programmer would use on a regular basis? - if you're primarily using a linux or unix os, and you want to be efficient, then you would certainly use the console for many tasks including for removing files.
    – l4mpi
    Commented Jul 25, 2018 at 14:52
  • @l4mpi Thank you for your comment. I suppose I was being ignorant of non-programming power users there, so I decided to remove the middle paragraph from my question; it seems to be drawing attention away from the relevant arguments. Commented Jul 25, 2018 at 15:26
  • 1
    Programmers shouldn't limit themselves to Stack Overflow. I use Software Engineering, Super User, Server Fault, Ask Ubuntu and Unix & Linux on a regular basis to tackle problems I encounter while doing programming-related work.
    – user247702
    Commented Jul 25, 2018 at 15:33
  • 4
    The litmus test is: and unique to software development. That problem is not "unique to software development".
    – Martijn Pieters Mod
    Commented Jul 25, 2018 at 15:34
  • 1
    @MartijnPieters That's not a very good litmus test. There are many problems that are not unique to software development but are still on-topic questions. Lots of algorithm questions boil down to math, but that doesn't mean they should be closed and asked on any of the math oriented sites. This question is about using a tool commonly used by programmers for programming purposes, AFAICT that is still on-topic.
    – user4639281
    Commented Jul 25, 2018 at 16:27
  • 3
    @TinyGiant: We've actually closed math problems because they were not algorithm problems. It is an excellent litmus test. If the question is basically pure math with no practical progamming component, then it is very much off topic.
    – Martijn Pieters Mod
    Commented Jul 25, 2018 at 16:37
  • @MartijnPieters Well sure, a pure math question that has nothing at all to do with algorithms or programming is off-topic. That in no way proves your point: That all questions must only be applicable in a programming sense. If they could possibly be considered in any other sense whatsoever then they are not unique to software development and are therefore off-topic.
    – user4639281
    Commented Jul 25, 2018 at 16:38
  • 1
    @RuudHelderman: You are really stretching the definition there, making assumptions about what other users might run into. It is also something non-programming IT support professionals could run into. It's not a practical programming problem.
    – Martijn Pieters Mod
    Commented Jul 25, 2018 at 16:44
  • 1
    @MartijnPieters In SO, we are continuously making assumptions about whether or not a question could be helpful to others. I think that should be the litmus test: is it helpful for developers? It was to OP. And as for the support professionals (or whoever): why should we care if they are having the same problem? Commented Jul 25, 2018 at 17:13
  • 1
    So you're asserting that if someone could possibly encounter a problem while not programming, then that problem is inherently "not a practical programming problem" even if it is being asked about in a programming context? @MartijnPieters
    – user4639281
    Commented Jul 25, 2018 at 17:25
  • 2
    @RuudHelderman: that's a slippery slope. Lots of stuff is helpful to them. Is working out how to best be a software developer living on a boat helpful? Sure, but that very topic was 'sunk' early on, as that's also not unique to software developers.
    – Martijn Pieters Mod
    Commented Jul 25, 2018 at 18:08
  • 1
    @TinyGiant: Like programming on a boat? See What is the boat programming meme about?. You can make anything on topic if you encounter a problem while programming, right?
    – Martijn Pieters Mod
    Commented Jul 25, 2018 at 18:09
  • 1
    @RuudHelderman: no, I don't agree. The feature is not that obscure, and trying to delete from that folder is not specific to programming.
    – Martijn Pieters Mod
    Commented Jul 25, 2018 at 19:59

2 Answers 2

12

Is deleting a file using the user tools included by default in all users systems a task unique to software development? I would say no.

9
  • 2
    That's like saying a question about a problem writing a program in a text editor that is included by default in all users systems is off-topic because that text editor could be used for so many other things.
    – user4639281
    Commented Jul 25, 2018 at 16:42
  • 1
    @Braiam Thank you for your answer. I would like to argue that the question is unique to software development. I edited my question to make my point. Commented Jul 25, 2018 at 16:43
  • @TinyGiant no, changing the font to bold is something that isn't unique to programming, adding a c++ hinter plugin is.
    – Braiam
    Commented Jul 25, 2018 at 17:19
  • That would be a problem that is not applicable to programming at all whatsoever, not a problem that applies to programming but is applicable to other areas of expertise as well.
    – user4639281
    Commented Jul 25, 2018 at 17:23
  • @TinyGiant just because I have a hammer, doesn't mean I'm a carpenter nor doing carpentry.
    – Braiam
    Commented Jul 25, 2018 at 17:25
  • Your overly vague and irrelevant analogy makes no sense in context. If I am a carpenter, does the fact that someone who is not a carpenter is using a hammer for a non-carpentry-related task preclude me from using my hammer for carpentry related tasks? No, that's nonsense.
    – user4639281
    Commented Jul 25, 2018 at 17:28
  • @TinyGiant is not vague, nor irrelevant. Is not the tool that makes question on or off topic, is what you are doing with said tool.
    – Braiam
    Commented Jul 25, 2018 at 17:30
  • 1
    Ok, so the OP of the question in question is using the tool for programming purposes, i.e. in your own words your point is moot?
    – user4639281
    Commented Jul 25, 2018 at 17:31
  • 1
    @TinyGiant The OP is not using that tool for programming. Yes, they wrote a program, but that's not what they're asking about. They're asking how to delete that program file from the command line. Commented Jul 25, 2018 at 19:31
5

Deleting a file is something that you're going to end up doing while programming. If I run into a problem deleting a file using my favorite operating system (not having a program delete it, but rather just hitting the Delete key or otherwise telling the OS to remove a file), in the course of programming, is a question about that problem on-topic for Stack Overflow?

I would say no. Here's why:

I have understood Stack Overflow's purpose (up until recently anyway) to be the accumulation of practical, answerable problems unique to software development.

Deleting files from a file system, while certainly something you will run into while developing software, is also something you'll run into while using a computer in general. Therefore, logically, the problem is not unique to software development.

  • It is also not about software tools commonly used by programmers (as opposed to any other group of computer users).

  • It is not about a software algorithm.

  • It is not a specific programming problem.

... and that pretty much covers what's on the What topics can I ask about here? page on the help center.

It also fails a key test on that same page:

Questions about general computing hardware and software are off-topic for Stack Overflow unless they directly involve tools used primarily for programming.

The file delete functionality is certainly not used primarily for programming.


Now some have brought up some other hypothetical scenarios, like what if someone is using an IDE to do something other than software development, is a question about that IDE now off-topic?

I would say we can't make a sweeping generalization about that. It depends on the question asked. If the question is how to make some text bold in the IDE, that is likely to be off-topic, since it doesn't make much sense to make code bold. If the question is about problems installing a particular plugin (like say a Markdown editor plugin), then sure, it could be on-topic. The same rigor we ask for other questions should be applied of course.

1
  • 1
    Thank you for your answer! Two concerns: (1) "Not used primarily for programming": dangerous argument; can be used equally well to ban the more versatile members of a programmer's toolchain, e.g. less, grep, git. Where's the boundary? (2) "Deleting files from a file system (...) is also something you'll run into while using a computer in general." The question involved a specific folder; delete functionality in general (rm) was primarily proof of OP's efforts. Not a coincidence that a programmer was having the problem; it's not something my mom would encounter cleaning up her photo album. Commented Jul 25, 2018 at 21:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .