Just A Summary : Rails 2.0 and the Future of Typo http://bofh.org.uk/articles/2007/12/16/rails-2-0-and-the-future-of-typo.rss en-us 40 Piers Cawley Practices Punditry Comment on Rails 2.0 and the Future of Typo by Rodger <p>To be honest, the rich client is one of the things that drew me to typo in the first place. I&#8217;d be a sad panda if Typo-NG threw it away.</p> Mon, 17 Dec 2007 01:56:08 -0600 urn:uuid:0287a8bc-0f5a-4bda-84c6-1c97d5d9cf57 http://www.bofh.org.uk/articles/2007/12/16/rails-2-0-and-the-future-of-typo#comment-1027 Comment on Rails 2.0 and the Future of Typo by Piers Cawley <p>I doubt if it&#8217;d be going away for good; Frederic&#8217;s done sterling work on the admin interface recently, and there&#8217;s no reason we can&#8217;t make that interface, or something like it, play well with <span class="caps">APP</span>. The thing is, because <span class="caps">APP</span> is pretty well defined, it we needn&#8217;t be the only interface &#8211; there&#8217;s already an <span class="caps">APP</span> plugin for Firefox, for instance, and there will be more, I&#8217;m sure.</p> Mon, 17 Dec 2007 19:05:42 -0600 urn:uuid:dc80ccd5-d373-47a0-b844-997830f0e114 http://www.bofh.org.uk/articles/2007/12/16/rails-2-0-and-the-future-of-typo#comment-1030 Comment on Rails 2.0 and the Future of Typo by Christopher Goodrich <p>Piers,</p> <p>Love Typo, but have a question. You&#8217;ve stated that you really are trying to get the engine slimmed down so that it can offload the processing work to the client, but are you considering that the basics of the existing engine is all server based? Offloading presentation to the client through JavaScript really doesn&#8217;t help very much and in today&#8217;s web technology, doesn&#8217;t <span class="caps">CSS</span> perform almost everything that you&#8217;d want to do in presentation anyway? Why even bother with JavaScript?</p> <p>Consider this. Write the basic application in Ruby on Rails, then shove the content and presentation to the client using xhtml and css only. Since these are flat files, you improve on the speed of delivery and rendering at the browser level without the headache of using another interpreted language. This has an added benefit of being easier to learn on the user side, plus if they actually want to use JavaScript, they still can.</p> Thu, 20 Dec 2007 10:39:45 -0600 urn:uuid:b1f57b1e-41b0-42d9-95ec-2eeb04115065 http://www.bofh.org.uk/articles/2007/12/16/rails-2-0-and-the-future-of-typo#comment-1038 Comment on Rails 2.0 and the Future of Typo by Piers Cawley <p>For the basic article display, you&#8217;re absolutely correct, and the aim of the game is to have a situation where the blog is mostly flat files in a directory structure that reflects the blog. Where I&#8217;m talking about using Javascript is in sidebars. Several of our currently sidebar plugins are dynamic and can&#8217;t be cached &#8211; when these are rendered within the page proper, it means that we can&#8217;t cache the page &#8211; no fun at all. If we limit sidebars to static text and force them to use javascript to fetch dynamic content we can continue to do page caching of the main content, but sidebars can be more dynamic by making <span class="caps">AJAX</span> requests.</p> <p>I also plan to try and nail down the <span class="caps">HTML</span> as much as possible, at least for the vital elements of each page like the articles or comments with the aim of implementing chunks of the administration interface as &#8216;direct manipulation&#8217; javascript, inspired by things like Seaside&#8217;s halos. So, an admin user would see handles on things like articles and use &#8216;click to edit&#8217; semantics to modify anything, writing changes back to the server using <span class="caps">APP</span> semantics. There would still be an admin console, if only for batch work, but for &#8216;quick&#8217; changes, I&#8217;m rather keen on a <span class="caps">HUD</span>/WYSIWYG model.</p> <p>The other client side processing I&#8217;m thinking about is spam processing. If we add an arbitrary &#8216;state&#8217; field, controlled by the client through <span class="caps">APP</span>, we can write a client that consumes the <code>/feedback.atom?state=pending</code> feed, does spam classification and writes them back to the collection with a state of <code>presumed_ham</code> or <code>presumed_spam</code>, it becomes relatively easy to write different clients for different spam protection strategies, something which has proved problematic with the current typo implementation, where spam protection measures can tie the server process up for embarrassing amounts of time.</p> Fri, 21 Dec 2007 12:44:47 -0600 urn:uuid:53dc7cfd-cda0-4bdb-bf59-21fe1227252a http://www.bofh.org.uk/articles/2007/12/16/rails-2-0-and-the-future-of-typo#comment-1039