News for hackers. Stuff that matters.
Re:Scientists rename human genes to stop MS Excel from misre... by LatteLazy on Thursday August 06, 2020 @09:49AM (#24070816)
It's honestly amazing that Excel hasn't fixed this issue. It's pisses off an enormous number of users especially in basically any non-US country (even if 01/02 is a date, it isn't the second of January in most of the world...)
Re:Scientists rename human genes to stop MS Excel from misre... by T-hawk on Thursday August 06, 2020 @04:39PM (#24075228)
Excel is stuck. It can't change this behavior if it cares about backwards compatibility. There are uncountably many recorded macros and all sorts of scripts and data tools everywhere, that implicitly and inadvertently depend on behavior like this. Like Javascript's warts, you have to declare these as features and live with them.

Of course Microsoft has thought about this, it's silly to think they never have and we're smarter. Yes, this behavior is annoying and US-centric, they know that. But they also know that breaking compatibility with all these scripts and macros would be the worse problem in the larger picture. That picture is huge, it would be on the order of the scope of the Y2K effort to modify every code everywhere that's ever touched Excel dates.

Would you want Excel to introduce a "quirks mode" to handle this sort of thing?

Re:Scientists rename human genes to stop MS Excel from misre... by loktarogar on Thursday August 06, 2020 @04:52PM (#24075339)
imagine if they worked with the industry to build in a set of relatively agreed upon defaults, like turning autoformat off for dates that matched a critera. then geneticists could activate the geneticist profile and excel works as they'd expect. if they encountered a file that broke, they could turn that profile off.

that's a fairly sophisticated solution, but it's just one of many potential approaches to fixing the problem.

Re:Scientists rename human genes to stop MS Excel from misre... by mjevans on Thursday August 06, 2020 @05:18PM (#24075568)
It would be way less effort to have the same exact program under a completely new name.

MS Excel

MS (names are harder than I thought / remembered) Matrix

In the back-end they'd use the same sanity and share 99% of the code, but Excel would add in the cruft / warts compatibility quirks.

Re:Scientists rename human genes to stop MS Excel from misre... by roenxi on Thursday August 06, 2020 @09:02PM (#24076980)
And they could do even better technically and have "MS Excel" be implemented on top of MS Matrix using an extension framework. That'd really firewall the cruft and encourage the core program to be flexible.
Re:Scientists rename human genes to stop MS Excel from misre... by p1necone on Thursday August 06, 2020 @11:23PM (#24077753)
Less effort and they can charge twice for the same product, genius!
Re:Scientists rename human genes to stop MS Excel from misre... by HeavyStorm on Friday August 07, 2020 @06:08AM (#24080289)
Only everybody knows what excel is, and no one knows Matrix.

And unfortunately my guess is that most Excel users don't surf HN or other geek sites.

Re:Scientists rename human genes to stop MS Excel from misre... by mr_toad on Thursday August 06, 2020 @07:41PM (#24076574)
> It can't change this behavior

They could easily make it an optional behaviour.

Re:Scientists rename human genes to stop MS Excel from misre... by qubex on Friday August 07, 2020 @10:39AM (#24082339)
They could even have it on by default, or rather, have “Excel NG/Matrix” be an optional no-quirk behaviour regimen.

They could have a scripting environment variable that is “quirkkMode=ON” by default and would maintain backwards compatibility at the small expense of needing to specify sane behaviour as an exceptional circumstance: just another line of boilerplate.

There’s a lot of things they could do. They’ve no doubt considered all of them and then some, and yet they‘c’è decided to do almost nothing. I suppose that says something about the disconnect between how we and they perceive their incentives, but I’m not sure what that assertion is.

Re:Scientists rename human genes to stop MS Excel from misre... by Zetaphor on Thursday August 06, 2020 @10:21PM (#24077382)
Exactly, add a checkbox in the settings menu and the problem is solved for everyone.
Re:Scientists rename human genes to stop MS Excel from misre... by ThrowawayR2 on Friday August 07, 2020 @02:00PM (#24084754)
> "Exactly, add a checkbox in the settings menu and the problem is solved for everyone."

A million checkboxes in the settings menu later, people will be griping that "Excel is terrible for having all these crazy settings to deal with!"

Re:Scientists rename human genes to stop MS Excel from misre... by HeavyStorm on Friday August 07, 2020 @06:08AM (#24080296)
In other words, a quirks mode.
Re:Scientists rename human genes to stop MS Excel from misre... by boublepop on Friday August 07, 2020 @03:24PM (#24085579)
Excel doesn’t care about backwards compatibility. Random things break every single major update. If only the breaks were because they where fixing these extremely annoying “features” then it would be understandable, but no, they persist.
Re:Scientists rename human genes to stop MS Excel from misre... by owl57 on Thursday August 06, 2020 @10:41AM (#24071313)
I don't even know why anyone still uses this notation in today's connected world. 2020-08-06 is ideal. Russian standard (06.08.2020) is uglier (digits are not sorted by significance) but still unambiguous. But that slash horror? Why would anyone continue inflicting this on themselves and their peers!?
Re:Scientists rename human genes to stop MS Excel from misre... by reportgunner on Thursday August 06, 2020 @12:01PM (#24072195)
yes, YYYY-MM-DD HH:MM:SS is the only proper format.

It is sorted from the greatest unit (year) to the smallest unit (second). If you treat them as text and sort alphabetically they still get sorted from oldest to newest.

Other formats don't sort properly.

writing dd.mm.yyyy is like writing time ss:mm:hh

writing mm/dd/yyyy is like writing time mm/ss/hh

If I really have to put YYYY at the end of the date I use the 'dd-mmm-yyyy' format which excel translates based on client locale:

- 13-mar-2020 in enUS

- 13-bře-2020 in czech

Re:Scientists rename human genes to stop MS Excel from misre... by arrrg on Friday August 07, 2020 @02:37AM (#24079011)
I agree with everything you are saying about sorting and I frequently use YYYY-MM-DD, however I do want to make one point: DD.MM.YYYY does make some human sense as a date format since the year is very rarely important (and if the year is actually important often the day is so unimportant that it can be left out), the month is sometimes important and the day is often the most relevant piece of information.

So for any kind of practical planning that day first order makes some sense, but I wouldn’t die on a hill for it.

Re:Scientists rename human genes to stop MS Excel from misre... by reportgunner on Friday August 07, 2020 @03:32AM (#24079305)
I see where you are coming from, but I would argue that if you omit a part, it's not a date anymore.
Re:Scientists rename human genes to stop MS Excel from misre... by owl57 on Friday August 07, 2020 @11:08AM (#24082656)
Yes! It's not the first time I posted a rant on the net and found myself guilty of the sin the very next day. This time, a web app of mine has big tables full of dates, and I didn't quickly figure out a way to show the full date without too much clutter. So, I used "dd.mm" and postponed a finer design till next year. Guess what, this UI element hasn't changed in the next three years and today I finally stumbled on a bunch of records which really can't be deduced from context.
Re:Scientists rename human genes to stop MS Excel from misre... by qubex on Friday August 07, 2020 @10:40AM (#24082352)
It’s a cultural thing: if I’m not mistaken the traditional Chinese system is Y-M-D and always has been.
Re:Scientists rename human genes to stop MS Excel from misre... by sneak on Thursday August 06, 2020 @01:56PM (#24073594)
I suggest a literal T instead of a space, and don’t forget the timezone offset (or a literal Z).

ISO 8601 is great.

Re:Scientists rename human genes to stop MS Excel from misre... by mjevans on Thursday August 06, 2020 @05:22PM (#24075593)
I agree with and independently also use the parent's modification to ISO8601 with that respect; though I do frequently call the format string that contains whatever magic cookies get that output something similar to iso8601mod. (The modifications: Emit a string rather than a T, and (if included) use the email like +/-OFFSET to indicate the current timezone offset rather than specify a timezone. No offset implies UTC for system times and local time for human-facing times.)
Re:Scientists rename human genes to stop MS Excel from misre... by out_of_protocol on Thursday August 06, 2020 @06:48PM (#24076238)
Well it is but the T is ugly :/
Re:Scientists rename human genes to stop MS Excel from misre... by II2II on Thursday August 06, 2020 @07:25PM (#24076477)
I would argue that its use goes beyond sorting and includes people making mental estimates about time intervals. Having some sort of sensible order helps here, which I'm guessing is YMD for left to right languages and DMY for right to left languages, since that puts the most significant digits first.
Re:Scientists rename human genes to stop MS Excel from misre... by BrandoElFollito on Saturday August 08, 2020 @01:00PM (#24093143)
No, it does not take into account timezones.

We have ISO 8601, no need to reinvent the wheel as a square.

https://xkcd.com/1179/ (date only)

Re:Scientists rename human genes to stop MS Excel from misre... by dependenttypes on Tuesday August 11, 2020 @08:03AM (#24119429)
This XKCD is incorrect, 20130227 is also a valid ISO 8601 date.
Re:Scientists rename human genes to stop MS Excel from misre... by javier123454321 on Thursday August 06, 2020 @12:25PM (#24072477)
agreed fully
Re:Scientists rename human genes to stop MS Excel from misre... by spuz on Thursday August 06, 2020 @10:45AM (#24071359)
How is "06.08.2020" unambiguous?
Re:Scientists rename human genes to stop MS Excel from misre... by tremon on Thursday August 06, 2020 @10:56AM (#24071463)
There are no conventions that write a date as mm.dd.yyyy, so if you encounter a date in that format, it is safe to assume dd.mm.yyyy.

Contrast this with the slash or dash notation, where both mm/dd/yyyy and dd/mm/yyyy are prevalent in the world. But 2020-08-06 is unambiguous in the same way that 06.08.2020 is: the only convention in common use is yyyy-mm-dd.

Re:Scientists rename human genes to stop MS Excel from misre... by dragonwriter on Thursday August 06, 2020 @11:51AM (#24072071)
> There are no conventions that write a date as mm.dd.yyyy

While slash is the most common, use of hyphens and dots as separators for US-style dates is not at all unheard of in the wild for manually formatted dates. The fact that it doesn't show up in lists of national “preferred formats” and doesn't tend to be commonly implemented as a prebaked format in software doesn't mean it's not a real thing people see and will interpret dates they see in light of.

Re:Scientists rename human genes to stop MS Excel from misre... by stjohnswarts on Thursday August 06, 2020 @04:32PM (#24075157)
How is that safe to assume??? You can't assume anything, why not ask the source of the data? The other way is to attempt to confirm which order by looking for first 2 digits > 12, but that info might not be available depending on the data.
Re:Scientists rename human genes to stop MS Excel from misre... by fnbr on Thursday August 06, 2020 @11:21AM (#24071720)
Unfortunately, this isn’t true in Canada. MDY is very common, especially in the English parts. See:

https://en.m.wikipedia.org/wiki/Date_format_by_country

Re:Scientists rename human genes to stop MS Excel from misre... by FabHK on Thursday August 06, 2020 @11:47AM (#24072007)
MDY separated by dots? The link you gave does not seem to support that.
Re:Scientists rename human genes to stop MS Excel from misre... by arrrg on Friday August 07, 2020 @02:41AM (#24079025)
Separating dates with dots (DD.MM.YYYY) is what’s taught in school in Germany.

So, yeah, there is a convention to write dates exactly that way.

Re:Scientists rename human genes to stop MS Excel from misre... by lemmonii on Friday August 07, 2020 @03:02AM (#24079144)
Read the comment again...
Re:Scientists rename human genes to stop MS Excel from misre... by brummm on Thursday August 06, 2020 @01:52PM (#24073545)
It's unambiguous for everybody except Americans with their weird switching.
Re:Scientists rename human genes to stop MS Excel from misre... by owl57 on Thursday August 06, 2020 @10:55AM (#24071455)
Does anyone use mm.dd.yyyy?
Re:Scientists rename human genes to stop MS Excel from misre... by brummm on Thursday August 06, 2020 @01:52PM (#24073535)
Germany does. Probably the majority of Europe too
Re:Scientists rename human genes to stop MS Excel from misre... by eitland on Thursday August 06, 2020 @02:41PM (#24074088)
I think you misread: most of mainland Europe including Germany use dd.mm.yyyy or something else that is reasonable sane even if it isn't sortable like yyyy-mm-dd. Or am I wrong on this? Norway at least use mm.dd.yyyy and never mm/dd or mm.dd.yyyy
Re:Scientists rename human genes to stop MS Excel from misre... by pintxo on Thursday August 06, 2020 @04:07PM (#24074905)
Afaik Norway also uses the sane format: DD.MM.YYYY

See parent source: https://en.wikipedia.org/wiki/Date_format_by_country

Re:Scientists rename human genes to stop MS Excel from misre... by eitland on Thursday August 06, 2020 @05:08PM (#24075480)
Edit: of course. To late to edit but if you read my post, but that was what I meant.
Re:Scientists rename human genes to stop MS Excel from misre... by lioeters on Thursday August 06, 2020 @03:46PM (#24074701)
> The format dd.mm.yyyy using dots is the traditional German date format.

> Since 1996-05-01, the international format yyyy-mm-dd has become the official standard date format

https://en.wikipedia.org/wiki/Date_format_by_country

Re:Scientists rename human genes to stop MS Excel from misre... by arrrg on Friday August 07, 2020 @02:43AM (#24079041)
Schools still teach DD.MM.YYYY. That’s what’s relevant because that’s what people actually widely use.

Shouldn’t Americans be very familiar with the idea that official norms (the metric system) play no role if the people don’t want to use them?

Re:Scientists rename human genes to stop MS Excel from misre... by lioeters on Friday August 07, 2020 @11:14AM (#24082739)
I understand - it seems I was too optimistic to read that the use of yyyy-mm-dd has become "the official standard" in Germany, without considering the popular usage and convention under discussion.
Re:Scientists rename human genes to stop MS Excel from misre... by IgniteTheSun on Friday August 07, 2020 @03:55PM (#24085848)
I wish more people complied with ISO 8601.

    https://en.wikipedia.org/wiki/ISO_8601
Even better, wish everyone would standardize on:

* YYYYMMDD for dates

* YYYY-MM for months

* YYYYMMDDTHHMM for time where T is the capital letter T. Two additional digits can be added for seconds and then as many additional digits as needed for precision.

------------------

[Edited for format]

Re:Scientists rename human genes to stop MS Excel from misre... by sixdimensional on Thursday August 06, 2020 @10:43AM (#24071341)
ISO8601
Re:Scientists rename human genes to stop MS Excel from misre... by DocG on Friday August 07, 2020 @07:17AM (#24080670)
Because it's meant for human consumption. Day and month is usually relevant, while year is less so, so let's put it last.
Re:Scientists rename human genes to stop MS Excel from misre... by LatteLazy on Thursday August 06, 2020 @12:09PM (#24072281)
>2020-08-06 I've just switched to 20200806. Let it be an int and be done with it.
Re:Scientists rename human genes to stop MS Excel from misre... by gmfawcett on Thursday August 06, 2020 @05:44PM (#24075801)
A beautiful property of using ints to represent dates is that you can manipulate them using simple arithmetic. For example, if you want to refer to noon-time on 20200806, you can simply divide the day in two and write it as 10100403. An elegant, DRY solution to a perennial problem.
Re:Scientists rename human genes to stop MS Excel from misre... by trianglem on Thursday August 06, 2020 @06:51PM (#24076258)
I don’t get this? What does 10100403 mean?
Re:Scientists rename human genes to stop MS Excel from misre... by gmfawcett on Thursday August 06, 2020 @07:04PM (#24076343)
The poster is gently teasing the idea that integers like 20200806 are a reasonable way to to represent dates. Dividing 20200806 by 2, we get 10100403, representing the half-way point of the day (noon-time). Of course it's nonsense.
Re:Scientists rename human genes to stop MS Excel from misre... by trianglem on Friday August 07, 2020 @09:08PM (#24088073)
I’ve been had
Re:Scientists rename human genes to stop MS Excel from misre... by JackFr on Thursday August 06, 2020 @05:57PM (#24075906)
It’s beautiful. Just mod 7 to find the day of the week.
Re:Scientists rename human genes to stop MS Excel from misre... by gmfawcett on Thursday August 06, 2020 @06:05PM (#24075956)
Excellent example. Honestly, I have no idea why the concept hasn't caught on yet.

(I'd love to discuss this further... I'll be back on HN later tonight, sometime around 16834005.)

Re:Scientists rename human genes to stop MS Excel from misre... by owl57 on Thursday August 06, 2020 @12:28PM (#24072508)
Human readability sometimes matters.
Re:Scientists rename human genes to stop MS Excel from misre... by thaumasiotes on Thursday August 06, 2020 @04:48PM (#24075308)
The integer 20200806 is chosen solely for the purpose of human readability. If you actually wanted to store a date as an integer, you'd use the Julian day.
Re:Scientists rename human genes to stop MS Excel from misre... by stjohnswarts on Thursday August 06, 2020 @04:34PM (#24075174)
what human can't parse that? Sure it might take a half a second longer but it's hardly confusing.
Re:Scientists rename human genes to stop MS Excel from misre... by gmfawcett on Thursday August 06, 2020 @05:32PM (#24075684)
For those of us whose professional lives sometimes require staring at directory listings full of filenames like "output-200003021342"... for the love of God, please just put the dashes in.

I have an infinite number of dashes, I'll send you a lifetime supply!

Re:Scientists rename human genes to stop MS Excel from misre... by apricot on Thursday August 06, 2020 @09:44PM (#24077190)
greatideainthesameveinivedecidedtoforgospacesandpunctuationaswellbecauseitsavesspaceaswellaswearandtearonthekeyboard
Re:Scientists rename human genes to stop MS Excel from misre... by nikk1 on Thursday August 06, 2020 @11:21AM (#24071723)
There are dozens of auto-formatting "features" that piss me off each and every day across all of Microsoft's products.
Re:Scientists rename human genes to stop MS Excel from misre... by CarbyAu on Thursday August 06, 2020 @06:57PM (#24076297)
My pet hate:

- use the mouse to select precisely the part of the word/URL/string you want for Ctrl-C purposes

- it autocorrects your selection to the whole word including a CrLf if it is nearby.

Aaargh!

Re:Scientists rename human genes to stop MS Excel from misre... by wjsetzer on Friday August 07, 2020 @10:03AM (#24081925)
Reading this comment caused me frustration.

The only workaround I've found to be effective is selecting a few letters on one end of your intended selection and using ctrl+arrows to precisely select.

Re:Scientists rename human genes to stop MS Excel from misre... by LatteLazy on Thursday August 06, 2020 @11:23AM (#24071747)
You turn them off,forget about it, and then auto-update turns them all back on for you!
Re:Scientists rename human genes to stop MS Excel from misre... by jandrese on Thursday August 06, 2020 @04:03PM (#24074861)
Or you're on a different machine that doesn't have it and you have to decide if digging through the menus to turn them off is worse than manually undoing all of the "fixes" for your message.

Have you ever posted a code snippit into a default install of Outlook?

Re:Scientists rename human genes to stop MS Excel from misre... by stjohnswarts on Thursday August 06, 2020 @04:36PM (#24075200)
usually you can ctrl-z it, but it gets annoying if you're trying to type a small code snippet in MS Word or similar.
Re:Scientists rename human genes to stop MS Excel from misre... by stjohnswarts on Thursday August 06, 2020 @04:35PM (#24075183)
Even the default text editor on Mac OSX attempts to "fix" your typing. It's not just Microsoft.
Re:Scientists rename human genes to stop MS Excel from misre... by danso on Thursday August 06, 2020 @11:31AM (#24071823)
I personally dislike this behavior in Excel, as I'm accustomed to working with plaintext data and using pandas/strftime to get datetimes as I need them. But I also figure that my situation as a technical user is likely in the minority, compared to people who are using spreadsheets every day to do manual data entry.

That said, I completely agree with the tangential issue of U.S. dates being misleadingly different in format compared to non-U.S. Always an issue when teaching data/spreadsheets to a class with at least one non-American – but also a good reason to teach them the value of ISO8601 :)

Re:Scientists rename human genes to stop MS Excel from misre... by reportgunner on Thursday August 06, 2020 @11:54AM (#24072111)
It's not just about data entry. Entering dates properly in excel allows you to calculate with dates.

If you want to know what date and time it will be 476 days and 12 hours from today you can just do =TODAY()+476.5

This is very useful when the requirement is to 'happen every 10 days' or you're looking for '30 days in the past'

Excel has a very low barrier of entry compared to pandas while boasting an immense amount of power and features. I think it was not an easy challenge to keep it going over the decades.

> US dates I'm a non-US person and I fixed this simply by changing my locale to enUS everywhere. It has an added benefit of not having weird translations of everything in random tools and excel functions not being localized to their cringy versions in my native tongue.

Re:Scientists rename human genes to stop MS Excel from misre... by pintxo on Thursday August 06, 2020 @09:54AM (#24070865)
For Germany this converts to the first of Feb, and this way of entering dates is just so convenient, as you can type the whole date just using the keys from the num block. We do actually support this format in our app for date entry, simply because it's so convenient.
Re:Scientists rename human genes to stop MS Excel from misre... by FrojoS on Thursday August 06, 2020 @03:21PM (#24074471)
The usual way to write the date Feb 1st in Germany (and I think anywhere but the US) is 01.02 or 1.2. but not 01/02 And the . is part of the num block as well.

Also, data being interpreted different based on region/language settings is a sure way to end up with bugs, so I think its a terrible thing that Excel does this.

Re:Scientists rename human genes to stop MS Excel from misre... by TeMPOraL on Thursday August 06, 2020 @04:05PM (#24074881)
I'd say that in general, we need to get rid of locales in computing. They're an unending source of bugs and annoyances.

It's not "techies know best" whining. We've been increasingly computerizing the economy for the past 50+ years; it's past time for societies to adapt to that reality, instead of wasting time and money on dealing with dozens of date formats, number separators, currency notations, etc.

Re:Scientists rename human genes to stop MS Excel from misre... by pintxo on Thursday August 06, 2020 @04:14PM (#24074973)
We are going to get rid of locales as much as we are going to get rid of local languages, tradition and culture.

The US switched to the metric system in the 60s and there is a shitload of benefits in doing so. Has it worked? Not really. Still using the old system everywhere.

So the solution cannot be to get rid of locales, but to actually use them properly:

- Always use the right locale for the job (the OS or browser should be the oracle for the right locale to use)

- Read the data in the user defined locale

- Store the data in some canonical form (e.g. store numbers as number types instead of strings, use ISO-8601 for dates, ...)

- Write the data to the user defined locale

Re:Scientists rename human genes to stop MS Excel from misre... by TeMPOraL on Thursday August 06, 2020 @05:19PM (#24075575)
If you program in C++/Java and all your libraries handle locale correctly, it's doable. A bit more difficult in languages and libraries written by people who aren't even aware of the concept - of which there's plenty. Impossible if you're dealing with customers or managers who don't understand the concept of "data type". The latter is, for example, why the problem from TFA exists in the first place - i.e. Excel being stringly typed, and eagerly converting data into your system locale.

And then, there's the problem of users - whatever locale they have set in their system were most likely not set by them, and are often misaligned with what they're naturally using.

There's a lot of bugs and issues happening to people every day that could be removed if major software vendors said, "sorry, the only allowed input format for date is ISO8601, and dot is the only valid decimal separator; take it or leave it".

Re:Scientists rename human genes to stop MS Excel from misre... by mostlylurks on Thursday August 06, 2020 @08:08PM (#24076702)
The problem is that having a near system-wide locale setting is a bad idea; it necessarily causes friction because it is far less granular then it should be. Ideally, the locale should be a property of some piece of content, if that content necessitates formatting or interpreting some underlying data whose presentation is locale-dependent, otherwise absent. The locale should not be determined by the OS or the browser since it would be reasonable for a user to want to use different locales for different applications and web pages (or pieces of content within web pages).

Furthermore, I would argue that the very notion of user locale based localization by default is misguided, since it is fundamentally no different from automatic translation of content based on the users' UI language setting. It is a form of misrepresenting the content, though with things like dates you usually don't lose much information in the process.

Re:Scientists rename human genes to stop MS Excel from misre... by stjohnswarts on Thursday August 06, 2020 @04:39PM (#24075221)
What computer programmer can't handle locales? I mean that's 1st year comp programming 101 stuff. I've never had an issue. Sure I've had to fix other's work but it was usually old stuff that never knew it would be leaving the factory floor where it was being originally written, but still.
Re:Scientists rename human genes to stop MS Excel from misre... by TeMPOraL on Thursday August 06, 2020 @05:29PM (#24075659)
Almost all of them, judging by software I've been dealing with on both Windows and Linux systems, as well as the web. Even the big companies full of smart people get it wrong - as evidenced by Excel, and the problems like those described in TFA.

The problem doesn't even have a correct solution, because the locale settings in the OS and the browser aren't often set by end users (a regular person probably doesn't even know that they exist) and the defaults depend on many random factors (like which store you bought your computer with preinstalled Windows from).

Re:Scientists rename human genes to stop MS Excel from misre... by dependenttypes on Wednesday August 12, 2020 @08:57AM (#24131577)
Re:Scientists rename human genes to stop MS Excel from misre... by stjohnswarts on Thursday August 06, 2020 @04:38PM (#24075219)
What computer programmer can't handle locales? I mean that's 1st year comp programming 101 stuff. I've never had an issue. Sure I've had to fix other's work but it was usually old stuff that never knew it would be leaving the factory floor where it was being used, but still.
Re:Scientists rename human genes to stop MS Excel from misre... by pintxo on Thursday August 06, 2020 @04:03PM (#24074867)
a) You write "1/2" and Excel replaces it with "01. Feb" by default if using de-DE as Locale (just checked it) [This auto replacement is also the basis of the linked article]

b) There is no "." on the num-pad for German keyboard layouts, they have a "," the German decimal separator.

Re:Scientists rename human genes to stop MS Excel from misre... by FrojoS on Friday August 07, 2020 @07:24PM (#24087445)
Damn, you‘re right about the comma on German num blocks. I’ve avoided anything but US Keyboards for over a decade. Local keyboards are just another pain, like OS wide locals.
Re:Scientists rename human genes to stop MS Excel from misre... by stjohnswarts on Thursday August 06, 2020 @04:40PM (#24075236)
If you write 1/2 just put a ' in front of it.
Re:Scientists rename human genes to stop MS Excel from misre... by pintxo on Thursday August 06, 2020 @05:50PM (#24075841)
Not if I want it to be converted to a date ;-)
Re:Scientists rename human genes to stop MS Excel from misre... by LatteLazy on Thursday August 06, 2020 @10:03AM (#24070962)
Maybe American dates are only foisted on us English speakers? Yet another complexity to be unravelled...
Re:Scientists rename human genes to stop MS Excel from misre... by anon98356 on Thursday August 06, 2020 @11:33AM (#24071847)
As an non American English speaker Excel would also format that as 1 Feb for me. It has been pretty good at picking up your locale for a long time, and is also reasonably trivial to change
Re:Scientists rename human genes to stop MS Excel from misre... by vsareto on Thursday August 06, 2020 @10:27AM (#24071163)
>It's honestly amazing that Excel hasn't fixed this issue.

I'm surprised there hasn't been a dotfile option added yet

Re:Scientists rename human genes to stop MS Excel from misre... by jtdev on Thursday August 06, 2020 @11:02AM (#24071520)
Maybe a registry edit?
Re:Scientists rename human genes to stop MS Excel from misre... by dirtnugget on Saturday August 08, 2020 @01:44AM (#24089364)
Sure, open the gates to hell.
Re:Scientists rename human genes to stop MS Excel from misre... by mattnewton on Thursday August 06, 2020 @11:27AM (#24071785)
Why hasn’t the field standardized around another tool? Is the list of excel plugins that something libreoffice couldn’t replace it, where they could just make add the options they need? My guess is the field is mostly lacking people interested in working on tooling like this?
Re:Scientists rename human genes to stop MS Excel from misre... by dnebdal on Thursday August 06, 2020 @09:48PM (#24077219)
It mostly has; most serious work is done in R and python, and there are a lot of supporting tools, documentation, and useful packages for both languages. It's not like the actual statistical analysis in your average paper was actually done in excel.

However, Excel remains a nice tool for "I'll just look at this CSV with the final results from this analysis, sort it by correlation, and see if any of the usual suspects are up top". And if the next step is "yeah, that looks fine - I'll just copy the top 100 genes into this convenient GUI pathway analysis tool", you're suddenly exposed to whatever Excel did to your data.

And as for "why not libreoffice", most researchers I personally run into are strong molecular biologists who've learned a subset of R for their uses; they're not really likely to go out and find libreoffice on their own. Besides, the writing process for papers includes sending drafts and spreadsheets to doctors and pathologists and editors, who are probably on hospital computers with a short whitelist of programs ... and I don't really want to debug subtle compatibility issues in the sort of garbage fire those documents can turn into.

Re:Scientists rename human genes to stop MS Excel from misre... by pas on Thursday August 06, 2020 @12:47PM (#24072727)
Because actual quality (usability of research, open access, reproducibility, data availability, sane exposition/introduction, proper methods, documentation and code) is not as important as producing a fancy manuscript.

Journals don't care, referees/reviewers might care, but they are unpaid and they usually don't want to rock the boat that much.

Re:Scientists rename human genes to stop MS Excel from misre... by stjohnswarts on Thursday August 06, 2020 @04:29PM (#24075124)
But you can select from dozens of formats in the cell setup? Not sure I understand the issue?
Re:Scientists rename human genes to stop MS Excel from misre... by LatteLazy on Thursday August 06, 2020 @04:48PM (#24075307)
You can select any format you like. Then, if you put in 01/01, excel ignores your format choice, displays Jan-01 and puts 46000 in the actual cell. If you re-select the text format, you get "46000". The 01/01 you actually entered is gone forever.

Now imagine you load a file with 1000s of values in the form AB/CD, many are trashed. If you save the file, you've lost the original data.

All because it might save some data entry drone 5 seconds to expressly make something a date.

There are then also issues about whether "01/02", assuming it actually is a date, should be the second of Jan (US) or the first of Feb (EU, UK, North America ex US, Africa and Pacific regions). In many places, based on some arbitrary and we'll hidden settings, you will get the wrong result.

I honestly think the only reason excel does this is to force you to use excel formats and make it harder to work with non-MS products...

Re:Scientists rename human genes to stop MS Excel from misre... by airstrike on Thursday August 06, 2020 @10:03AM (#24070956)
Just type '01/02 or ="01/02" and get on with your life
Re:Scientists rename human genes to stop MS Excel from misre... by wombatpm on Thursday August 06, 2020 @03:38PM (#24074624)
Better learn to properly import data via csv. If you just double click you get the excel helpfulness. If you choose open you can specify the column formats. I load dates and zip codes as text and then format the columns correctly AFTER everything loads. VBA macros are wonderful if you have the same format over and over again. If I has a nickle for everytime excel munged a date or stripped a leading zero from a zip code, I'd be rich beyond dreams.
Re:Scientists rename human genes to stop MS Excel from misre... by jandrese on Thursday August 06, 2020 @04:06PM (#24074897)
I've always been surprised at how bad Excel is at importing CSV files. The solution feels like it was hacked together by an intern over the weekend even though this is an incredibly common use case.

I had to build a very basic CSV->XLS tool once because the built-in CSV import kept screwing up. Admittedly the CSV files were slightly mis-formatted in places, but that wasn't the only headache with the import.

Re:Scientists rename human genes to stop MS Excel from misre... by _4570 on Friday August 07, 2020 @01:23PM (#24084359)
It's really good these days compared to a few years back. You just need to use the import feature in the Data ribbon menu instead of just double clicking on the csv file. This way you get to use the "Power Query" tool that allows you to import a csv file a lot more precisely.
Re:Scientists rename human genes to stop MS Excel from misre... by LatteLazy on Thursday August 06, 2020 @10:30AM (#24071200)
I think you've failed to grasp the issue, it's way more than just things I type sadly. It prevents the use csv files for many purposes. That stops excel users interacting with the wider ecosystem of file\data processing systems...
Re:Scientists rename human genes to stop MS Excel from misre... by airstrike on Thursday August 06, 2020 @10:58AM (#24071475)
I think the reasoning is people type in "01/02" to actually mean Jan 2nd more often than they import CSVs into Excel. So Microsoft favored one over the other

I don't see a problem with that, as it's not undefined behavior – you know exactly how Excel will treat those values

Re:Scientists rename human genes to stop MS Excel from misre... by LatteLazy on Thursday August 06, 2020 @11:19AM (#24071697)
The problem is they destroy the original data.

If they want rawdata="01/02" to display as "Jan-02" (or whatever), that's annoying but I can fix it. But they also delete the raw data and replace it with "43862". Reformatting cannot fix that and it is Excel that has chosen to actively break it.

They're not even self consistent with this: If I carefully make sure the data is correct (use "'01/02"), then save as csv and load the same file, it breaks. What sort of program can't save\load without losing data!?

That's without touching why they need to interfere or whether the US standard is the correct one to use or that fact excel is no where near this aggressive with any other data format.

(edited to correct feb to jan)

Re:Scientists rename human genes to stop MS Excel from misre... by bad_user on Thursday August 06, 2020 @11:12AM (#24071631)
"01/02" does not translate to Jan 2nd in most of the world, because DMY is much more popular than MDY.

Excel is biased for US users.

Re:Scientists rename human genes to stop MS Excel from misre... by thaumasiotes on Thursday August 06, 2020 @04:53PM (#24075346)
> "01/02" does not translate to Jan 2nd in most of the world, because DMY is much more popular than MDY.

This doesn't follow. There's no year in 01/02. MD is more popular than DM.

Re:Scientists rename human genes to stop MS Excel from misre... by kergonath on Thursday August 06, 2020 @05:22PM (#24075594)
In which country do people use DMY, but also MD? This just sounds wrong, and my (admittedly limited) sampling shows that when DMY is abbreviated it becomes DM. 01/02 is still the 1st of February everywhere I went except in the US.
Re:Scientists rename human genes to stop MS Excel from misre... by thaumasiotes on Thursday August 06, 2020 @10:23PM (#24077389)
Who said someone used DMY combined with MD? DMY/MDY is not an exhaustive list of date formats, you know. It is not even an exhaustive list of "incredibly common date formats".
Re:Scientists rename human genes to stop MS Excel from misre... by kergonath on Friday August 07, 2020 @04:38AM (#24079723)
You said “MD is more popular than DM”. In most countries I’ve been to DM and DMY are used more or less interchangeably (with different separators). However, I have never seen anyone use MD, though I assume it happens in the US.

I made no allusion to DMY and MDY being the only possibilities, because that would be ridiculous.

Re:Scientists rename human genes to stop MS Excel from misre... by thaumasiotes on Friday August 07, 2020 @05:07AM (#24079908)
> I made no allusion to DMY and MDY being the only possibilities, because that would be ridiculous.

You did indeed. How else could you interpret this exchange?

>>> "01/02" does not translate to Jan 2nd in most of the world, because DMY is much more popular than MDY.

>> There's no year in 01/02. MD is more popular than DM.

> In which country do people use DMY, but also MD?

The only way to have that question make any sense at all is to assume that MDY and DMY are the only options. That certainly is ridiculous, but I'm not the one who said it.

Re:Scientists rename human genes to stop MS Excel from misre... by kergonath on Friday August 07, 2020 @04:49PM (#24086309)
For fuck’s sake. It’s simple, really: - DMY is much more popular than MDY, in almost all of Europe, Africa, South America, and in large parts of Asia. - DM is a common short form of DMY when the year is not ambiguous => I highly doubt your assertion that MD is more popular than DM, and in fact I am certain that 1 February is a much more common way of parsing 01/02 than 2 January.

Note that none of these points require the absence of any other way of writing dates. You could indeed argue, preferably with examples and not hypotheticals, that some locales exist in which MD would be the natural way, and that they outweigh the others.

Now you can move the goalposts once more if you really need to. It really is tedious.

Re:Scientists rename human genes to stop MS Excel from misre... by knorker on Thursday August 06, 2020 @06:23PM (#24076065)
I think more common than that people mean first of February. Only the US is backwards.
Re:Scientists rename human genes to stop MS Excel from misre... by travisoneill1 on Thursday August 06, 2020 @01:25PM (#24073179)
Is that January 2, February 1, January 2002, or January 1902?
Re:Scientists rename human genes to stop MS Excel from misre... by airstrike on Thursday August 06, 2020 @02:28PM (#24073941)
In Excel? It's January 2nd of the current year, which again is probably the most common use
Re:Scientists rename human genes to stop MS Excel from misre... by jbeam on Thursday August 06, 2020 @02:55PM (#24074223)
In your copy of Excel it is January 2nd. In most other countries, it is February 1st.

But here's Excel's trick: you type in 01/02, Excel interprets that as January 2nd and switches it to the underlying OLE date format (some number in the 40000s). Ship that Excel file across the ocean were they would write Jan 1 as "02/01", and it shows them the date as "02/01." Excel uses your local date format preferences.

This is one reason why it is important for Excel to convert the raw input to another format. I'd probably prefer that it didn't touch it for CSV files, but I get it for .xlsx

Re:Scientists rename human genes to stop MS Excel from misre... by qayxc on Thursday August 06, 2020 @09:53AM (#24070855)
That's because it's not an issue at all.

It's people using a tool without knowing said tool. You can disable auto-formatting (or even better yet - set the column data type) with a simple click.

Re:Scientists rename human genes to stop MS Excel from misre... by LatteLazy on Thursday August 06, 2020 @09:59AM (#24070913)
Even if you correctly format a column, excel will ignore that if it sees something that looks like a date. That's part of the problem: this isn't just automatic formatting, it's very aggressive and hard to turn off. Plus you cannot revert the changes excel has made: turning 01/02 is converted to an ibt in 46000 range. So reformatting the cell doesn't get the original input back, it just lands you with a bunch of ints.

Back in the day I actually wrote a function that would undo this for some sheets that people kept breaking...

Re:Scientists rename human genes to stop MS Excel from misre... by pwinnski on Thursday August 06, 2020 @10:05AM (#24070971)
This is not auto-formatting, it's deeper than that. It is not actually possible to disable Excel's date recognition, although you can re-change the format of a cell after the fact.
Re:Scientists rename human genes to stop MS Excel from misre... by catalogia on Thursday August 06, 2020 @10:07AM (#24070985)
Excel is from an era when programs still catered to power users. Tools were made to have learning curves, ideally not particularly steep curves, but curves nevertheless. It wasn't expected that users would hit the app running, intuiting everything there was to know about the program in their first minute of using it.

The result is a rich deep program that users can grow into, rather than a shallow trivial program that optimizes for the noob experience and leaves power users out in the cold.

Re:Scientists rename human genes to stop MS Excel from misre... by jandrese on Thursday August 06, 2020 @04:09PM (#24074927)
Auto-formatting seems like more of a noob feature than a power user feature. Lacking control over when it happens is definitely not a power user feature.
Re:Scientists rename human genes to stop MS Excel from misre... by catalogia on Thursday August 06, 2020 @11:47PM (#24077986)
Treating SEPT1 as a date is behavior that will be correct for the vast majority of users, be they noob or experienced, and only incorrect for a very tiny minority of users who are doing things related to genetics. This sort of auto-completion feature is orthogonal to the noob/power user axis, except insofar as the user is expected to know how to circumvent this behavior if/when they need to.
Re:Scientists rename human genes to stop MS Excel from misre... by jandrese on Friday August 07, 2020 @12:35PM (#24083799)
The power user behavior would be to only do the conversion on cells that are typed as DATE datatype. But that would catch the noobs who don't know to set the cell type.
Re:Scientists rename human genes to stop MS Excel from misre... by javier123454321 on Thursday August 06, 2020 @12:23PM (#24072464)
Honestly though, dates make more sense being month first, that way if you are trying to discover which one comes first, 10th of february or 10th of january, you only have to go to the first parameter in format 01/10 vs 02/10 instead of 10/01, 10/02. Logically, the most broad data item should go first.
Re:Scientists rename human genes to stop MS Excel from misre... by RugnirViking on Thursday August 06, 2020 @02:23PM (#24073889)
Which is why most systems are yyyy/mm/DD when this matters
Re:Scientists rename human genes to stop MS Excel from misre... by knorker on Thursday August 06, 2020 @06:26PM (#24076089)
When does it matter to have month and day, but not year? Like the one time is for birthdays. The web is full of articles exactly dated with old day and month, neglecting year.