4 ms·
// Call it: hello = 'michael' // Outputs "Hello michael!' This makes me uncomfortable.
by SwellJoe 8y ago
// Call it:
hello = 'michael' // Outputs "Hello michael!'
This makes me uncomfortable.
- AzMoo_ 8y agoWith great power comes great responsibility. This is a situation in which the old axiom, "don't write stupid code", comes into play.
- shawn 8y agoBut stupid code is the most fun.
- exikyut 8y agoThis should ideally trigger XHR back to the server (preferably async, with no error checking or retry) which then invokes a SELECT for nonexistant rows on a schema with a bunch of query triggers attached that store the queried-for data after first performing an HTTP request (from inside the DB, in a stored procedure) to translate the data to another language. (The translation service does not provide an API; the stored procedure extracts the response out of the HTML using a combination of 13 regular expressions and 2 substr() calls.) The original un-translated data should not be stored.