Matteo Collina on Nostr: The npm+node.js combo solved software reuse at scale by allowing the same module to ...
The npm+node.js combo solved software reuse at scale by allowing the same module to exist as two different versions in the same process. This feature allowed the "Cambrian explosion" we saw last decade. An unexpected consequence is that you should really *not* rely on instanceof checks and you should rely on duck typing instead.
Published at
2024-07-01 16:16:00Event JSON
{
"id": "7fce5f4d7e3fe5d9dae1ba1a43ee97768e500b2979cdc9342594700690eac1f9",
"pubkey": "84afd2faf632c84f9539aaeb2bab0e8552e22b40a04e3df184f5e6ee3cc31f6b",
"created_at": 1719850560,
"kind": 1,
"tags": [
[
"proxy",
"https://fosstodon.org/users/mcollina/statuses/112712126342130530",
"activitypub"
]
],
"content": "The npm+node.js combo solved software reuse at scale by allowing the same module to exist as two different versions in the same process. This feature allowed the \"Cambrian explosion\" we saw last decade. An unexpected consequence is that you should really *not* rely on instanceof checks and you should rely on duck typing instead.",
"sig": "264e70be3b61ade862e5bef843548e16c97941ade5cfdc3d23e8ab0c11ccca9cbd93304715c9fff7e0ebe4963ad296143a74cc8731d2ba0b078d3016eb207869"
}