This might be (or seem to be) a minor question. But it might also have a considerable impact on searchability.
Is there any consensus about how class- or method names should be written in the title of a question?
Updated, to justify this question, partially in response to the comments:
There may have been doubts that this is relevant, so here is an example that shows the difference: When entering "table view cell image is"
as a (partial) title for a new question, then the results are the shown in the "Similar Questions" popup are completely different than those that appear when entering "tableViewCell image is"
. So the whether class names in the title are spelled as individual words or written in CamelCase obviously does have an effect.
Further examples could be whether it is preferable to write
How to set the kernel initializer for a keras layer?
or whether the specific entity (which is a kernel_initializer
) should be written using snake_case:
How to set the kernel_initializer for a keras layer?
One could even go so far to include the specific class name, like this:
How to assign a color to a UITableViewCell?
Even if it may look ugly or less readable at the first glance, it might have a positive effect on searchability.
Note that I don't propose any solution here. This this is really about whether the community prefers one or the other style, or whether there any real technical pros and cons. For example, I could imagine that it is easier to match a search query like "table view cell"
against the word "tableViewCell"
, via some sub-word-matching, than to match a query like "tableViewCell
" against the words "table view cell"
: There is no reasonable way to tokenize the word "tableviewcell"
so that the tokens can match the individual words...
I recently saw an edit in the review queue where someone essentially (mainly) replaced the words "table view cell"
in a question title with "tableViewCell"
. I wasn't sure whether this is an edit that is worth being accepted or whether it might even have a negative effect. That's one of the reasons of why I'm bringing this up here.
tableview
toUITableView
andtableViewCell
toUITableViewCell
helps the search engine. If you have evidence that it improves then do mention it