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;