3 ms·
Well, if you are processing CSV or XML data-stream for import operations into a foreign system, JS is a very natural language for this type of work. Being able
by tracker1 12y ago
Well, if you are processing CSV or XML data-stream for import operations into a foreign system, JS is a very natural language for this type of work. Being able to translate anything into a 32-bit integer value with ~~ for example, or understanding falsy-truthy operations can make text composition easier as well.
The only real gotcha in validation is when you want something that is a numeric-string or a number to be a number, and anything else to be a null. Outside of that case, I find that dealing with data migrations/translations in JS is FAR better in practice than most of the options I've used. Especially when you compare to the likes of say C, C#, Java etc... Yes, you can use strong XML validation, but it tends to produce a lot of errors that are recoverable in JS.