Skip to main content
17 events
when toggle format what by license comment
May 23, 2017 at 12:40 history edited CommunityBot
replaced http://stackoverflow.com/ with https://stackoverflow.com/
May 31, 2016 at 3:58 audit Close votes
May 31, 2016 at 3:59
May 18, 2016 at 19:23 vote accept boot4life
May 13, 2016 at 17:12 answer added axl timeline score: 1
May 10, 2016 at 19:17 history tweeted twitter.com/StackProgrammer/status/730114615997239297
May 10, 2016 at 8:57 comment added boot4life I'm not sure. I was thinking about Arabic digits and thousands separators in various forms. (Turns out none of them are in effect.)
May 9, 2016 at 23:25 answer added Peter Green timeline score: 1
May 9, 2016 at 21:57 comment added Robert Harvey @boot4life: Eh, think about this specific situation a moment. What could possibly be culturally-specific about an integer?
May 9, 2016 at 21:56 history edited boot4life CC BY-SA 3.0
added 201 characters in body
May 9, 2016 at 21:54 comment added boot4life One could argue that not specifying the culture smells like a bug and makes it harder to read the code.
May 9, 2016 at 19:18 comment added Нет войне How is it known that the application will only run in one culture?
May 9, 2016 at 18:59 answer added JacquesB timeline score: 4
May 9, 2016 at 18:49 comment added Robert Harvey Also, if you read the post I linked carefullly, it says that the formatting of ints does not vary by culture in practice.
May 9, 2016 at 18:45 comment added Robert Harvey 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.
May 9, 2016 at 18:41 comment added JacquesB @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.
May 9, 2016 at 18:28 comment added Robert Harvey See here: Is int32.ToString() culture-specific?
May 9, 2016 at 18:10 history asked boot4life CC BY-SA 3.0