Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Locked thread
Deus Rex
Mar 5, 2005

pigdog posted:

Very easy to create and integrate with JSON/RESTful services, because duh.

Would you mind elaborating on this point? Why is it "duh"?

Adbot
ADBOT LOVES YOU

Deus Rex
Mar 5, 2005

El Marrow posted:

Because it's a natural fit to have your serverside code natively speak the same language as the services you're drawing or sending data to/from. Duh.

I don't follow: if the language you're talking about is the language the applications behind those services was written in, I'm not sure I see any advantages or natural fits unless you're using some kind of language-specific RPC mechanism. If the language you're talking about is JSON, unless I misunderstand something about the relationship between JSON and Javascript it seems to me that Javascript doesn't offer any particular advantages over other languages in "speaking" JSON.

Deus Rex
Mar 5, 2005

This issue is a doozy.

https://github.com/joyent/node/issues/7412

I'll quote an excerpt from the best comment:

quote:

This issue is PHP-like in the absurd brokenness of the implementation, the difficulty of doing a simple thing correctly, and the recalcitrance of the maintainers in fixing or even documenting the problem. It's eerily reminiscent in its use of this three-pronged justification:
  1. The problem is acceptable because it stems from the implementation being a thin (or "lo-fi") wrapper around the underlying system calls.
  2. Your program can behave correctly: you must simply magically know about this problem and write a dozen lines of extra code to work around it.
  3. Programs written in this powerful, general-purpose language aren't generally thought of as doing this kind of thing; therefore it needn't be done correctly.

  • Locked thread