Post Closed as "primarily opinion-based" by gbjbaanb, user40980, gnat, user22815, Ixrec
    Tweeted twitter.com/#!/StackProgrammer/status/647027614780162048
2 Grammar
source | link

When using variables of which their plural and singular are both the same, how do you name them? Are there any standards out there?

For example:

Series[] series  // Plural
Series series    // Singular

Indepth:

To be specific, my collection of series needs to be called series (due to JSON formatting), would you consider naming the singular form of Series that gets added to the collection to be named Series s?

As in:

List<Series> series = new List<Series>();
Series s;

while (someBool)
{
    s = new Series();
    s.Name = "Name";
    while (anotherBool)
    {
        s.AddValue(someValue);
    }
    series.Add(s);
}

When using variables of which their plural and singular are both the same, how do you name them? Are there any standards out there?

For example:

Series[] series  // Plural
Series series    // Singular

Indepth:

To be specific, my collection of series needs to be called series (due to JSON formatting), would you consider naming the singular form of Series that gets added to the collection to be named Series s?

As in:

List<Series> series = new List<Series>();
Series s;

while (someBool)
{
    s = new Series();
    s.Name = "Name";
    while (anotherBool)
    {
        s.AddValue(someValue);
    }
    series.Add(s);
}

When using variables of which their plural and singular are both the same, how do you name them? Are there any standards out there?

For example:

Series[] series  // Plural
Series series    // Singular

Indepth:

To be specific, my collection of series needs to be called series (due to JSON formatting), would you consider naming the singular form of Series that gets added to the collection Series s?

As in:

List<Series> series = new List<Series>();
Series s;

while (someBool)
{
    s = new Series();
    s.Name = "Name";
    while (anotherBool)
    {
        s.AddValue(someValue);
    }
    series.Add(s);
}
1
source | link

What are the standards for dealing with pluralia tantum in your code?

When using variables of which their plural and singular are both the same, how do you name them? Are there any standards out there?

For example:

Series[] series  // Plural
Series series    // Singular

Indepth:

To be specific, my collection of series needs to be called series (due to JSON formatting), would you consider naming the singular form of Series that gets added to the collection to be named Series s?

As in:

List<Series> series = new List<Series>();
Series s;

while (someBool)
{
    s = new Series();
    s.Name = "Name";
    while (anotherBool)
    {
        s.AddValue(someValue);
    }
    series.Add(s);
}