<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Unwrongest &#187; webapp</title>
	<atom:link href="http://www.unwrongest.com/tag/webapp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.unwrongest.com</link>
	<description>Interaction Designer and Interface Developer</description>
	<lastBuildDate>Wed, 30 Jun 2010 11:24:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>How to decompress javascript</title>
		<link>http://www.unwrongest.com/blog/how-to-decompress-javascript/</link>
		<comments>http://www.unwrongest.com/blog/how-to-decompress-javascript/#comments</comments>
		<pubDate>Wed, 04 Mar 2009 21:02:06 +0000</pubDate>
		<dc:creator>Jan Jarfalk</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[webapp]]></category>

		<guid isPermaLink="false">http://unwr/?p=46</guid>
		<description><![CDATA[The online beautifier is a javascript decompression tool. It takes a compressed javascript and inserts indents, new lines and makes it readable. You find the online beautifier at <a href="http://elfz.laacz.lv/beautify/">http://elfz.laacz.lv/beautify/</a>.]]></description>
			<content:encoded><![CDATA[<p>When I am finished with a javascript component, like Elastic, Tabify or Accordion, I always create a compressed version of the source code using a javascript compressor like <a href="http://developer.yahoo.com/yui/compressor/">YUI Compressor</a> or <a href="http://dean.edwards.name/packer/">Dean Edwards Packer</a>. The compressor shortens long internal variable names and removes unnecessary white spaces making the code lighter.</p>
<p>Developers often only provide these compressed versions of the code, which makes the code hard to read, understand and modify. The online beautifier is a javascript decompressor. It doesn&#8217;t get back the original variable names but it does create indentations and new lines. Below is an example of what the online beautifier does with the compressed code of my Jquery plugin Accordion.</p>
<p>This is the compressed and minified version of the jquery plugin Accordion. The whole source code is on one line and all white spaces are removed. </p>
<pre class="brush:js">
(function($){$.fn.extend({accordion:function(){return this.each(function(){if($(this).data('accordiated'))return false;$.each($(this).find('ul, li>div'),function(){$(this).data('accordiated',true);$(this).hide()});$.each($(this).find('a'),function(){$(this).click(function(e){$(e.target).parent('li').toggleClass('active').siblings().removeClass('active').children('ul, div').slideUp('fast');$(e.target).siblings('ul, div').slideToggle('fast');return void(0)})})})}})})(jQuery);
</pre>
<p>This is exactly the same code after the online beautifier is done with it. The tabs and new lines it has inserted has made the code a lot more readable.</p>
<pre class="brush:js">
(function($) {
  $.fn.extend({
    accordion: function() {
      return this.each(function() {
        if ($(this).data('accordiated')) return false;
        $.each($(this).find('ul, li>div'),
        function() {
          $(this).data('accordiated', true);
          $(this).hide()
        });
        $.each($(this).find('a'),
        function() {
          $(this).click(function(e) {
            $(e.target).parent('li').toggleClass('active').siblings().removeClass('active').children('ul, div').slideUp('fast');
            $(e.target).siblings('ul, div').slideToggle('fast');
            return void(0)
          })
        })
      })
    }
  })
})(jQuery);
</pre>
<p>The tool is not perfect, and it can&#8217;t decompress everything, e.g. it can&#8217;t decompress a file which have been Base62 encoded &#8211; But I like it and think you should give it a go at <a href="http://elfz.laacz.lv/beautify/">http://elfz.laacz.lv/beautify/</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unwrongest.com/blog/how-to-decompress-javascript/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Forget Textmate 2 and embrace Bespin</title>
		<link>http://www.unwrongest.com/blog/forget-textmate-2-and-embrace-bespin/</link>
		<comments>http://www.unwrongest.com/blog/forget-textmate-2-and-embrace-bespin/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 00:54:23 +0000</pubDate>
		<dc:creator>Jan Jarfalk</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[webapp]]></category>

		<guid isPermaLink="false">http://unwr/?p=41</guid>
		<description><![CDATA[Bespin is an online code editor by Mozilla which is currently in alpha. It is far far from useable, but the execution of what there is, is really nice.]]></description>
			<content:encoded><![CDATA[<p>My code editor of choice is Textmate, a fairly simple mac only text editor with syntax highlighting and some built in magic. But since Textmate is, whatever you say Allan, abandoned, it&#8217;s time to start looking for something new. Something like the web-based code editor Bespin.</p>
<p>Right now Bespin isn&#8217;t much. It includes support for basic editing features, such as syntax highlighting, undo/redo, previewing files in the browser, etc. It is not Textmate, it&#8217;s not even good enough for basic development (it&#8217;s an alpha version of a work in progress), but the execution of what there is, is really nice.</p>
<p>The idea of an online editor is not new, but this is the first one I see potential in, since it actually got the speed of a desktop application. Further the team behind it has a few interesting ideas such as a community for javascript based plugins and integrated collaboration. <strong>Just click play on the embedded Bespin introduction video for more thoughts and information from the developers.</strong></p>
<p>I for one would be more than happy if Bespin turned out to be something I could use instead of Textmate. It&#8217;s not that Textmate is bad, Textmate is the opposite of bad, it&#8217;s the best tool out there for a web interface developer. But an online tool with the features of Textmate, and a Google Gears implementation so I can use if offline, would just be a bit more&#8230; awesome.</p>
<p>You can find further reading about Bespin at <a href="http://labs.mozilla.com/projects/bespin/">labs.mozilla.com</a> and try it out at <a href="https://bespin.mozilla.com/">bespin.mozilla.com</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unwrongest.com/blog/forget-textmate-2-and-embrace-bespin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
