<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Ask Ajaxian: Are there clean techniques for writing JavaScript on the server?</title>
	<atom:link href="http://ajaxian.com/archives/ask-ajaxian-are-there-clean-techniques-for-writing-javascript-on-the-server/feed" rel="self" type="application/rss+xml" />
	<link>http://ajaxian.com/archives/ask-ajaxian-are-there-clean-techniques-for-writing-javascript-on-the-server</link>
	<description>Cleaning up the web with Ajax</description>
	<lastBuildDate>Thu, 09 Feb 2012 06:55:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
	<item>
		<title>By: Simon</title>
		<link>http://ajaxian.com/archives/ask-ajaxian-are-there-clean-techniques-for-writing-javascript-on-the-server/comment-page-1#comment-252141</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Fri, 29 Jun 2007 13:36:13 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2420#comment-252141</guid>
		<description>Hi,

For a full stack javascript development environment check out Zimki.

http://www.zimki.com

Si</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>For a full stack javascript development environment check out Zimki.</p>
<p><a href="http://www.zimki.com" rel="nofollow">http://www.zimki.com</a></p>
<p>Si</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Olivier MenguÃ©</title>
		<link>http://ajaxian.com/archives/ask-ajaxian-are-there-clean-techniques-for-writing-javascript-on-the-server/comment-page-1#comment-250919</link>
		<dc:creator>Olivier MenguÃ©</dc:creator>
		<pubDate>Mon, 28 May 2007 10:40:13 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2420#comment-250919</guid>
		<description>In 1998 I was writing server side of web application in JavaScript on IIS.
But at that time JavaScript support from Microsoft was much inferior to support for VBScript:
- there was not yet exceptions in JScript, so clean error handling of errors in ActiveX components was impossible 
- the Microsoft documentation has only VBScript samples for ASP. I finally found how to initialize Application and Session with JScript, but it was awkful.
- there was too many limits in available ActiveX components used to interact with the system. The only solution was to create new components in another language, which destroyed the aim to use only one language for both server-side and client-side. There was scripting engine, but not an useful enough API/framework.

All those points also apply to &lt;a href=&quot;http://msdn2.microsoft.com/en-us/library/ec0wcxh3.aspx&quot; rel=&quot;nofollow&quot;&gt;Microsoft Windows Sripting Host&lt;/a&gt;.
The last point is the main reason why I consider ASP and WSH to be missed opportunities from Microsoft. They have powerful scripting engines but they did not invest enough in interfaces/testing/documentation to make every part of the system available to them. They choose instead to try to ease the creation of ActiveX components with C# and .Net.</description>
		<content:encoded><![CDATA[<p>In 1998 I was writing server side of web application in JavaScript on IIS.<br />
But at that time JavaScript support from Microsoft was much inferior to support for VBScript:<br />
- there was not yet exceptions in JScript, so clean error handling of errors in ActiveX components was impossible<br />
- the Microsoft documentation has only VBScript samples for ASP. I finally found how to initialize Application and Session with JScript, but it was awkful.<br />
- there was too many limits in available ActiveX components used to interact with the system. The only solution was to create new components in another language, which destroyed the aim to use only one language for both server-side and client-side. There was scripting engine, but not an useful enough API/framework.</p>
<p>All those points also apply to <a href="http://msdn2.microsoft.com/en-us/library/ec0wcxh3.aspx" rel="nofollow">Microsoft Windows Sripting Host</a>.<br />
The last point is the main reason why I consider ASP and WSH to be missed opportunities from Microsoft. They have powerful scripting engines but they did not invest enough in interfaces/testing/documentation to make every part of the system available to them. They choose instead to try to ease the creation of ActiveX components with C# and .Net.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank Thuerigen</title>
		<link>http://ajaxian.com/archives/ask-ajaxian-are-there-clean-techniques-for-writing-javascript-on-the-server/comment-page-1#comment-250908</link>
		<dc:creator>Frank Thuerigen</dc:creator>
		<pubDate>Sat, 26 May 2007 19:51:12 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2420#comment-250908</guid>
		<description>One thing about spamming (in response to Andys comment on Mikaels post):
We are all sitting in one big boat here, some row, some sail and some fire their steam engines. I really like to hear about other ways of doing things, and try to learn from it. But I cannot try all these approaches, at a certain point I had to decide what my way is. Also IÂ´m a bit proud of it, it took me some time to get there starting from scratch. My try was simply a balancing and simplifying approach.
So I can clearly understand everybody that presents his system of doing things. In fact we all bring our systems on the table to open discussions on them - no feedback no gain.</description>
		<content:encoded><![CDATA[<p>One thing about spamming (in response to Andys comment on Mikaels post):<br />
We are all sitting in one big boat here, some row, some sail and some fire their steam engines. I really like to hear about other ways of doing things, and try to learn from it. But I cannot try all these approaches, at a certain point I had to decide what my way is. Also IÂ´m a bit proud of it, it took me some time to get there starting from scratch. My try was simply a balancing and simplifying approach.<br />
So I can clearly understand everybody that presents his system of doing things. In fact we all bring our systems on the table to open discussions on them &#8211; no feedback no gain.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank Thuerigen</title>
		<link>http://ajaxian.com/archives/ask-ajaxian-are-there-clean-techniques-for-writing-javascript-on-the-server/comment-page-1#comment-250907</link>
		<dc:creator>Frank Thuerigen</dc:creator>
		<pubDate>Sat, 26 May 2007 19:34:16 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2420#comment-250907</guid>
		<description>As I understood the initial question was something like &quot;I didnÂ´t like JAVA to create HTML, now it also creates JS to it, and my code becomes more and more unreadable&quot;...
JAVA has its pro.s and contras - but it definitely is the one language most commonly used in big business citical systems, and I regard it as the most common gateway to any kind of Oracle DBs.
In this, I share the authors sorrows about JAVA creating HTML and JS. This way the code becomes server heavy and complex beyond servicability.
In my eyes the solution lies in one of Dions initial comment: let JAVA do what it is designed for - business processes - but the interface to the client should be strictly JSON objects, or if you prefer: XML.
For everything else the server should simply deliver files, that is JS, HTML and CSS files.
I have been working with this approach for a long time now, and I have no fear about the readability of my application code, no matter how complex the project. 
My system utilizes PHP on the server side. To completely convert it to JAVA you have to migrate 60 lines of trivial PHP code. On the client side, it is pure JS / HTML / CSS coding and webdesign. It is all 100% separated.
@Jim: if you want to see it at work, try the link below.
Regards,</description>
		<content:encoded><![CDATA[<p>As I understood the initial question was something like &#8220;I didnÂ´t like JAVA to create HTML, now it also creates JS to it, and my code becomes more and more unreadable&#8221;&#8230;<br />
JAVA has its pro.s and contras &#8211; but it definitely is the one language most commonly used in big business citical systems, and I regard it as the most common gateway to any kind of Oracle DBs.<br />
In this, I share the authors sorrows about JAVA creating HTML and JS. This way the code becomes server heavy and complex beyond servicability.<br />
In my eyes the solution lies in one of Dions initial comment: let JAVA do what it is designed for &#8211; business processes &#8211; but the interface to the client should be strictly JSON objects, or if you prefer: XML.<br />
For everything else the server should simply deliver files, that is JS, HTML and CSS files.<br />
I have been working with this approach for a long time now, and I have no fear about the readability of my application code, no matter how complex the project.<br />
My system utilizes PHP on the server side. To completely convert it to JAVA you have to migrate 60 lines of trivial PHP code. On the client side, it is pure JS / HTML / CSS coding and webdesign. It is all 100% separated.<br />
@Jim: if you want to see it at work, try the link below.<br />
Regards,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jason moore</title>
		<link>http://ajaxian.com/archives/ask-ajaxian-are-there-clean-techniques-for-writing-javascript-on-the-server/comment-page-1#comment-250796</link>
		<dc:creator>jason moore</dc:creator>
		<pubDate>Thu, 24 May 2007 13:48:34 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2420#comment-250796</guid>
		<description>&lt;blockquote&gt;Java that writes HTML was
bad enough. Java that writes JavaScript is even less readable.&lt;/blockquote&gt;

There&#039;s your problem. You need MVC or a templating system. System.out.println(&#039;hi&#039;); is nasty. Don&#039;t do that.</description>
		<content:encoded><![CDATA[<blockquote><p>Java that writes HTML was<br />
bad enough. Java that writes JavaScript is even less readable.</p></blockquote>
<p>There&#8217;s your problem. You need MVC or a templating system. System.out.println(&#8216;hi&#8217;); is nasty. Don&#8217;t do that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chris holland</title>
		<link>http://ajaxian.com/archives/ask-ajaxian-are-there-clean-techniques-for-writing-javascript-on-the-server/comment-page-1#comment-250774</link>
		<dc:creator>chris holland</dc:creator>
		<pubDate>Thu, 24 May 2007 06:32:58 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2420#comment-250774</guid>
		<description>mikael: while you do pose interesting questions that merit their own discussion, i&#039;m not sure i agree with your interpretation of the original post :)</description>
		<content:encoded><![CDATA[<p>mikael: while you do pose interesting questions that merit their own discussion, i&#8217;m not sure i agree with your interpretation of the original post :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mikael bergkvist</title>
		<link>http://ajaxian.com/archives/ask-ajaxian-are-there-clean-techniques-for-writing-javascript-on-the-server/comment-page-1#comment-250772</link>
		<dc:creator>mikael bergkvist</dc:creator>
		<pubDate>Thu, 24 May 2007 04:44:07 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2420#comment-250772</guid>
		<description>The original post was about running javascript ON the server, and not about outputting javascript to the client FROM the server. It seems this got lost somehow.. :-)

Further more, to run javascript on the server seem to call for a dhtml model, use of the DOM, on the server as well, and this is also getting lost.

So, what if one could mirror the DHTML/DOM model on the server and have persistent variables, just like in the browser on the client, only with serverside objects?

Well...</description>
		<content:encoded><![CDATA[<p>The original post was about running javascript ON the server, and not about outputting javascript to the client FROM the server. It seems this got lost somehow.. :-)</p>
<p>Further more, to run javascript on the server seem to call for a dhtml model, use of the DOM, on the server as well, and this is also getting lost.</p>
<p>So, what if one could mirror the DHTML/DOM model on the server and have persistent variables, just like in the browser on the client, only with serverside objects?</p>
<p>Well&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas Hansen</title>
		<link>http://ajaxian.com/archives/ask-ajaxian-are-there-clean-techniques-for-writing-javascript-on-the-server/comment-page-1#comment-250752</link>
		<dc:creator>Thomas Hansen</dc:creator>
		<pubDate>Wed, 23 May 2007 15:25:53 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2420#comment-250752</guid>
		<description>The samples of Gaia (http://ajaxwidgets.com/AllControlsSamples/) are all built without ONE single line of custom JavaScript...

.t</description>
		<content:encoded><![CDATA[<p>The samples of Gaia (<a href="http://ajaxwidgets.com/AllControlsSamples/" rel="nofollow">http://ajaxwidgets.com/AllControlsSamples/</a>) are all built without ONE single line of custom JavaScript&#8230;</p>
<p>.t</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Kant</title>
		<link>http://ajaxian.com/archives/ask-ajaxian-are-there-clean-techniques-for-writing-javascript-on-the-server/comment-page-1#comment-250751</link>
		<dc:creator>Andy Kant</dc:creator>
		<pubDate>Wed, 23 May 2007 15:25:07 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2420#comment-250751</guid>
		<description>If you know how to code JavaScript, do it manually. Otherwise, I&#039;ve always heard good things about GWT but I&#039;ve never used it (I tend to avoid Java like the plague).</description>
		<content:encoded><![CDATA[<p>If you know how to code JavaScript, do it manually. Otherwise, I&#8217;ve always heard good things about GWT but I&#8217;ve never used it (I tend to avoid Java like the plague).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Marr</title>
		<link>http://ajaxian.com/archives/ask-ajaxian-are-there-clean-techniques-for-writing-javascript-on-the-server/comment-page-1#comment-250743</link>
		<dc:creator>Richard Marr</dc:creator>
		<pubDate>Wed, 23 May 2007 13:46:47 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2420#comment-250743</guid>
		<description>It depends where your expertese lies.

If you&#039;ve got a building full of Java programmers then GWT or similar might be for you.

If you&#039;ve got one or two developers who understand browser-side development on more than a superficial level then you should really build a nice tiered web service system.</description>
		<content:encoded><![CDATA[<p>It depends where your expertese lies.</p>
<p>If you&#8217;ve got a building full of Java programmers then GWT or similar might be for you.</p>
<p>If you&#8217;ve got one or two developers who understand browser-side development on more than a superficial level then you should really build a nice tiered web service system.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roberto Giordando Barra</title>
		<link>http://ajaxian.com/archives/ask-ajaxian-are-there-clean-techniques-for-writing-javascript-on-the-server/comment-page-1#comment-250728</link>
		<dc:creator>Roberto Giordando Barra</dc:creator>
		<pubDate>Wed, 23 May 2007 05:42:53 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2420#comment-250728</guid>
		<description>As others already pointed out, I don&#039;t think it&#039;s a good idea to generate javascript with Java (or any other language).

For me, what works best is to write all the code for the view and controls in javascript, and the code fo the model in Java, JSP, or both (using JSPs only to format data in JSON format).

One problem caused by this approach is the initial delay caused by tons of javascript being loaded. A workaround that I use is to load at first only the declarations of the public functions and methods (as a C++ header) with small bodies. These bodies force the loading of a chunk of javascript that contains the real implementation of the method.

I don&#039;t know if any framework or lib have sometinhg implemented to help with it, but it&#039;s easy to do somenthing simple by hand. I guess that dojo does something similar, but I&#039;m not sure.</description>
		<content:encoded><![CDATA[<p>As others already pointed out, I don&#8217;t think it&#8217;s a good idea to generate javascript with Java (or any other language).</p>
<p>For me, what works best is to write all the code for the view and controls in javascript, and the code fo the model in Java, JSP, or both (using JSPs only to format data in JSON format).</p>
<p>One problem caused by this approach is the initial delay caused by tons of javascript being loaded. A workaround that I use is to load at first only the declarations of the public functions and methods (as a C++ header) with small bodies. These bodies force the loading of a chunk of javascript that contains the real implementation of the method.</p>
<p>I don&#8217;t know if any framework or lib have sometinhg implemented to help with it, but it&#8217;s easy to do somenthing simple by hand. I guess that dojo does something similar, but I&#8217;m not sure.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivan</title>
		<link>http://ajaxian.com/archives/ask-ajaxian-are-there-clean-techniques-for-writing-javascript-on-the-server/comment-page-1#comment-250726</link>
		<dc:creator>Ivan</dc:creator>
		<pubDate>Wed, 23 May 2007 05:18:17 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2420#comment-250726</guid>
		<description>This is alarming.  With all of the awesome Java web frameworks you somehow have Java writing Javascript and returning it directly?Consider a remedial lesson in jsp templating.  I&#039;d suggest looking at something like Spring MVC to give you a sense of how you should be seperating your code.

Checklist:
1. Your Java should return Java DATA
2. Rendered HTML should be passed through a template which for beginners I would recommend .jsp.
3. Javascript (do you mean JSON?) can be returned via a transformer like XStream.  

If you feel you&#039;re learning or implementing rocket science to tie Javascript to Java, you&#039;re doing something very wrong.
I wish I had more time to lay it out, but its bedtime.</description>
		<content:encoded><![CDATA[<p>This is alarming.  With all of the awesome Java web frameworks you somehow have Java writing Javascript and returning it directly?Consider a remedial lesson in jsp templating.  I&#8217;d suggest looking at something like Spring MVC to give you a sense of how you should be seperating your code.</p>
<p>Checklist:<br />
1. Your Java should return Java DATA<br />
2. Rendered HTML should be passed through a template which for beginners I would recommend .jsp.<br />
3. Javascript (do you mean JSON?) can be returned via a transformer like XStream.  </p>
<p>If you feel you&#8217;re learning or implementing rocket science to tie Javascript to Java, you&#8217;re doing something very wrong.<br />
I wish I had more time to lay it out, but its bedtime.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kourge</title>
		<link>http://ajaxian.com/archives/ask-ajaxian-are-there-clean-techniques-for-writing-javascript-on-the-server/comment-page-1#comment-250725</link>
		<dc:creator>kourge</dc:creator>
		<pubDate>Wed, 23 May 2007 02:54:13 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2420#comment-250725</guid>
		<description>There are in many instances where JavaScript on server-side comes to play, but they either mix with Java, have their own variant, or whatnot. There&#039;s almost no pure server-side JavaScript, unlike PHP. wx_js is a good example of what server-side JavaScript should be, and, like all server-side scripting languages, JavaScript needs to be deployed and wide-spread enough to gain advantages. Most hosting companies provide PHP, Perl, Python, and sometimes Ruby, but no JavaScript, because no single server-side JavaScript implementation has been shown to be mature enough.</description>
		<content:encoded><![CDATA[<p>There are in many instances where JavaScript on server-side comes to play, but they either mix with Java, have their own variant, or whatnot. There&#8217;s almost no pure server-side JavaScript, unlike PHP. wx_js is a good example of what server-side JavaScript should be, and, like all server-side scripting languages, JavaScript needs to be deployed and wide-spread enough to gain advantages. Most hosting companies provide PHP, Perl, Python, and sometimes Ruby, but no JavaScript, because no single server-side JavaScript implementation has been shown to be mature enough.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: norman</title>
		<link>http://ajaxian.com/archives/ask-ajaxian-are-there-clean-techniques-for-writing-javascript-on-the-server/comment-page-1#comment-250724</link>
		<dc:creator>norman</dc:creator>
		<pubDate>Wed, 23 May 2007 01:23:52 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2420#comment-250724</guid>
		<description>might this helpful?
http://projects.nikhilk.net/Projects/ScriptSharp.aspx</description>
		<content:encoded><![CDATA[<p>might this helpful?<br />
<a href="http://projects.nikhilk.net/Projects/ScriptSharp.aspx" rel="nofollow">http://projects.nikhilk.net/Projects/ScriptSharp.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesse Kuhnert</title>
		<link>http://ajaxian.com/archives/ask-ajaxian-are-there-clean-techniques-for-writing-javascript-on-the-server/comment-page-1#comment-250722</link>
		<dc:creator>Jesse Kuhnert</dc:creator>
		<pubDate>Tue, 22 May 2007 23:22:25 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2420#comment-250722</guid>
		<description>I don&#039;t like being too direct about advertising but since I didn&#039;t implement it anyways ....

Tapestry has supported a javascript templating ability for as long as I&#039;ve used it. It doesn&#039;t try to auto-generate javascript for you but it sure does make it a ~lot~ easier to write complimentary javascript code for whatever you are doing on the server. 

The script template language (very velocity-like):
http://tapestry.apache.org/tapestry4.1/usersguide/script.html

And an example of using it:
http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/dojo/html/InlineEditBox.script?view=markup</description>
		<content:encoded><![CDATA[<p>I don&#8217;t like being too direct about advertising but since I didn&#8217;t implement it anyways &#8230;.</p>
<p>Tapestry has supported a javascript templating ability for as long as I&#8217;ve used it. It doesn&#8217;t try to auto-generate javascript for you but it sure does make it a ~lot~ easier to write complimentary javascript code for whatever you are doing on the server. </p>
<p>The script template language (very velocity-like):<br />
<a href="http://tapestry.apache.org/tapestry4.1/usersguide/script.html" rel="nofollow">http://tapestry.apache.org/tapestry4.1/usersguide/script.html</a></p>
<p>And an example of using it:<br />
<a href="http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/dojo/html/InlineEditBox.script?view=markup" rel="nofollow">http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/dojo/html/InlineEditBox.script?view=markup</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chris holland</title>
		<link>http://ajaxian.com/archives/ask-ajaxian-are-there-clean-techniques-for-writing-javascript-on-the-server/comment-page-1#comment-250720</link>
		<dc:creator>chris holland</dc:creator>
		<pubDate>Tue, 22 May 2007 22:20:49 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2420#comment-250720</guid>
		<description>I&#039;ll &quot;third&quot; Mike and Ryan&#039;s suggestion about DWR, if you work with Java.

A couple of days ago, i released IBDOM to dramatically ease the process of injecting JavaScript objects (retrieved asynchronously thru DWR or any other framework), into your document.

DWR also goes to great lengths to bulletproof developers against security issues surrounding services that output javascript.

Here are some URLs:

DWR: http://getahead.org/dwr 
IBDOM: http://ibdom.sourceforge.net/ (i just put out today some more documentation, an interactive demo, and fixes to ibdom.js to put in the next release, but which you can just download straight from the SVN HEAD)</description>
		<content:encoded><![CDATA[<p>I&#8217;ll &#8220;third&#8221; Mike and Ryan&#8217;s suggestion about DWR, if you work with Java.</p>
<p>A couple of days ago, i released IBDOM to dramatically ease the process of injecting JavaScript objects (retrieved asynchronously thru DWR or any other framework), into your document.</p>
<p>DWR also goes to great lengths to bulletproof developers against security issues surrounding services that output javascript.</p>
<p>Here are some URLs:</p>
<p>DWR: <a href="http://getahead.org/dwr" rel="nofollow">http://getahead.org/dwr</a><br />
IBDOM: <a href="http://ibdom.sourceforge.net/" rel="nofollow">http://ibdom.sourceforge.net/</a> (i just put out today some more documentation, an interactive demo, and fixes to ibdom.js to put in the next release, but which you can just download straight from the SVN HEAD)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mikael bergkvist</title>
		<link>http://ajaxian.com/archives/ask-ajaxian-are-there-clean-techniques-for-writing-javascript-on-the-server/comment-page-1#comment-250719</link>
		<dc:creator>mikael bergkvist</dc:creator>
		<pubDate>Tue, 22 May 2007 22:05:46 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2420#comment-250719</guid>
		<description>&quot;Eh.. Mikael, how come that whenever I see you post, You always put it up as advertisement for your project ? &quot;

- Only when it&#039;s relevant to do so, I dont think I&#039;m spamming..
I rarely post anything here or anywhere else, but in this case it&#039;s a slam-dunk.
It&#039;s spot on what we do, so why shouldn&#039;t I?</description>
		<content:encoded><![CDATA[<p>&#8220;Eh.. Mikael, how come that whenever I see you post, You always put it up as advertisement for your project ? &#8221;</p>
<p>- Only when it&#8217;s relevant to do so, I dont think I&#8217;m spamming..<br />
I rarely post anything here or anywhere else, but in this case it&#8217;s a slam-dunk.<br />
It&#8217;s spot on what we do, so why shouldn&#8217;t I?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wade Harrell</title>
		<link>http://ajaxian.com/archives/ask-ajaxian-are-there-clean-techniques-for-writing-javascript-on-the-server/comment-page-1#comment-250715</link>
		<dc:creator>Wade Harrell</dc:creator>
		<pubDate>Tue, 22 May 2007 17:46:28 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2420#comment-250715</guid>
		<description>&quot;Finally. web services matter: You can code the server side to speak web services, and then the client is responsible for doing the right thing, and both are very separate layers.&quot;

&#039;nuff said</description>
		<content:encoded><![CDATA[<p>&#8220;Finally. web services matter: You can code the server side to speak web services, and then the client is responsible for doing the right thing, and both are very separate layers.&#8221;</p>
<p>&#8217;nuff said</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lars Trieloff</title>
		<link>http://ajaxian.com/archives/ask-ajaxian-are-there-clean-techniques-for-writing-javascript-on-the-server/comment-page-1#comment-250714</link>
		<dc:creator>Lars Trieloff</dc:creator>
		<pubDate>Tue, 22 May 2007 17:35:17 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2420#comment-250714</guid>
		<description>It makes sense not to generate any application Javascript on the server side. Instead, Javascript files that form the client application should be delivered statically (with good caching) and exchange with the server should only include data requests. A resource requested can then be represented using XML or JSON (this is an exception where generating Javascript on server makes sense, but there are also very good frameworks for this purpose)

What language is used at server side is not relevant, as long as the web application framework is able to create multiple views of a resource, e.g. the HTML view, the RSS view and the JSON view.</description>
		<content:encoded><![CDATA[<p>It makes sense not to generate any application Javascript on the server side. Instead, Javascript files that form the client application should be delivered statically (with good caching) and exchange with the server should only include data requests. A resource requested can then be represented using XML or JSON (this is an exception where generating Javascript on server makes sense, but there are also very good frameworks for this purpose)</p>
<p>What language is used at server side is not relevant, as long as the web application framework is able to create multiple views of a resource, e.g. the HTML view, the RSS view and the JSON view.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Mahemoff</title>
		<link>http://ajaxian.com/archives/ask-ajaxian-are-there-clean-techniques-for-writing-javascript-on-the-server/comment-page-1#comment-250713</link>
		<dc:creator>Michael Mahemoff</dc:creator>
		<pubDate>Tue, 22 May 2007 17:24:22 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2420#comment-250713</guid>
		<description>Leaving aside the possibility of actually running JS in the server (which is very tantalising http://softwareas.com/phobos-server-side-js-redux), how does your server output JS?

Personally, I don&#039;t much buy into frameworks that magically produce JS for you. JS is a first class language and if you cleanly separate tiers, outputting JS should be no more than writing some JS into a file and placing that file on your server for static consumption. No auto-generating JS on the fly.

This does imply all programmers know JS, but if you have a *web* developer cutting Ajax apps, I think that&#039;s fair game for typical mainstream development. With appropriate use of libraries, any competent developer can produce portable, robust, JS without being a Javascripting guru.</description>
		<content:encoded><![CDATA[<p>Leaving aside the possibility of actually running JS in the server (which is very tantalising <a href="http://softwareas.com/phobos-server-side-js-redux" rel="nofollow">http://softwareas.com/phobos-server-side-js-redux</a>), how does your server output JS?</p>
<p>Personally, I don&#8217;t much buy into frameworks that magically produce JS for you. JS is a first class language and if you cleanly separate tiers, outputting JS should be no more than writing some JS into a file and placing that file on your server for static consumption. No auto-generating JS on the fly.</p>
<p>This does imply all programmers know JS, but if you have a *web* developer cutting Ajax apps, I think that&#8217;s fair game for typical mainstream development. With appropriate use of libraries, any competent developer can produce portable, robust, JS without being a Javascripting guru.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

