<?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>AprilChild &#187; Fry</title>
	<atom:link href="http://www.april-child.com/blog/category/fry/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.april-child.com/blog</link>
	<description>Insignificant Tagline</description>
	<lastBuildDate>Tue, 13 Apr 2010 18:42:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Amy Editor available via GitHub</title>
		<link>http://www.april-child.com/blog/2009/02/10/amy-editor-available-via-github/</link>
		<comments>http://www.april-child.com/blog/2009/02/10/amy-editor-available-via-github/#comments</comments>
		<pubDate>Mon, 09 Feb 2009 22:55:27 +0000</pubDate>
		<dc:creator>p</dc:creator>
				<category><![CDATA[Amy]]></category>
		<category><![CDATA[Fry]]></category>

		<guid isPermaLink="false">http://www.april-child.com/blog/?p=57</guid>
		<description><![CDATA[Yep, the editor's source code is up for grab <a href="http://github.com/aprilchild">over here</a>. You will also need the Fry JavaScript library (available at GitHub as well), combine it somehow and it should work.]]></description>
			<content:encoded><![CDATA[<p>Yep, the editor&#8217;s source code is up for grab <a href="http://github.com/aprilchild">over here</a>. You will also need the Fry JavaScript library (available at GitHub as well), combine it somehow and it should work.
<p>
There might be some installation instructions posted soon, but I wouldn&#8217;t count on it:).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.april-child.com/blog/2009/02/10/amy-editor-available-via-github/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>What&#8217;s cooking&#8230;</title>
		<link>http://www.april-child.com/blog/2008/12/19/whats-cooking/</link>
		<comments>http://www.april-child.com/blog/2008/12/19/whats-cooking/#comments</comments>
		<pubDate>Fri, 19 Dec 2008 21:44:08 +0000</pubDate>
		<dc:creator>p</dc:creator>
				<category><![CDATA[Amy]]></category>
		<category><![CDATA[Fry]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://www.april-child.com/blog/?p=44</guid>
		<description><![CDATA[Hi,
<br/>
for those 2 readers of this blog left (me and my mom probably;), I thought I'd give you some overview of upcoming changes to various projects of mine. 
<p>
<a href="http://www.april-child.com/blog/2008/12/19/whats-cooking/">Read on...</a>
</p>
]]></description>
			<content:encoded><![CDATA[<p>
First of all, there&#8217;s <a href="/amy/website/">Amy Editor</a>. Its development halted 8 months ago, versions for download are even older and slower (kill me, I deserve it, no excuse of not putting it out for grab).
</p>
<p>
 So what&#8217;s next? Well, guess what, I bought a domain for it &#8211; <a href="http://www.amyeditor.com"> http://www.amyeditor.com</a>! Awesome, I can hear you, but what&#8217;s really next? The answear is &#8211; it depends on you. I&#8217;ve opened a forum on <a href="http://amyeditor.uservoice.com/">UserVoice</a> and welcome any suggestions, controversy or just random shouts. I have some preliminary ideas what to do with various parts of the editor, it&#8217;s quite possible to separate it into smaller chunks and create couple of services out of it. I don&#8217;t think the editor as it is now has much of a chance. Sure it looks nice in Safari on my Mac (and it&#8217;s fast as .. you name it), but looking at it on IE/Windows just doesn&#8217;t feel that appealing.
</p>
<p>
The main reason for canceling all work on the editor was a job (paid &#8211; whoa!:) of co-creating brand new amazing service, which I&#8217;ll share with you <em>really soon</em>. It&#8217;ll blow your mind :).
</p>
<p>
As for *.isonrails.com &#8211; there are no news, it&#8217;s abandoware at the moment :(. It&#8217;s a real shame for all those poor <a href="http://heroku.com">Heroku</a> users fighting with wonderful service and plainly TERRIBLE user interface &#8211; imagine <a href="http://www.isonrails.com">isonrails.com</a> interface planted on Heroku. That would be awesome.
</p>
<p>
<a href="http://www.april-child.com/fry/test/">Fry</a> &#8211; the underlying, ancient old JavaScript library that Amy Editor uses &#8211; no change in that department either :). But have you noticed the <a href="http://www.april-child.com/fry/terminal/test_simple.html">JavaScript Terminal</a> demo? Pretty neat, huh? ;)
</p>
<p>
Saludos,
</p>
<p>
and merry X-mas and happy new year (and all that crap:),
</p>
<p>
Petr
</p>
<p>
P.S. &#8211; don&#8217;t forget the <a href="http://amyeditor.uservoice.com">Amy Editor UserVoice</a>! :)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.april-child.com/blog/2008/12/19/whats-cooking/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Fry, JavaScript redefined (slightly:-)</title>
		<link>http://www.april-child.com/blog/2007/06/29/fry-javascript-redefined-slightly/</link>
		<comments>http://www.april-child.com/blog/2007/06/29/fry-javascript-redefined-slightly/#comments</comments>
		<pubDate>Fri, 29 Jun 2007 10:06:22 +0000</pubDate>
		<dc:creator>p</dc:creator>
				<category><![CDATA[Fry]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.april-child.com/blog/2007/06/29/fry-javascript-redefined-slightly/</guid>
		<description><![CDATA[This is the first in a series of articles about yet another library. Well, this one is really super-sweet. Fry Framework (or just Fry) is an evolution of 12 years JavaScript programming (mine of course, not in general:-). Long time has passed and the framework encapsulates many ideas being discovered on the way. I'm not going to bore you with more historical/philosophical views, let's just start right away.]]></description>
			<content:encoded><![CDATA[<p>This is the first in a series of articles about Fry, well known Futurama, eergh, it&#8217;s about JavaScript folks. <span class="stop-talking-stupid">Damn..!</span></p>
<h3>What&#8217;s it about?</h3>
<p>Fry Framework (or just Fry) is an evolution of 12 years JavaScript programming (mine of course, not in general:-). Long time has passed and the framework encapsulates many ideas being discovered on the way. I&#8217;m not going to bore you with more historical/philosophical views, let&#8217;s just start right away. Well, keep reading&#8230;
</p>
<h3>Prerequisities</h3>
<p>You should be somehow familiar with the idea of DOM. If you&#8217;ve never used document.getElementById(), node.appendChild(el) and similar, this is probably not for you. <span class="stop-talking-stupid">Don&#8217;t be sorry though, there are millions of things more worthy than being a javascript weirdo:-).</span>
</p>
<h3>No more .appendChild()</h3>
<p>Fry is based around idea of replacing the most tedious code writing. It frees you from tons of &#8220;fill the gap&#8221; code for performing trivial DOM manipulation, assigning and responsing to various events, dealing with XML, Ajax and file uploads. Your code will be much smaller, written in a fraction of time. You may use the time saved for the real problems or just go home :-).
</p>
<h3>Learn the shortcuts, keep the chain in mind</h3>
<p>You were probably looking for the first example, here it goes:</p>
<pre class="code">
$().<span class="keyword">a</span>($$()).<span class="keyword">t</span>(<span class="string">'Hello world!'</span>).<span class="keyword">e</span>(<span class="string">'click'</span>, function(evt)
{
	evt.$.<span class="keyword">s</span>(<span class="string">'color:red'</span>).<span class="keyword">at</span>(<span class="keyword">' This is Fry.'</span>);
});
</pre>
<p>Although a little bit cryptical at first, believe me, you will get used to it very quickly. What we just wrote is a DIV appended to BODY containing the text &#8220;Hello world!&#8221; that is clickable. After you click on it, it will change its text color to red and append the text &#8220;This is Fry.&#8221;. Maybe you will better recognize this piece of code:</p>
<pre class="code">
var el = document.<span class="keyword">createElement</span>('DIV');
<span class="comment">// yes, I know we should be doing true DOM using el.appendChild(document.createTextNode('Hello world!')),</span>
<span class="comment">// but is the phrase "developers cycle" saying anything to you? :-)</span>
el.innerHTML = <span class="string">'Hello world!'</span>;
el = document.<span class="keyword">getElementsByTagName</span>('BODY').item(0).<span class="keyword">appendChild</span>(el);
<span class="comment">// This will not work for IE, we should use attachEvent()</span>
el.<span class="keyword">addEventListener</span>('click', function(evt)
{
	el.style.color = <span class="string">'red'</span>;
	<span class="comment">// or var ht = el.innerHTML; ht += ' This is Fry.'; el.innerHTML = ht;</span>
	el.<span class="keyword">appendChild</span>(document.<span class="keyword">createTextNode</span>(<span class="string">' This is Fry.'</span>));
});
</pre>
<p>OK, this was not fun, first we have to deal with browser differences, secondly there is just too much code to be written and we only scratch the surface with a primitive task. Don&#8217;t write your code this way. You may not end up using Fry, feel free to use Prototype, Mochikit, JQuery or any of the zillions of frameworks. Let me repeat it. Do NOT, under any circumstances, try to write your code this way, that is using the primitives of DOM. <span class="stop-talking-stupid">Unless of course you&#8217;re a regular to S&amp;M parties and pain is your pleasure :-).</span></p>
<h3>Learn the shortcuts and commands chaining</h3>
<p>Apart from previous chapter title, we haven&#8217;t quite talk about it yet. So what are these shortcuts and what the hell is chaining anyway? Does it do any good to me or will I be forced to rethink and shift my programming techniques? Well, the answer to the last two questions is simple. Yes and .. probably yes. First answer is just a reassurement, you will have to find the real answer to the second question by yourself. <span class="stop-talking-stupid">Enough of this chit-chat already&#8230;</span></p>
<p>Shortcuts are methods names shortened to absolute minimum. If you want to positionate something on your page at 400 pixels from the left and 140 from the top of your browser window, you just imagine the more natural X and Y coordinates (left for X, top for Y) and write <code class="code">el.<span class="keyword">x</span>(400).<span class="keyword">y</span>(140)</code>. It&#8217;s that simple. Chaining is what you just saw. Practically any method combination can be used to archieve something on an element/object. You just have to separate the methods by dot. So instead of writing several lines of code, you can archieve the same effect by chaining. And since you use shortcuts, the lines are not very long thus easily readable. If you don&#8217;t understand:</p>
<pre class="code">
	el.<span class="keyword">x</span>(314).<span class="keyword">y</span>(159).<span class="keyword">z</span>(26).<span class="keyword">t</span>(<span class="string">'hello from chain'</span>);
	<span class="comment">// does it need a comment? positionate el 314 left, 159 top, z-index 26,
	// and let it contain the text "hello from chain"	</span>
</pre>
<p>then again, Fry is probably not for you.</p>
<h3>You know, Fry&#8230; Of all the friends I&#8217;ve had, you&#8217;re the first</h3>
<p>
	This was just an introductory article to Fry. Stay tuned.
</p>
<p><span class="stop-talking-stupid">I really have to change Wordpress to something else&#8230; It&#8217;s ugly in the morning.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.april-child.com/blog/2007/06/29/fry-javascript-redefined-slightly/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
