<?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>Juan Benavides &#187; twitto</title>
	<atom:link href="http://juanbenavides.info/tag/twitto/feed/" rel="self" type="application/rss+xml" />
	<link>http://juanbenavides.info</link>
	<description>Anotaciones de un Geek</description>
	<lastBuildDate>Tue, 25 Oct 2011 05:08:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Twitto, un framework PHP en un twit</title>
		<link>http://juanbenavides.info/twitto-un-framework-php-en-un-twit/2009/01/</link>
		<comments>http://juanbenavides.info/twitto-un-framework-php-en-un-twit/2009/01/#comments</comments>
		<pubDate>Mon, 12 Jan 2009 23:34:36 +0000</pubDate>
		<dc:creator>Juan Benavides</dc:creator>
				<category><![CDATA[Programación]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[twitto]]></category>

		<guid isPermaLink="false">http://juanbenavides.info/?p=136</guid>
		<description><![CDATA[Twitto es el web framework para PHP más pequeño hasta ahora, escrito en menos de 140 caraceteres por Fabien Potencier de Symfony. El framework a continuación: require __DIR__.'/c.php'; if &#40;!is_callable&#40;$c = @$_GET&#91;'c'&#93; ?: function&#40;&#41; &#123; echo 'Woah!'; &#125;&#41;&#41; throw new Exception&#40;'Error'&#41;; $c&#40;&#41;; Evidentemente es un framework experimental y no se recomienda para producción. El framework [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://twitto.org/">Twitto</a> es el web framework para PHP más pequeño hasta ahora, escrito en menos de 140 caraceteres por <a href="http://www.symfony-project.org/">Fabien Potencier</a> de <a href="http://www.symfony-project.org/">Symfony</a>. El framework a continuación:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">require</span> __DIR__<span style="color: #339933;">.</span><span style="color: #0000ff;">'/c.php'</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">is_callable</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$c</span> <span style="color: #339933;">=</span> <span style="color: #339933;">@</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'c'</span><span style="color: #009900;">&#93;</span> ?<span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'Woah!'</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
  <span style="color: #b1b100;">throw</span> <span style="color: #000000; font-weight: bold;">new</span> Exception<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Error'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$c</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Evidentemente es un framework experimental y no se recomienda para producción. El framework funciona únicamente con PHP 5.3, ya que incluye algunas de sus novedades:</p>
<ul>
<li>La constante <code>__DIR__</code></li>
<li>El operador <code>?:</code></li>
<li>Funciones anonimas</li>
</ul>
<p>Vía | <a href="http://www.symfony.es/2009/01/11/twitto-el-framework-php-mas-pequeno/">Symfony.es: Twitto, el framework PHP más pequeño</a></p>
]]></content:encoded>
			<wfw:commentRss>http://juanbenavides.info/twitto-un-framework-php-en-un-twit/2009/01/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

