News for hackers. Stuff that matters.
Re:If you're just going to sit there doing nothing, at least... by apetresc on Friday February 16, 2024 @04:18PM (#39403113)
Before the new '.docx`, '.xslx', etc. formats, when it was still just .doc, .xsl, etc., the document format was (as I've heard it told) essentially just a memory dump of Word/Excel's state for that document at the time you saved. And since it's easy to imagine that serializing/deserializing such a complex thing might not be always 100% perfectly idempotent, it would indeed happen that just the act of opening a file would change it in some subtle way.

That hasn't been the case in a long time, though.

Re:If you're just going to sit there doing nothing, at least... by repler on Friday February 16, 2024 @05:23PM (#39403774)
the new formats are actually zip archives believe it or not
Re:If you're just going to sit there doing nothing, at least... by delta_p_delta_x on Friday February 16, 2024 @06:48PM (#39404592)
They are ZIP archives... of XML. That's what the 'x' stands for in '.docx', '.xlsx', '.pptx', etc; it is Office Open XML[1].

[1]: https://en.wikipedia.org/wiki/Office_Open_XML#:~:text=Office....

Re:If you're just going to sit there doing nothing, at least... by esafak on Friday February 16, 2024 @11:54PM (#39406502)
They were reportedly written as memory dumps for speed.

https://www.joelonsoftware.com/2008/02/19/why-are-the-micros...

Re:If you're just going to sit there doing nothing, at least... by jeffparsons on Saturday February 17, 2024 @01:07AM (#39406869)
Worse than subtle formatting changes was some kind of corruption that could slowly swallow bits of your document without you noticing. Sometimes going back before the corruption had visible effects was not good enough to stop it from manifesting again.

I remember back in school religiously saving new versions of Word documents so that if the newest version went bad I could start a fresh doc, then copy and paste sections from old versions via Notepad to cleanse the corruption. (Direct Word-to-Word could bring it across — I guess that tells us something about how they implemented copy+paste between documents, too!)

Re:If you're just going to sit there doing nothing, at least... by reddalo on Saturday February 17, 2024 @03:28AM (#39407561)
You're right, Office documents were essentialy a memory dump, but only for Office <= 95 if I recall correctly.

Starting from Office 97, they switched to an improved .doc, .xsl, etc. file format (even though it was still binary).

That's why modern software such as Office itself or LibreOffice call the .doc format "Microsoft Word 97/2003"