2 ms·
Yes that does sound like a cluserfuck. However I have seen one neat use in a previous job. We we dealing with a crappy API from a vendor. Crappy because it was
by quickthrower2 9y ago
Yes that does sound like a cluserfuck.
However I have seen one neat use in a previous job. We we dealing with a crappy API from a vendor. Crappy because it was a weird XML format, partially specified by a DTD but did unexpected things.
So we created an XSLT for the XML returned by their API. .NET allows you to generate classes from XSLT, so now we had a handy way to parse the data and process it. If we made any mistakes in the XSLT, just fix and regenerate the code. If the build breaks fix up any issues. The strong typing end to end meant we knew we had most of the cases covered.