Sign in
Log inSign up
Maxi Contieri⭐⭐⭐

2 comments

Anthony Fung
Anthony Fung
Mar 18, 2023

Interesting point of view. How do you feel about a class of classes, e.g.

public static class GlobalConstants
{
    public static class MaxPlayers
    {
        public const int MaxPlayers = 10;
    }

    public static class DefaultLanguage
    {
        public const string DefaultLanguage = "en-US";
    }

    public static class Math
    {
        public const double Pi = 3.14159;
    }
}
1
·
·1 reply
Maxi Contieri⭐⭐⭐
Maxi Contieri⭐⭐⭐
Author
·Mar 26, 2023

IMHO, Nested classes are yet another code smell

·