2 ms·
there's already a method for abstracting exchange between code: the function. unix uses pipes to pass data between processes in different address spaces, your
by blibble 14y ago
there's already a method for abstracting exchange between code: the function.
unix uses pipes to pass data between processes in different address spaces, your JS runs in the same address space as the calling JS.
if the processes exist in the same address space you use a library, which is an implementation of a defined set of functions (which is itself an interface); this is flat out better as it requires no tedious, error prone serialisation.
- pfraze 14y agoFunctions are very simple maps to functionality; they only act as name-tags. Link's requests share an API for functional descriptions which are mostly "name," "verb," and "content-type." That enforces a structure that's recognizable and specific. So LinkJS is dependency injection. It makes it possible to configure code into the application.