eshnil's comments

eshnil | 2 years ago | on: Unnatural Keys – Nature doesn’t come with identifiers

I ran into the same problem while building https://learnawesome.org/ . Forget the broad class of "learning resources", even the "books" category doesn't have a usable unique ID. Not everything gets an ISBN for example. There's also the ambiguity between a "work" and an "edition" of a work.

This is probably why OpenLibrary supports mapping of books with 40+ identifiers: https://github.com/internetarchive/openlibrary/blob/master/o...

eshnil | 2 years ago | on: A visual book recommender

> Only include reviews which came from users who had at least 10 reviews.

Not sure if that's a good idea. It shrinks the set of genuine readers and overweights the set of professional spammers.

eshnil | 3 years ago | on: Scratch is the world’s largest coding community for children

Snap language by SAP (snap.berkeley.edu) would be a better stepping stone rather than directly going to industrial languages. It's got first-class functions, first-class lists, object-oriented programming, APL-style vector operations which are very handy for media processing, machine learning etc, continuations, ability to make HTTP calls etc - while keeping the same playful environment as scratch.

Features like this enable serious study of computer science possible with Snap: https://emu-online.de/ComputerScienceWithSnap_2.pdf

There's even a variation for 3D geometries: beetleblocks.com

Scratch is immensely popular but with lack of reporter blocks and lack of first-class lists, it encourages many bad programming habits (global state, no datas tructures like stack/queue/tree/graph etc. The one advantage it has over SnapLang is that it has better performance for building intensive games etc.

eshnil | 3 years ago | on: Bicycle

Another great interactive explanation.

I wish physics teachers start using geometric product of vectors, instead of the cross product. This allows forces and torques to be combined into a single concept "Forque". Really, translations are just rotations around infinity and rotations are just composition of two reflections. If we allow the algebra to take care of rotations, physics becomes a lot simpler.

eshnil | 3 years ago | on: Firefox 111.0 enabled Origin private file system access

I actually implemented it recently in one of my open-source apps. It's 6 lines of Javascript: Create an <a> element, set the data in its href with:

element.setAttribute("href","data:text/plain;charset=utf-8," +encodeURIComponent(content))

and element.click() followed by document.body.removeChild(element);

This works perfectly fine for saving single files. FileSystem access API is useful when entire directory needs to be stored and perhaps without the standard SaveAs.. UI.

eshnil | 3 years ago | on: Joint statement by the Department of the Treasury, Federal Reserve, and FDIC

Every bank account holder was made to pay insurance premium for those with more than $250K in a couple of banks. And this was done AFTER the risky event the insurance covers has already happened. This absolutely is socialization of losses, while privatization of profits goes on as usual. Good reason to be upset, IMHO.
page 1