by Bjarne Stroustrup and his team at Bell Labs, which generated C code rather than native code, springs to mind - where the framework provided an extremely rich type system that the target language did not.
The whole idea of frameworks is supposed to be that 1) they save you programming effort 2) the resulting code is more robust / less error-prone. Given that dates are important in a variety of applications, I'm surprised that TypeScript does not include a
>>>If you want validation of Dates, you need to write validation of Dates. If you want locale-aware date parsing, you need to write locale-aware date parsing, although it's a far better idea not to ask people to enter dates in the hopelessly ambiguous
##/##/## format in the first place.
We also support a study on tropical Leishmaniasis where field data is being gathered in Colombia (which uses Spanish) with the patient samples being processed for special tests at Yale (where English is used). The forms are localized through metadata - question
captions, headings, etc. have both English and Spanish equivalents, so the form is rendered dynamically based on the browser's preferred language settings (nothing fancy - Google and Amazon also do this).
Your suggestion to use something other than the "hopelessly ambiguous" ##/##/## is not workable: it may be ambiguous to a programmer, but not to the (non-programmer) end-users within a single geographical location who use this format every day
of their lives without being confused, and have no idea of the issues of software localization and couldn't even begin to define the term (and shouldn't be bothered about what is a programmer's issue).
In any case, if you're suggesting something like Jan-23-2013, our code accepts user input in ##/##/##(##) format and then echoes it back in MMM-nn-nnnn format as confirmation. The issue again is that in Spanish, January is Enero, and the three-letter abbreviation
is different. Again, VBScript on the browser renders the correct
MMM-nn-nnnn format without any effort on our part - we don't store month long names or abbreviations in our browser code, because we don't need to.
of course, of cross-browser compatibility).
The point I'm trying to make is that the developers of VBScript at Microsoft did *something* right (though they did many other things wrong), and I'd hate to see the good part of their effort lost.
>>> I'm starting to wonder if you might have written some of the code I've reviewed recently...
I don't quite know what you're referring to here - I haven't put any code out that's related to this issue - but if this is an attempt at personal invective, it is both inappropriate in this forum and not very effective. One can agree to disagree without
stooping to the level of ad hominem abuse.