fsharp / fsharp.github.io

F# Core Engineering Group
http://fsharp.github.io
45 stars 53 forks source link

Added section on cultural processing of strings #18

Closed Bellarmine-Head closed 9 years ago

Bellarmine-Head commented 9 years ago

Added section "Guidelines for the cultural processing of strings in .NET generally, and F# specifically" just before the "General Guidelines" section.

Bellarmine-Head commented 9 years ago

@dsyme - I'm not sure exactly how you wanted the material to be fitted in, so feel free to arrange as you wish.

mrange commented 9 years ago

I think this is an excellent write-up of the interesting topic of globalization in .NET. WRT to testing perhaps one should give the turkish culture as an example over the french as turkish culture is notorious for it's i with a dot and i without a dot. When it comes numbers I think swiss culture seems to be one of the worst (and therefore potentially good for testing) as it uses ',' as decimal separator for all amounts except currencies which uses '.'.

mrange commented 9 years ago

Perhaps its worth mentioning that culture can affect performance as well (norwegian samish culture once caused an application to hang as string comparison were roughly 1,000 times slower).

cdrnet commented 9 years ago

@mrange re Swiss de-CH number formatting: this is actually a (imo misguided) change in Win8.1 and affects clean installs only, Win8.0 and older and updated 8.1 systems are fine. So better not rely on it.

mrange commented 9 years ago

I wasn't aware of the bug. I just find the Swiss culture interesting from a test perspective


From: Christoph Ruegg Sent: 2014-11-10 23:45 To: fsharp/fsharp.github.io Cc: mrange Subject: Re: [fsharp.github.io] Added section on cultural processing of strings (#18)

@mrange re Swiss de-CH number formatting: this is actually a misguided change (aka bug) in Win8.1 and affects clean installs only, Win8.0 and older and updated systems are fine. So better not rely on it.


Reply to this email directly or view it on GitHub: https://github.com/fsharp/fsharp.github.io/pull/18#issuecomment-62470236

dsyme commented 9 years ago

Thanks for this great contribution.

Cheers! Don

Bellarmine-Head commented 9 years ago

You're welcome, Don. I'm glad to have the chance to spread the word about this stuff, which I take very seriously. Ping me if you require more at some point in the future.

Andrew

dsyme commented 9 years ago

Please stay wathing this repo and help contribute to further discussions, it's great to have some "stricter" input :)

Bellarmine-Head commented 9 years ago

Heh - I'm pretty strict on the Framework Design Guidelines stuff. New hires at my place of work wince in pain at my strictness. :)