4 ms·
That sounds almost more excusable than the rush code I found the other day. They were storing something (to local storage and then to a DB) via JSON.stringify()
by WorldMaker 4y ago
That sounds almost more excusable than the rush code I found the other day. They were storing something (to local storage and then to a DB) via JSON.stringify() but for whatever reason they hadn't thought after retrieving it back from the database to just JSON.parse() it and instead used a weird mash of string replacements, splits, and regexes to parse an ad hoc brittle subset of JSON.