3 ms·
We saw it with contractor-developed code. They took JSON from an API, then converted it to a big blob of text, and did some gnarly searching. It made no sense.
by karmelapple 4y ago
We saw it with contractor-developed code. They took JSON from an API, then converted it to a big blob of text, and did some gnarly searching.
It made no sense.
But we were also in a rush to get this app built, so we didn’t push back on this tortured logic. But we were saddled with this technical debt for an embarrassingly long time.
- WorldMaker 4y agoThat 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.