23

Possible Duplicate:
Implicit tagging hierarchy

I've seen some references on MSO to the fact that Jeff rejected (supposedly repeatedly) the idea of a tag hierarchy. However, my searching failed to uncover any source material (e.g. actual wording by Jeff/Joel) on the topic.

As a developer, I can see a couple of obvious downsides to having tag hierarchy from the technical standpoint - but as a good developer, I can also see solutions to ameliorate those downsides.

Which leads me to believe that there must have been non-technical (e.g. design, usability, or philosophical) reasons as well. I was wondering if there is any such detail available, or if not, if Jeff or someone else on SO team could be so kind to comment on it?

(In case it is not obvious, I think that tag hierarchy would tremendously help the usability of SO - matter of fact it is one of the only two big improvements of the SO/SE I can think of that would make the site design perfect in my eyes as opposed to just great).

UPDATE: Based on the feedback from this question, I have posted a proposal for tag hierarchy on MSO.

0

6 Answers 6

12

The tag information is neither completely flat nor completely hierarchical, and I think this is what's freaking Jeff out.

As mentioned, there are a lot of situations where the context of a tag is ambiguous (meaning a flat system is favourable), but there are also very good candidates for using a hierarchy, where the meaning of the tag is unambiguous. For example, right now we have flat tags of: [visual-studio], [visual-studio-2010] and [visual-studio-2010-express].

I think it was decided that the tags are more flat than hierarchical. There are tradeoffs between both systems. That being said, I don't see why a hierarchical system couldn't be implemented where only unambiguous tags get put into a hierarchy and everything else is left flat. There could be additional authorization rules where you need more rep to create a tag hierarchy than to create a flat tag.

The planned tag synonyms will cut down on a good number of tags, but I think it's still a supplementary measure to the main part of tag organization.

1
  • @Jon - yes, that's pretty much what was on my mind... putting in hierarchy ONLY where it is unambiguous
    – DVK
    Commented Apr 3, 2010 at 18:06
8

There are enough problems with the spellings of single non-hierarchical tags and creation of singular vs plural tags, and acronyms vs full names, etc. Can you imagine the extra causes of tag-wrestling if you have hierarchies too? Does ".net" start at the top, or does it have to start in the "microsoft" hierarchy? What about if it is the "mono" version?

Another problem - search. I want to look up stuff related to, oh, memory allocation. Is that 'memory-allocation' or ('memory' and 'allocation')? That's the current problem. Now, in a search in hierarchical tags, does specifying 'memory-allocation' find that tag under the 'c' and 'c++' and 'java' and 'c#' (or is that 'microsoft/c#' or 'microsoft/.net/c#') hierarchies?

Etcetera, etcetera.

The flat namespace and limit of 5 are both sensible, simple, pragmatic ways of organizing things.

4
  • 1
    First of all, top level tag creation should probably be restricted to higher rep users (5k? 10k?). This solves the "top" issues. Second, memory-allocation should not be a C++ specific tag in the first place. That's why you have 2 tags (c++ and memory-allocation).
    – DVK
    Commented Apr 3, 2010 at 14:49
  • I have more to say on the topic but to be honest I didn't intend this Q to become the ground for hashing out design issues - I would want to post that as a separate question once I think the design issue through some more.
    – DVK
    Commented Apr 3, 2010 at 14:56
  • @DVK: if the hierarchy of tags isn't displayed or used in searches, I'm not sure what it is used for. I'm missing something, or maybe your comments/question haven't explained what you are thinking sufficiently clearly to have gotten through to an uncaffeinated brain (mine). Commented Apr 3, 2010 at 15:13
  • 1
    glad you asked! The main benefit of tag hierarchies is in: 1) Ease of searching/filtering (I would prefer to add 1 "perl" tag to my interest list instead of 20 perl-related ones); and 2) to remove the clutter of related/derived tags in each Q (e.g. the question that has some specific asp.net-related tag no longer needs asp.net NOR dotnet nor microsoft tags
    – DVK
    Commented Apr 3, 2010 at 16:57
3

The more I use the trilogy, the more fond I become of flat name-spaces for classification. It has been my experience that in any sufficiently large community you run into issues of how to create taxonomically satisfying hierarchy that most people will understand.

For example, at work the intranet site for finding classes has had a hierarchical listing of the classes and despite 4 years of hashing back and forth we're still having a bugger of a time listing things in a way that makes sense to the majority of users.

Despite usability test after usability test, in a narrow field, it's just easier to use the SO-style tagging (which I'm working on implementing in the next version of the site).

Am I saying its impossible? No. Please don't hear what I'm not saying. What I am saying is that outside of specific criteria, its not worth the effort.

1
  • Just to clarify - see my other comments on this Q. I don't envision a strict tree hierarchy - more of a free-flowing forest, AND I still see a strong use of independent flat tags (e.g. see my example for Neil - C++ is not supposed to be a part of "languages" or "OO languages" - merely an independent tag used if eneded together with those.
    – DVK
    Commented Apr 3, 2010 at 17:05
1

Tags probably should be mostly flat, and only have relationships where there is a very strong subsumption of one by the other. For example, I'd expect ruby-on-rails3 to be subsumed by ruby-on-rails. Have relationships between tags only be settable by people with very high reputations (e.g., another 10k perk).

As to what to use them for, the obvious things are searching and filtering. If I was to filter out ruby then I wouldn't want to see ruby-on-rails3, yet if I was searching for something about ruby then an answer tagged with ruby-on-rails3 might well be useful. (Yes, we could wish for people to be perfect about tagging, but meanwhile there's a need for something workable now.)

I wouldn't try to encode the relationships in the name. Too many cases where that's not useful (e.g., jdbc would be subsumed by java).


[EDIT]: It probably also ought to be more expensive to sponsor tags "higher up" the tree.

0

Designing abstract hierarchies is an almost impossible thing to get right, which is why so many novice OO programmers go astray when thy try to base their design on such a hierarchy.

Consider for example, the C++ tag should it:

  • be rooted under languages
  • be rooted under OO languages
  • be a root tag itself, with sub tags for OO, Generic and non-OO programming?
  • be rooted under Microsoft
  • have subtrees GCC, MSVC etc.

and so on and so on. There is of course no correct answer. One constructs such trees depending on the task immediately at hand.

I do think however, that the ability to create tags at all should be restricted to (say) 5K susers.

2
  • Neil - i don't necessarily envision hierarchy as a tree - more as a forest. However, in your example, there's acually no hierarchy at all - "languages" tag should be for language design issues, and C++ should only be added as independent tag for language design Q that touch C++; ditto for OO languages. So C++ would be a root tag - but without OO/generic subtags. Ditto Microsoft - it's an independent root, with may be "visual" stuff under it; but "visual C++" would have both "visual" parent AND "C++" parent. Hope this clarifies.
    – DVK
    Commented Apr 3, 2010 at 17:01
  • I'm not sure - one of the benefits of having a hierarchy is specifically that the lower-rep users who create new tags deeper in the tree would not be able to wreck nearly as much organizational havock as ones creating top level tags as now.
    – DVK
    Commented Apr 3, 2010 at 17:03
0

Tags are created by users. How would users create tags in a hierarchy?


I mean, how can a diverse collection of users, from all around the world, be expected to agree on a single hierarchy?

5
  • 2
    Trival: "microsoft:.net" or, if you prefer, "microsoft/.net" (or should that be a backslash?), or, if you ever used Primos, "microsoft>.net". Commented Apr 3, 2010 at 14:13
  • @Jonathan - great idea. The stuff after "/" can also be popping up a matching list like the tags do now.
    – DVK
    Commented Apr 3, 2010 at 14:47
  • @Jonathan, @john - also, I don't necessarily see the need to explicitly display the hierarchy in the tag name. E.g. ".net" is perfectly fine as a tag name - the fact that it has a "microsoft" parent is kind of irrelevant to the person picking tags, OTHER than some logic which says "you picked both 'MS' and '.net' and 'vb.net' tags, you don't need the first two"
    – DVK
    Commented Apr 3, 2010 at 14:57
  • @Jonathan Why should .net be categorized under Microsoft? You can write .net apps without a single bit on Microsoft code by using a non-Microsoft compiler (e.g., Mono) and the ECMA/ISO Standard. Because they Invented it? Then should we put C++ under "Stroustrup"? Commented Apr 3, 2010 at 22:06
  • @Michael: you are demonstrating my point beautifully - there are multiple possible classification hierarchies and different people will have different views on what's appropriate, and therefore providing hierarchies of tags will make things worse by annoying someone with every possible choice. Commented Apr 4, 2010 at 5:26

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