Email or username:

Password:

Forgot your password?
Niki Tonsky

I like how, when you request your data archive from Twitter, they package it into JSON, almost. Almost! Just with a single assignment in front, so it can’t be interpreted as data, but only as a code. Why? Didn’t they hear Rich Hickey preaching for data-first development?

8 comments
Olical

@nikitonsky I vaguely recall this being a hack so you could import a JS file cross domain as a script, allowing you to load JS data from another server in the bad old days. I guess not what's being done here, this is just weeeeird.

Niki Tonsky

@Olical yeah, it’s probably some stupid shit like that. It also has html page next to it, I guess local html can’t “just” import json, which is of course mega-stupid

Olical

@nikitonsky ohhh yeah if you open it under the file:// protocol I think some fuckyness ensues, almost definitely that. Still so weird though. I guess it could be worse, it could be embedded in the HTML or a PDF instead.

mikesub

@nikitonsky en.wikipedia.org/wiki/JSONP It doesn't mean that there is a real reason to do so in that case

Niki Tonsky

@mikesub oh, I remember reading about it like 15 years ago, when JS was small and React didn't even exist

Niki Tonsky

@doekman I plan to put my archive into DataScript, actually

Max Oblezin

@nikitonsky I once imported photos from Google photos and while all photos had meta-data it was in a separate json files 🤷

Go Up