Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The most "special" code that I regularly come across is when a developer takes a JPG in blob storage -- already a public HTTPS URL -- then serves that in a "Web API" that converts it to base-64 encoded bytes inside JSON, sends it to client JavaScript, decodes it, and feeds it to an image in code.

Invariably, it's done with full buffering of the blob bytes in memory on both server and client, no streaming.

Bonus points are awarded for the use of TypeScript, compression (of already compressed JPGs, of course), and extensive unit and integration tests to try and iron out the bugs.



This is truly beautiful. Art, even.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: