3 ms·
Yes, an isomorphic js program is a program that can run both in browsers and nodejs. I know that is not mathematically correct, but lot of devs use this word an
by jfet97 8y ago
Yes, an isomorphic js program is a program that can run both in browsers and nodejs. I know that is not mathematically correct, but lot of devs use this word and understand its meaning.
- ricardobeat 8y agoThat's a misuse of the term though. Calling these 'universal' javascript would be more correct, and it doesn't even have to be mentioned since it's been standard for a while that any library not dealing with browser APIs can run in node. The term 'isomorphic' refers to the output, as in being able to render the same UI / application on the server and on the client.
- erikpukinskis 8y agoIn JavaScript we've dealt with a lot of APIs that are different on the client and server. If you want to make an HTTP request from Node or the browser it's a totally different API. So in this case isomorphic means the API has the "same shape" on the client and the server, even though the implementation might be different.
- ricardobeat 8y agoI still think it is misused, was also my first time seeing it used this way (I’ve been working with node since the start in 2009).
- erikpukinskis 8y agoYou probably just missed it/ignored it. It’s a very common usage, going back to the era when a Meteor starter. Meteor being noteworthy because everything on their platform is isomorphic. It’d be easy to be active and not come across it though. Most of the JavaScript world maintains a clear client/server separation. In my experience most production apps can’t share code between client and server. It’s either written and packaged for one or the other.