Search posts, tags, users, and pages
Constants should be together to find them easily
Maxi Contieri
@mcsee · Buenos Aires
Software Engineer
I’m a senior software engineer loving clean code, and declarative designs. S.O.L.I.D. and agile methodologies fan.
Markdown supported · ⌘↵ to post
Anthony Fung
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; } }
IMHO, Nested classes are yet another code smell
Anthony Fung
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; } }