So recently my coding style has changed. Probably because I write more F# than I used to! But there’s something that just seems over the top when I see code like this:
/// <summary> /// A flag to keep track of whether help message was shown earlier. /// </summary> private static bool helpShown = false;
I understand why we have these all this extra fluff, but how much am I really getting for these extra lines?
This variable is not just called ‘bool1’ or something odd – it’s pretty self documenting. We already know that a Boolean variable is initialized as false by default so that’s not required either.
Is it wrong that I’d just want to type this:
private static bool helpShown;