<?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>Tudor Barbu&#039;s professional blog &#187; versus</title>
	<atom:link href="http://blog.motane.lu/tag/versus/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.motane.lu</link>
	<description>Ramblings about software development</description>
	<lastBuildDate>Thu, 02 Feb 2012 17:38:27 +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>Semantics &#8211; input type=&#8221;submit&#8221; vs. button</title>
		<link>http://blog.motane.lu/2009/03/06/semantics-input-typesubmit-vs-button/</link>
		<comments>http://blog.motane.lu/2009/03/06/semantics-input-typesubmit-vs-button/#comments</comments>
		<pubDate>Fri, 06 Mar 2009 21:03:54 +0000</pubDate>
		<dc:creator>Tudor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[semantic web]]></category>
		<category><![CDATA[versus]]></category>
		<category><![CDATA[w3c]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://blog.motane.lu/?p=514</guid>
		<description><![CDATA[What&#8217;s the difference between: &#8230;and&#8230; Apparently none. Both snippets look and act exactly the same way. And yet, there is a more subtle difference. The difference lies in the semantics and in the meaning of the two types of buttons. A &#60;button&#62; tag displays a button, that you can click with your mouse and can [...]]]></description>
			<content:encoded><![CDATA[<p>What&#8217;s the difference between:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;form action=&quot;/foo&quot; method=&quot;post&quot;&gt;
    &lt;!-- other form fields --&gt;
    &lt;input type=&quot;submit&quot; value=&quot;Send data&quot; /&gt;
&lt;/form&gt;
</pre>
<p>&#8230;and&#8230;</p>
<pre class="brush: xml; title: ; notranslate">
&lt;form action=&quot;/foo&quot; method=&quot;post&quot;&gt;
    &lt;!-- other form fields --&gt;
    &lt;button type=&quot;submit&quot;&gt;
        Send data
    &lt;/button&gt;
&lt;/form&gt;
</pre>
<p>Apparently none. Both snippets look and act exactly the same way. And yet, there is a more subtle difference. The difference lies in the semantics and in the meaning of the two types of buttons. A &lt;button&gt; tag displays a button, that you can click with your mouse and can be placed almost anywhere on a page. That&#8217;s all. It doesn&#8217;t have a purpose. </p>
<p>An &lt;input type=&#8221;submit&#8221; &gt; on the other hand does a lot more. It&#8217;s a form element &#8211; can only appear in a form &#8211; and it has meaning attached to it. When you submit a form by clicking on such an button, the value of the button is being sent along with the values of all the other form elements to the server. </p>
<pre class="brush: xml; title: ; notranslate">
&lt;form action=&quot;/foo&quot; method=&quot;post&quot;&gt;
    &lt;input type=&quot;checkbox&quot; name=&quot;item[]&quot; value=&quot;1&quot; id=&quot;item_1&quot; /&gt; &lt;label for=&quot;item_1&quot;&gt;First item&lt;/label&gt;
    &lt;input type=&quot;checkbox&quot; name=&quot;item[]&quot; value=&quot;2&quot; id=&quot;item_2&quot; /&gt; &lt;label for=&quot;item_2&quot;&gt;Second item&lt;/label&gt;
    &lt;input type=&quot;checkbox&quot; name=&quot;item[]&quot; value=&quot;3&quot; id=&quot;item_3&quot; /&gt; &lt;label for=&quot;item_3&quot;&gt;Third item&lt;/label&gt;
    With selected: &lt;input type=&quot;submit&quot; name=&quot;delete&quot; value=&quot;Delete&quot; /&gt; &lt;input type=&quot;submit&quot; name=&quot;archive&quot; value=&quot;Move to archive&quot; /&gt;
&lt;/form&gt;
</pre>
<p>In this case it matters on which button the user clicks, so an input type=&#8221;submit&#8221; tag is the best choice. But when you have something like:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;form action=&quot;/foo&quot; method=&quot;post&quot;&gt;
    &lt;input type=&quot;text&quot; name=&quot;email&quot; /&gt;
    &lt;button type=&quot;submit&quot;&gt;
        Subscribe to newsletter
    &lt;/button&gt;
&lt;/form&gt;
</pre>
<p>&#8230;it doesn&#8217;t! So here the button tag is best suited.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.motane.lu/2009/03/06/semantics-input-typesubmit-vs-button/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Perl vs PHP</title>
		<link>http://blog.motane.lu/2009/02/08/perl-vs-php/</link>
		<comments>http://blog.motane.lu/2009/02/08/perl-vs-php/#comments</comments>
		<pubDate>Sun, 08 Feb 2009 08:28:35 +0000</pubDate>
		<dc:creator>Tudor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[career]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[recommendations]]></category>
		<category><![CDATA[versus]]></category>

		<guid isPermaLink="false">http://blog.motane.lu/?p=405</guid>
		<description><![CDATA[I&#8217;ve read this article that debates the differences between perl and PHP in a childish way &#8211; sort of like the kindergarten debates on whether Batman can kick Spiderman&#8217;s ass. Since I haven&#8217;t ever coded a single line in perl, I can prove to the world that I&#8217;m a mature person that doesn&#8217;t plunge into [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve read this <a href="http://tnx.nl/php.html" title="PHP in contrast to perl" class="outgoing">article</a> that debates the differences between perl and PHP in a childish way &#8211; sort of like the kindergarten debates on whether Batman can kick Spiderman&#8217;s ass. Since I haven&#8217;t ever coded a single line in perl, I can prove to the world that I&#8217;m a mature person that doesn&#8217;t plunge into &#8220;my operator in better than yours&#8221; debates, because if I would have any perl experience, I would be right there in the middle of it <img src='http://blog.motane.lu/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  .</p>
<p>They may be right on some of the statements they make, but when they claim that a career in perl in better than one in PHP they&#8217;re wrong. Dead wrong. PHP has a bright future ahead it whereas PERL does not. Because, in the end, arguments such as “perl has better naming conventions” don’t matter. In a world where nearly all programmers have access to speedy <a href="http://www.o2.co.uk/">O2 broadband packages</a> or other reliable internet connections, both systems can be (and usually are) widely in use on a number of hugely popular sites. Decisions on what technologies should be used, especially on large projects where loads of money are involved, aren’t taken by geeks in dark rooms over a game of AD&#038;D, but by CEOs over a game of golf or in really expensive restaurants. </p>
<p>If you go on <a href="http://www.zend.com" title="the php company" class="outgoing">Zend</a>&#8216;s website, you find things like <em>improve productivity</em>, <em>maximize IT investments</em>. This is music to a manager&#8217;s ears. CEOs like pie charts more than they like pie. If you go on perl&#8217;s website, what do you see? Well, <em>perl 5</em>, <em>perl 6</em>, <em>CPAN ratings</em>, <em>Annotated CPAN</em>, <em>mailing lists</em>. Why do you think that there are so many products being developed on Microsoft technologies? Do you think C# in better than perl or PHP? Or that ASP (not ASP.NET, the original ASP) was better? No, this is just Microsoft&#8217;s image at work.</p>
<p>PHP is quite big on its own, but compared to perl, it&#8217;s huge. PHP in on <a href="http://www.oracle.com/technology/tech/php/index.html" title="Oracle's PHP Developer Center" class="outgoing">Oracle&#8217;s site</a>. PHP is on <a href="http://www.adobe.com/devnet/flex/flex_php.html" title="Learn Flex and PHP" class="outgoing">Adobe&#8217;s site</a>. Wikipedia is built on PHP, WordPress is built in PHP and the examples go on and on. Perl is not even in the debate, it&#8217;s seen as an esoteric language used by CLI geeks. I doubt (I haven&#8217;t checked so feel free to prove me wrong) that there is a single project with a budget over 200.000 euros being developed on perl.</p>
<p>These factors aren&#8217;t exactly &#8220;programming related&#8221;, so why are they so important in the day by day life of the average programmer? Well, they create jobs, pay money, give you the ability to pay the rent, buy a car, go on vacation and so on. If you come across a career decision between perl and PHP, don&#8217;t waste time wandering if perl&#8217;s naming standard is better than php&#8217;s or which language has less string comparison functions. But instead ask yourself, which technology will allow you to find a better job? Look on a local jobbing site and see how many PHP are available and compare that number to the number of perl jobs available &#8211; if any. </p>
<p>&#8230;just my 2 cents. </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.motane.lu/2009/02/08/perl-vs-php/feed/</wfw:commentRss>
		<slash:comments>56</slash:comments>
		</item>
		<item>
		<title>Google Maps vs Yahoo Maps</title>
		<link>http://blog.motane.lu/2009/01/27/google-maps-vs-yahoo-maps/</link>
		<comments>http://blog.motane.lu/2009/01/27/google-maps-vs-yahoo-maps/#comments</comments>
		<pubDate>Tue, 27 Jan 2009 20:35:50 +0000</pubDate>
		<dc:creator>Tudor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[versus]]></category>
		<category><![CDATA[yahoo]]></category>

		<guid isPermaLink="false">http://blog.motane.lu/?p=311</guid>
		<description><![CDATA[Today I had to choose between Google&#8217;s and Yahoo&#8217;s Maps APIs. As I&#8217;m quite a Google fan, I first checked out its maps API. Very disappointing. It seems that the API was designed by some marketing guy or a janitor. I know, tough accusation. And I haven&#8217;t even code one page with Google&#8217;s API. What [...]]]></description>
			<content:encoded><![CDATA[<p>Today I had to choose between Google&#8217;s and Yahoo&#8217;s Maps APIs. As I&#8217;m quite a Google fan, I first checked out its maps API. Very disappointing. It seems that the API was designed by some marketing guy or a janitor. I know, tough accusation. And I haven&#8217;t even code one page with Google&#8217;s API. What makes me say that? Well, it all ended when I started reading their Terms and Conditions. It seems that all Google Maps API key are domain dependent (only work for a specified domain). And this sucks.</p>
<p>There are 4 traditional stages in software development: development, integration, staging and production. Usually, all these stages take place of different machines that have different domains and/or subdomains. This means that you need a Google API key for each stage. It means that you&#8217;ll need at least 3 different API keys just to get to the part where you&#8217;re testing the application. But if the developers use different virtual hosts for the project, the number of required APIs increase exponentially. I know that API keys are free, but time isn&#8217;t and it&#8217;s quite annoying to have to register for a new API key everytime you set up a demo version of the project on a new subdomain. </p>
<p>With Yahoo on the other hand, you only need one API key. And it works. A word of advice: if you need a map API, go with Yahoo! I did&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.motane.lu/2009/01/27/google-maps-vs-yahoo-maps/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

