Live data from Hacker News

Scientists rename genes to stop Microsoft Excel from misreading them as dates (2020)

theverge.com

71–80 of 169 posts

Re: Scientists rename genes to stop Microsoft Excel from misreading them as dates (2020)

#71
post #62
post #29

> Scientists rename genes to stop Microsoft Excel from misreading them as dates I thought they fixed that bug. Oh wait, this is Microsoft. /s

I've seen no evidence this is a bug.

> I've seen no evidence this is a bug.

Maybe it depends on your use case, but why it converts almost everything to dates ? Why not to numbers ?

Re: Scientists rename genes to stop Microsoft Excel from misreading them as dates (2020)

#72
post #8

As a computer scientist this sounds ridiculous. Especially that they restrict themselves to Latin letters and Arabic numbers. I guess many people here will point out that they should use other tools. I think we should help them in any way. They could also prefix every gene with Gn so it cannot be confused with other acronyms (e.g., GnDEC12). It not only breaks parsing by computers but also by humans who might read of…

I was thinking we could use Welsh and Wingdings. That combination would surely cause less confusion and improve readability.

Re: Scientists rename genes to stop Microsoft Excel from misreading them as dates (2020)

#73
post #15

I think implicit conversions is the other billion dollar mistake in computing. It just shows up as a subtle source of mistakes in so many places. JavaScript, MySQL, YAML, Excel, PHP, just to make a few off the top of my head, have all caused countless bugs and security exploits due to implicit conversations of data which can be interpreted in multiple ways, and where the system happened to pick the wrong one.

null is really another special case of the same problem - allowing a nullable type to be implicitly coerced to a nullable one, or rather a general lack of type safety.

I was also just thinking this… but really only realized it reading the grand-post.

Probably the general rule is simply, “you get more bugs when expectations don’t match reality”.

Example: 1. (null) This value can’t be null 2. (article) This value won’t be converted into a date 3. (misc) This API can be called frequently

Re: Scientists rename genes to stop Microsoft Excel from misreading them as dates (2020)

#74
post #73
post #15

Earlier quoted context omitted.

null is really another special case of the same problem - allowing a nullable type to be implicitly coerced to a nullable one, or rather a general lack of type safety.

I was also just thinking this… but really only realized it reading the grand-post. Probably the general rule is simply, “you get more bugs when expectations don’t match reality”. Example: 1. (null) This value can’t be null 2. (article) This value won’t be converted into a date 3. (misc) This API can be called frequently

> Probably the general rule is simply, “you get more bugs when expectations don’t match reality”.

That's too vague to be useful. You might as well say "you get bugs when you write wrong code". Whereas framing it as a lack of type safety points towards an actionable solution.

Re: Scientists rename genes to stop Microsoft Excel from misreading them as dates (2020)

#75
post #8

As a computer scientist this sounds ridiculous. Especially that they restrict themselves to Latin letters and Arabic numbers. I guess many people here will point out that they should use other tools. I think we should help them in any way. They could also prefix every gene with Gn so it cannot be confused with other acronyms (e.g., GnDEC12). It not only breaks parsing by computers but also by humans who might read of…

To be blunt, there are almost certainly people in this field that know more about computers than you do. They aren’t a damsel in distress.

I was trying to find the right words to kindly point this out as a CS guy working in this space, thank you for just cutting to the chase and being blunt.

The proposed solution is also not really a solution in that it still allows for one of the main issues: random people shouldn't be responsible for creating names for things that should have unique IDs. Which is why things like ensembl IDs exist.

Re: Scientists rename genes to stop Microsoft Excel from misreading them as dates (2020)

#76
post #35

Earlier quoted context omitted.

When I had this issue, the path of least resistance was to use Libre Office Calc. Of course, that's exactly the kind of application that my company now wants to remove from all systems for compliance with something called "Cyber Essentials".

You’ve answered your own question then.

Sorry, which question do you mean?

Re: Scientists rename genes to stop Microsoft Excel from misreading them as dates (2020)

#77

Earlier quoted context omitted.

A lot of analysis is done using CSVs being pushed in and out of Excel. Doing so strips the formatting. Please understand the workflows being crying “skill issue”.

You can write CSVs in such a way that forces Excel to infer specific data types: "=""Data Here""" will always be treated as a string. This is also supported by Sheets, apparently.

TIL, neat! Does Excel automatically export like that if you format the columns as strings?

Re: Scientists rename genes to stop Microsoft Excel from misreading them as dates (2020)

#78
post #8

As a computer scientist this sounds ridiculous. Especially that they restrict themselves to Latin letters and Arabic numbers. I guess many people here will point out that they should use other tools. I think we should help them in any way. They could also prefix every gene with Gn so it cannot be confused with other acronyms (e.g., GnDEC12). It not only breaks parsing by computers but also by humans who might read of…

it had happened, most of gene have id. but people still use gene name in papers.

Re: Scientists rename genes to stop Microsoft Excel from misreading them as dates (2020)

#79
post #27

So let me get this straight: Scientists would rather rename genes, than to simply use a tool other than MS Excel?

Turns out that a tool you have is always better than a tool you don't have.

You sound like my wife, milling away at screw slots with the wrong screw driver.

Re: Scientists rename genes to stop Microsoft Excel from misreading them as dates (2020)

#80
post #64

Earlier quoted context omitted.

Yes, but you can create a small macro to the change the formatting and assign that to your table. Your CSV should import deterministically. That's not impossible to do. I saw a complete analysis engine written as an Excel file, which accepts and exports CSVs cleanly. It can be done.

You don’t even need to write a macro. Excel’s Import Text Wizard will allow you to assign data type to each column at the time of import.

Same for Power Query and Text to Columns.
Post reply on HN