A Ovest Di Paperino

Welcome to the dark side.

Technical Compliance

Sul supporto di Office 2007 SP2 qualcuno dixit:

Microsoft Office 2007 SP2 claims support for ODF 1.1. With hard work and careful thinking, they have successfully achieved technical compliance but zero interoperability!

Come è possibile? Lo spiega Rob Weir. Stupendo questo pezzo:

Spreadsheet interoperability is not hard. This is not rocket science. Everyone knows what TODAY() means. Everyone knows what =A1+A2 means.

Everyone knows? Dipende. Lo stesso Rob Weir, solo qualche mese fa, specificava:

There are many other examples, if you care to seek them out. But what you will not find is an examination of what OOXML actually specifies for spreadsheet formulas, or confirmation that it was done sufficiently. Maybe the assumption is that this would be a trivial task, documenting Excel's behavior? What could possibly go wrong?

Let's find out.

First, let's take the trigonometric functions, SIN (Part 4, Section 3.17.7.287), COS (Part 4, Section 3.17.7.50) and TAN (Part 4, Section 3.17.7.313). Hard to mess these up right? Well, what if you fail to state whether their arguments are angle expressed as radians or degrees? Whoops. Same problem for the return value of the inverse functions, ASIN (Part 4, Section 3.17.7.12), ACOS (Part 4, Section 3.17.7.4), ATAN (Part 4, Section 3.17.7.14), and ATAN2 (Part 4, Section 3.17.7.15). It is hard to have interoperable versions of these functions if the units are not specified. What kind of review in Ecma would miss something so simple?

Everyone knows che in una funzione trigonometrica gli angoli sono da sempre definiti in radianti visto che i radianti sono stati definiti apposta per le funzioni trigonometriche

Cosa “sanno tutti” dipende da quali specifiche si sceglie di leggere. Prima si va predicando che le formule sono un argomento così delicato che bisogna dedicarci molta attenzione, poi si critica chi pur attenendosi ad uno standard (che fa cagare e parlo di ODF 1.1) rinuncia a cacciarsi in quel ginepraio che vien fuori tra compatibilità con il passato e specifiche alla genitale di canino. Così lasche che si può ottenere interoperabilità zero e compliance al 100%.

Cosa buffa è che:

The irony here is that the formula language used by OpenOffice (and by other vendors) is based on that used by Excel, which itself was not fully documented when OpenOffice implemented it.

Mi inchino davanti a tanta genialità mentre mi convinco, se proprio ce ne fosse bisogno,  che il vero problema di Open* siano le cicale come Rob.

-quack