Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>As a preface, I use SSJS at my day job. We run a reasonably large (in terms of complexity as well as page views) website on SpiderMonkey. I'll add to Matthew's excellent answer where I have experience.</p> <p><strong>Is it really a better approach than using server side languages (assume c#)</strong></p> <p><em>"Better"</em> really depends what you want to do with it. JavaScript itself has some great features, as well as pretty awful ones. If you're serious about developing JS (client or server), I cannot recommend highly enough that you watch Douglas Crockford's presentation, <em><a href="http://www.youtube.com/watch?v=hQVTIJBZook" rel="nofollow noreferrer">Javascript: The Good Parts</a></em> if you haven't already. He's done a fantastic job sorting out the cruft, and he's an excellent speaker to boot. </p> <p>The biggest thing that I find the SSJS world lacking right now is maturity. I'm not familiar with C#, but JavaScript has no mature standard library, and no mature means of package distribution. To me that's a big piece of the puzzle.</p> <p>That said, keep your eye on the <a href="http://wiki.commonjs.org/wiki/CommonJS" rel="nofollow noreferrer">CommonJS</a> group. They're working toward defining those exact things. Also, The Jaxer Api Documentation lists the built-ins that are included with that framework. </p> <p><strong>how this works well in terms of performance?</strong></p> <p>JavaScript itself is not a slow language, nor is it a particularly fast one. As Matthew pointed out, it should be comparable to any other scripting language you would use. The war between the browser vendors to see who can build the fastest browser will benefit the SSJS crowd as well. </p> <p>The generational garbage collection that the V8 team build into their engine is a great example of this. Halting the virtual machine to free unreachable objects from the heap and reclaim their memory can be somewhat slow, but they've mitigated that by reducing the amount of objects that need to be inspected when the garbage collector runs.</p> <p><strong>how well we can implement &amp; maintain db transactions? can we do that in serverside JS..?</strong></p> <p>Jaxer appears to have MySQL and SQLite database APIs. As Matthew mentioned, if you use Rhino, you can use the JDBC api.</p> <p><strong>Edit</strong>: Added links</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload