Live data from Hacker News

Isomorphic JavaScript, let’s make it easier

medium.com

1–10 of 39 posts

Re: Isomorphic JavaScript, let’s make it easier

#3
post #2

would love to know how Rill hydrates the data needed to render a page, if the page is dynamically generated.

Great question. I personally use @rill/session along side @rill/loader. Basically on the initial page load @rill/session asks the server for the current session then for the rest of the users session the browser manages the data.

Re: Isomorphic JavaScript, let’s make it easier

#4
"Isomorphic" Javascript? If there exists an isomorphism between the code on the client and the code on the server, then someone should be able to write a proof.

Otherwise, using the same language on the client and the server does not constitute an isomorphism.

Kthxbai!

Re: Isomorphic JavaScript, let’s make it easier

#5

"Isomorphic" Javascript? If there exists an isomorphism between the code on the client and the code on the server, then someone should be able to write a proof. Otherwise, using the same language on the client and the server does not constitute an isomorphism. Kthxbai!

Yeah, the author maintains a very loose definition of isomorphism.

Re: Isomorphic JavaScript, let’s make it easier

#6

"Isomorphic" Javascript? If there exists an isomorphism between the code on the client and the code on the server, then someone should be able to write a proof. Otherwise, using the same language on the client and the server does not constitute an isomorphism. Kthxbai!

Yeah it's not a perfect word to describe what's going on. I think the loose definition I posted at the beginning of the article works well though.

Re: Isomorphic JavaScript, let’s make it easier

#7
in the case that isomorphic javascript takes over the web for whatever reason, it will be just a matter of time people will be wanting the client/server distinction all over again. it's a sure cycle. but regardless, what OP did looks like excellent work, love the simplicity.

Re: Isomorphic JavaScript, let’s make it easier

#8

"Isomorphic" Javascript? If there exists an isomorphism between the code on the client and the code on the server, then someone should be able to write a proof. Otherwise, using the same language on the client and the server does not constitute an isomorphism. Kthxbai!

The JS community switched from the term "isomorphic" to "universal" around a year ago. Seems not everyone is on the same page yet.

Re: Isomorphic JavaScript, let’s make it easier

#9

"Isomorphic" Javascript? If there exists an isomorphism between the code on the client and the code on the server, then someone should be able to write a proof. Otherwise, using the same language on the client and the server does not constitute an isomorphism. Kthxbai!

The JS community switched from the term "isomorphic" to "universal" around a year ago. Seems not everyone is on the same page yet.

I use both but personally prefer Isomorphic because in most cases the code isn't actually universal, it has to be translated (shimmed, transpired, etc) between environments.

If there is one thing you can do to annoy programmers though is to use the wrong terminology :p.

Re: Isomorphic JavaScript, let’s make it easier

#10

"Isomorphic" Javascript? If there exists an isomorphism between the code on the client and the code on the server, then someone should be able to write a proof. Otherwise, using the same language on the client and the server does not constitute an isomorphism. Kthxbai!

The JS community switched from the term "isomorphic" to "universal" around a year ago. Seems not everyone is on the same page yet.

It really didn't. Universal is flat out wrong unless you're using the exact same code on both server and client.

Isomorphic is 100% correct if you use the definition from biology, crystallography, sociology... etc etc. It's more technical of a term in one single field. In every other way it's a perfect description.

* Sociology: a similarity in the processes or structure.

* Crystallography: two structures closely similar in shape, formulation, and structure.

* Biology: a similarity of form or structure between organisms

All of these more closely describe a JavaScript application that lives on the client and server - because while they will be similar the likelihood of them having the complete same code (and therefore being universal is minimal.

Post reply on HN