63

Do the tags:

even make sense?

According to the tag wikis, they're supposed to be used in context of OOP.

Private is a way of encapsulation in object-oriented programming.


public is an access-specifier in object-oriented languages; it indicates that all objects have access to the public field or method.


protected is an access specifier in object-oriented languages. When the members of a class are protected, there is restricted access to these members for other classes.

I cannot really imagine anyone excelling at questions about private, public or protected methods, fields or classes specifically or looking for information on just those. All three also seem to appear together on some questions:

There is the exception of questions, in which one of those modifiers behaves in a manner unexpected by a poster. Or questions which concern the consequences of using a specific access modifier.

These ones also look like they could be tagged with but they seem to be doing just fine without it:

and seem to cover more scenarios and they're more descriptive of the purpose. They also fit a broader range of potential solutions to problems with using whichever specific modifier in various OO languages. If a question concerns a specific modifier, it also has it mentioned in the body and is likely enough to come up in a search anyway.

Perhaps the three tags should be synonymized with or removed altogether? Should I be using them in my questions?

7
  • 34
    I'm in favor of synomization; it dovetails nicely with what that tag is about and doesn't feel too language-specific.
    – Makoto
    May 10, 2015 at 23:58
  • 1
    Scanning through the [private] tag, it does get used appropriately sometimes but not very often. It is most typically used as a combing word, like [private] + [inheritance] or [private] + [function] or [private] + [variable], etcetera. The tags getting reordered turns it pretty nonsensical. It doesn't slow anybody down, the answer rate is in fact extraordinary high at 85%. The concept is simple to understand so getting an answer isn't special. It is not a problem at all, no need to turn it into one. May 11, 2015 at 0:15
  • 1
    And indeed we do have [private-inheritance] (seems reasonable) and [private-functions] (don't know) tags for those combinations. (Thankfully no [private-variable].) May 11, 2015 at 2:13
  • 2
    Depends on what your goal is. The undeniable fact is that the overwhelming majority of people coming to SO to get an answer are people looking for a quick fix and haven't done much research on the subject. I'm not talking about the people actually asking the questions (the bad questions are a smaller subset of the same crowd) but ppl who hop on the site looking for answers, primarily teenage and college students looking for a quick fix. And since (arguably) most of these kids don't even know that public and private are modifiers, perhaps keeping them separate would prevent more copy questions. May 11, 2015 at 2:35
  • 4
    @JeffreyBosboom searching for [private*] reveals a lot more
    – Robotnik
    May 11, 2015 at 7:03
  • 4
    at least there are private-ryan, private-benjamin tags
    – user177800
    May 11, 2015 at 13:25
  • 3
    @JarrodRoberson: Presumably the former will be 'saved'? May 12, 2015 at 18:22

1 Answer 1

17

For me it's a clear No! As @Makoto commented it is too specific and mostly not really a tag valuable for grouping. No user would be interested especially in questions tagged public or private.

To replace those tags by access-modifier or (imho) better visibility would be more useful.

2
  • 9
    Not visibility, that sounds more like it's for UI in general, CSS in specific
    – Izkata
    May 12, 2015 at 18:40
  • @Izkata right, missed that May 13, 2015 at 18:51

You must log in to answer this question.

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