Andrew

@AndrewHacks
40 Followers
91 Following
384 Posts
Software developer, indie hacker
LocationSan Diego, CA

Ok, this was pretty fun. With mastodon links being blocked, I remembered a site that would store an HTML page in the URL.

So I built a mini app to create a bio without storing any data.

Finally got a chance to try out AlpineJS for a tiny app, which was fun!

I did a crazy encode process:
JSON -> string -> lzstring compress -> base64 -> URI encode

The compress part actually made the URL longer though.

I just built a little PoC JS promise helper function.

The idea is you call mk_promise() and get back an object with:
{p: the actual promise, res: resolver, rej: rejector, wait: wait fn}

Building a video app, I create a *lot* of promises, and many of them don't actually resolve within the promise like you'd usually do with new Promise((res,rej) => { /*bunch of work; */ res(); }). Loading assets, seeking, playing, generating, uploading, etc.