21

When looking over the proposal to burninate [inclusion], comments were made about , , and existing. All three of these tags are very broad, covering a variety of languages and use cases. We should try our best to split these tags up into more specific tags where appropriate.


has a tag excerpt of

Required is an HTML attribute of an input element that forces that the input be supplied.

and the wiki for the tag is

Required fields are a common form of front-end validation to prevent users from submitting data that is logically incomplete. Though making fields required may not be an end-all validation technique, it is sufficient in a large number of cases.

As I commented on the other post, the HTML required attribute, if it deserves a tag, probably should be like what was proposed for [strong]. The problem is that the tag covers many different subjects, covering a variety of languages and situations, which you can tell by looking at the popular questions.

I propose that we burninate because it is too general, and using it with extra tags does not help the problem.


does not have as many questions as the other tags, but it still suffers from the issue of being very general. It does not have a tag wiki, which is only contributing to the issue.

Most of the questions either fit in with or involve versioning, where one package "requires" another package. I propose that we either burninate or clarify .


is slightly more complex, as while it suffers from the same issue as and , in that it is also very broad, it can be helped by using additional tags. Plenty of languages have "require" keywords, or similar methods for including files, and some of them are even mentioned in the tag wiki. Specifically: JavaScript, PHP, Ruby, and Lua.

PHP also has control of , which could also probably be grouped with whatever happens to the PHP questions in . also suffers from the same issue, as so many languages have the keyword.

I'm actually not confident on what we should do with that tag, but perhaps the tag should be split up into more specialized tags?

6
  • There was alerady a wiki tag for required with the exact same wiki - I just changed the excerpt Commented Jan 22, 2015 at 3:19
  • @ZachSaucier My bad, I looked through the history quickly and must have mis-read the dates. I've corrected the original post. Commented Jan 22, 2015 at 3:26
  • 1
    I would suggest that anything tagged as required be re-tagged as required-field instead, since that seems to be a more appropriate (if somewhat underused) alternative. It could then be used in conjunction with the html tag (or not) depending on the question.
    – GoBusto
    Commented Jan 22, 2015 at 9:04
  • required-field needs a tag wiki, and wouldn't it be better to make them synonyms? Commented Jan 22, 2015 at 22:57
  • 1
    I'm just wary of required being misused due to the ambiguity of its name. Here's a horribly contrived example: A question about SWF files on web pages might be tagged as flash required because the page requires a Flash player to be installed. I'd prefer to do away with ambiguous tag names, rather than relying on (new) users reading their descriptions. If the purpose of a tag is obvious, then the chances of it being unintentionally misused are reduced - The only way that required-field could be misused is if the question starts with "I'm working on a farming simulator, and..." :)
    – GoBusto
    Commented Jan 23, 2015 at 9:01
  • 2
    Incidentally, we seem to have isrequired as well (zero followers, six questions) - I'm not sure if this would also be relevant to the discussion?
    – GoBusto
    Commented Jan 23, 2015 at 9:06

0

You must log in to answer this question.

Browse other questions tagged .