r/programming • • Mar 31 '21

Moderna mRNA sequence released to GitHub

https://github.com/NAalytics/Assemblies-of-putative-SARS-CoV2-spike-encoding-mRNA-sequences-for-vaccines-BNT-162b2-and-mRNA-1273/blob/main/Assemblies%20of%20putative%20SARS-CoV2-spike-encoding%20mRNA%20sequences%20for%20vaccines%20BNT-162b2%20and%20mRNA-1273.docx.pdf
1.3k Upvotes

197 comments sorted by

View all comments

Show parent comments

13

u/dscottboggs Mar 31 '21

That's because linux isn't carrying along leftover shit from 70s CP/M backwards-compatibility. Identifying a filetype by its extension is just silly.

2

u/flaghacker_ Apr 01 '21

Why? What's the alternative? Some magic bytes at the start of the file? And then when someone wants a custom file format every file-identifying utility in the world needs to be updated?

1

u/dscottboggs Apr 01 '21

Yeah, that's how I do filetype checks in my code.

2

u/flaghacker_ Apr 01 '21

Yeah sure it's an okay solution from the perspective of a single program, and certainly a good idea at least as an extra check, but from the perspective of an end user or a file viewer that has to deal with thousands of file types it's not so great.