Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • 1
    See here: Is int32.ToString() culture-specific? Commented May 9, 2016 at 18:28
  • @RobertHarvey: The formatting of ints may vary by culture in theory, but in this particular example (InvariantCulture vs German) it will always be the same. So the question is purely stylistic - should the InvariantCulture be explicitly stated even though it won't make any difference. Commented May 9, 2016 at 18:41
  • 3
    My philosophy is that, if you add things to your code that are not needed, you will increase the cognitive load for the next programmer because they will have to spend time reading the unnecessary code and wondering why it is there. All other things being equal, less code is always better than more. Commented May 9, 2016 at 18:45
  • Also, if you read the post I linked carefullly, it says that the formatting of ints does not vary by culture in practice. Commented May 9, 2016 at 18:49
  • How is it known that the application will only run in one culture? Commented May 9, 2016 at 19:18