I personally like capital "V" for both Views and View as "Views" always seems to be capitalised, I thought it was a "branding" kind of thing because I don't see any other module in core always being capitalised - we don't make a point of writing "Comments" or "Nodes" the same way that we write "Views" everywhere.
Others have said lowercase "v" because a view object isn't a proper noun.
I really don't mind, but patches in #1757550: [Meta] Convert core theme functions to Twig templates have been double-rejected because of the changes in capitalisation.
If we pick one we can update #1823416: [Obsolete] Twig coding standards and #1913208: [policy] Standardize template preprocess function documentation or at least point to this issue.
I actually think it would be awful if discussion/bike-shedding here derailed #1987510: [meta] Convert all core *.tpl.php templates to Twig as singular patch so I'm going to mark it as a followup for the conversion and postpone it.
Comments
Comment #1
joelpittetlowercase and pink for the column;)
Comment #2
thedavidmeister commentedThen why is the views module called "Views" everywhere?
Comment #3
shanethehat commentedI asked TimPlunkett about this a couple of days ago, and he said:
Comment #4
thedavidmeister commented#3 - ok, why is that? why does the Views module get special capitalisation when no other module in core does? we don't go out of our way to say "Number", "User" or "Path" when talking about other core modules, for example.
Since the Views modules is neither a person or a place, it isn't a proper noun http://en.wikipedia.org/wiki/Proper_noun
The only other reason for capitalisation in the english language (so, outside programming conventions like camel casing, etc..) is branding. If it's branding then the "Views" module is either the plural of the "View" or a made up word for branding. In the case of the latter, it seems pretty confusing that "Views" is a made up word with arbitrary capitalisation for branding purposes but then we're asserting that a "view" is a common noun and isn't capitalised.
I'm mostly looking at the Chevrolet example:
So really, if "views" is capitalised when it's a module but not when it's a singular "view" I'd actually say "I have a Views object" not "I have a view object" or "I have a View object".
Comment #5
thedavidmeister commentedComment #6
markhalliwellI think we do it because it's just another "drupalism" we adopted (with out even realizing it). It started as contrib, and given it's popularity, it probably has something to do with trying to differentiate it from other concepts in same doc blocks. For example: "The View used to display the teaser view". I don't know if that's an actual string anywhere, but you get the idea.
I don't think we should "brand" it at all. It's part of core now and Drupal is the "brand". Lets just lower case it and append the context of what we're referring to: "view object", "views module" and "view mode".
Comment #7
thedavidmeister commented#6 - I can get behind this. It makes sense to me that now Views is in core it becomes views like every other core module.
Comment #8
joelpittetI'm for lowercasing and keeping it consistent with all other core modules. Would like to get some people from VDC to chime in though too.
Comment #9
markhalliwellIf we get anymore "rejections" because of this, just reset the status and point them to this issue.
Comment #10
star-szrQuick re-title to reflect what this issue is/was about.
Comment #10.0
star-szrimage link