<?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>asrar.ca &#187; Web Design</title>
	<atom:link href="http://asrar.ca/category/webdesign/feed/" rel="self" type="application/rss+xml" />
	<link>http://asrar.ca</link>
	<description>web design news and tips, hockey ramblings, and music opinions</description>
	<lastBuildDate>Mon, 05 Oct 2009 21:27:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>10 User Interface Design Fundamentals</title>
		<link>http://asrar.ca/2009/10/10-user-interface-design-fundamentals/</link>
		<comments>http://asrar.ca/2009/10/10-user-interface-design-fundamentals/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 21:18:28 +0000</pubDate>
		<dc:creator>asrar</dc:creator>
				<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://asrar.ca/?p=227</guid>
		<description><![CDATA[It&#8217;s no great mystery that truly great user interfaces are the ones that are engineered to stay out of the way. That reminds me of another quote I heard recently: &#8220;perfection is not when there is nothing left to add, but when there is nothing left to take away.&#8221;]]></description>
			<content:encoded><![CDATA[<blockquote><p><a href="http://carsonified.com/blog/design/10-user-interface-design-fundamentals/" target="_blank">It&#8217;s no great mystery that truly great user interfaces are the ones that are engineered to stay out of the way.</a></p></blockquote>
<p>That reminds me of another quote I heard recently: &#8220;perfection is not when there is nothing left to add, but when there is nothing left to take away.&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://asrar.ca/2009/10/10-user-interface-design-fundamentals/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery and checkboxes</title>
		<link>http://asrar.ca/2009/09/jquery-and-checkboxes/</link>
		<comments>http://asrar.ca/2009/09/jquery-and-checkboxes/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 19:04:12 +0000</pubDate>
		<dc:creator>asrar</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://asrar.ca/?p=210</guid>
		<description><![CDATA[Using a javascript library like jQuery can speed up your development. However sometimes you might hit a wall when doing simple things &#8220;the jQuery way&#8221;. A common example is working with checkboxes. How do we determine if the checkbox is checked or not? How do check the checkbox automatically? In regular javascript, it&#8217;s quite straight [...]]]></description>
			<content:encoded><![CDATA[<p>Using a javascript library like jQuery can speed up your development. However sometimes you might hit a wall when doing simple things &#8220;the jQuery way&#8221;.</p>
<p>A common example is working with checkboxes. How do we determine if the checkbox is checked or not? How do check the checkbox automatically?</p>
<p>In regular javascript, it&#8217;s quite straight forward:</p>
<pre>var chk = document.getElementById("myCheckbox");
if (chk.checked) {
  // the checkbox is checked..
}
</pre>
<p>In jQuery, we cannot check the &#8220;checked&#8221; property of the element, since the element is actually a jQuery object.</p>
<pre>var chk = $("#myCheckbox");
alert(chk.checked); //undefined!</pre>
<p>Though the jQuery object does not have a checked property, the checkbox itself still has the &#8220;checked&#8221; attribute. So we can test if the attribute is true or false. Luckily, jQuery has an <code>is()</code> function which does just that.</p>
<pre>var chk = $("#myCheckbox");
if (chk.is(":checked")) {
  // the checkbox is checked..
}</pre>
<p>It&#8217;s very simple but just takes a little different thinking. </p>
<p>To &#8220;check&#8221; the checkbox using jQuery, you would again do it using the &#8220;checked&#8221; attribute of the input element.</p>
<pre>
var chk = $("#myCheckbox");
chk.attr("checked", true);
</pre>
<p>That&#8217;s all there is to it, really. Hopefully this little tip will help you out. Happy programming!</p>
]]></content:encoded>
			<wfw:commentRss>http://asrar.ca/2009/09/jquery-and-checkboxes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebook acquires Friendfeed</title>
		<link>http://asrar.ca/2009/08/facebook-acquires-friendfeed/</link>
		<comments>http://asrar.ca/2009/08/facebook-acquires-friendfeed/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 04:10:48 +0000</pubDate>
		<dc:creator>asrar</dc:creator>
				<category><![CDATA[Tech News]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[friendfeed]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://asrar.ca/?p=199</guid>
		<description><![CDATA[Social networking behemoth Facebook.com has acquired Friendfinder.com for US$ 47.5 million. This is huge news. Friendfeed&#8217;s staff includes some ex-Google geniuses, including Paul Buchheit, who created Gmail and AdSense. With this acquisition we can only expect Facebook&#8217;s interface to become richer, its functionality more innovative and its aura more addictive. Read the techcrunch article for [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://asrar.ca/wp-content/uploads/2009/08/facebook-friendfeed.gif" class="postimage alignright" alt="Facebook + Friendfeed (=friendface?)"/>Social networking behemoth Facebook.com has acquired Friendfinder.com for US$ 47.5 million.</p>
<p>This is huge news. Friendfeed&#8217;s staff includes some ex-Google geniuses, including Paul Buchheit, who created Gmail and AdSense. With this acquisition we can only expect Facebook&#8217;s interface to become richer, its functionality more innovative and its aura more addictive. </p>
<p><a href="http://www.techcrunch.com/2009/08/10/facebook-acquires-friendfeed/" target="new">Read the techcrunch article for more.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://asrar.ca/2009/08/facebook-acquires-friendfeed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web citizens trying to kill IE 6</title>
		<link>http://asrar.ca/2009/08/web-citizens-trying-to-kill-ie-6/</link>
		<comments>http://asrar.ca/2009/08/web-citizens-trying-to-kill-ie-6/#comments</comments>
		<pubDate>Sun, 09 Aug 2009 18:39:13 +0000</pubDate>
		<dc:creator>asrar</dc:creator>
				<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://asrar.ca/?p=193</guid>
		<description><![CDATA[&#8220;This isn&#8217;t an anti-Microsoft campaign,&#8221; he said. &#8220;Microsoft makes some fantastic products. The latest version of their browser is a good browser. But with regards to IE 6 &#8230; [it] is an awful browser and no one should be using it.&#8221; Read the full CNN article here.]]></description>
			<content:encoded><![CDATA[<blockquote><p>&#8220;This isn&#8217;t an anti-Microsoft campaign,&#8221; he said. &#8220;Microsoft makes some fantastic products. The latest version of their browser is a good browser. But with regards to IE 6 &#8230; [it] is an awful browser and no one should be using it.&#8221;</p></blockquote>
<p><a href="http://www.cnn.com/2009/TECH/08/06/internet.explorer.six/" target="_blank">Read the full CNN article here.</a></p>
<p><div class="diggbutton"><a href="http://digg.com/submit?phase=2&amp;url=http://asrar.ca/2009/08/web-citizens-trying-to-kill-ie-6/"><img src="http://asrar.ca/wp-content/plugins/diggbutton/diggsubmit.gif"></a></div></p>
]]></content:encoded>
			<wfw:commentRss>http://asrar.ca/2009/08/web-citizens-trying-to-kill-ie-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP doesn&#8217;t suck &#8211; here&#8217;s why</title>
		<link>http://asrar.ca/2009/08/asp-doesnt-suck-heres-why/</link>
		<comments>http://asrar.ca/2009/08/asp-doesnt-suck-heres-why/#comments</comments>
		<pubDate>Sun, 09 Aug 2009 02:48:35 +0000</pubDate>
		<dc:creator>asrar</dc:creator>
				<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://asrar.ca/?p=184</guid>
		<description><![CDATA[Recently Jeffrey Way asked his loyal readers if someone could submit an ASP.NET tutorial for his popular website, NetTuts.com. Being familiar with both ASP.NET and it&#8217;s predecessor, classic ASP, I asked if classic ASP also acceptable. His answer? &#8220;Not in a million years will I post a classic ASP tut on this site&#8221;. Ouch. Now [...]]]></description>
			<content:encoded><![CDATA[<p>Recently Jeffrey Way <a href="http://net.tutsplus.com/articles/news/miscellaneous-news-and-ramblings/" target="_blank">asked</a> his loyal readers if someone could submit an ASP.NET tutorial for his popular website, <a title="NetTuts" href="http://www.nettuts.com" target="_blank">NetTuts.com</a>. Being familiar with both ASP.NET and it&#8217;s predecessor, classic ASP, I asked if classic ASP also acceptable.</p>
<p>His answer?</p>
<blockquote><p>&#8220;Not in a million years will I post a classic ASP tut on this site&#8221;.</p></blockquote>
<p>Ouch. Now I feel like I have to defend classic ASP&#8230; and I will!</p>
<p>Many people automatically think that ASP.NET is better than ASP. After all, it&#8217;s &#8220;.net&#8221;! That sounds cool &#8211; it must be better, right? Well, not necessarily. Here are a few reason why ASP is better than ASP.NET, and should still be relevant in today&#8217;s web design world:</p>
<p><strong>Reason #1: ASP is simple; ASP.NET is not.</strong></p>
<p>If you&#8217;re a web designer, you should know that the first law of usability is &#8220;don&#8217;t make me think&#8221;. This is where ASP.NET fails miserably. The main problem with ASP.NET is that it&#8217;s a massive framework, rather than a progamming language. So instead of just learning some syntax and function names, there&#8217;s a whole new paradigm to understand. It looks, feels and behaves unlike any other language. There&#8217;s so much going on that it makes your head hurt. It&#8217;s convoluted. It&#8217;s complex for no reason. This makes the learning curve a wall. I&#8217;m sure there are brainiacs out there who can climb walls, but I&#8217;d rather just take the stairs.</p>
<p>Classic ASP, like PHP, is simple to understand. The concepts are familiar and very easy to grasp, so you can concentrate on solving problems instead of wasting time staring at your monitor and cursing under your breath. In the end, you&#8217;ll get your job done a lot faster.</p>
<p><strong>Reason #2: You control ASP; ASP.NET controls you.</strong></p>
<p>When I do a view source on my website, I want to see the beautifully layered HTML, CSS and JavaScript that I coded, not someone else&#8217;s mess. If you are a web designer that appreciate W3C standards, then you have to hate ASP.NET server controls. They spit out lots of ugly HTML, CSS and JavaScript code into your resulting page, and leaving you with little control over style. They also take total control over the ID attribute of your element, so accessing it with #myelement in CSS, or $(&#8220;#myelement&#8221;) in jQuery, won&#8217;t work anymore.  In general, ASP.NET insists that it create client-side code for you. Not only that but it adds dozens of new files and folders to your web directory for no apparent reason.</p>
<p>With ASP, there are no surprises. What you code is what you get. You&#8217;re in control &#8211; and that&#8217;s essential for web designers.</p>
<p><strong>Reason #3: ASP is portable; ASP.NET is a nightmare.</strong></p>
<p>ASP also excels in migration compared to ASP.NET. When I transferred an ASP website from our servers to godaddy.com, everything went smoothly. I just uploaded the files, recreated the database, and changed some permissions, the site was up and running. Every time I move an ASP.NET application from one server to another, I lose a bit of sanity. Missing files, missing libraries, missing classes, different registry configurations. To get things working again takes hours, if not days.</p>
<p><strong>Reason #4: ASP is light; ASP.NET is heavy.</strong></p>
<p>Because ASP.NET loads a bunch of libraries and adds a plethora of random code, the result is that your pages are unusually heavy. That means pages load much slower &#8211; I&#8217;ve often seen simple pages take 8-10 seconds to load, whereas the same page coded in ASP would load in less than a second! A Microsoft MVP attempts to <a href="http://forums.asp.net/t/937100.aspx" target="_blank">explain</a> why:</p>
<blockquote><p>&#8220;There is a great deal of work that has to happen for the application to start up &#8211; a worker process spins up, database connections get pooled, the cache is empty and has to warm up, ASPX pages get compiled, assemblies get JIT compiled. This can make the first couple hits a bit slower. Once the app is warmed up you should see performance increase.&#8221;</p></blockquote>
<p>I say, why bother? ASP is light and quick.  For small to medium sized websites, classic ASP will usually out-perform ASP.NET. Yes, seriously.</p>
<p>ASP.NET is supposed to be more scalable than ASP &#8211; I guess I&#8217;ll take their word for it, since I&#8217;ve never developed a site that gets 1 million hits per day. But for small to medium sized sites, ASP is a completely viable solution. In fact, I developed Qiran.com &#8211; which gets about 40,000 hits per day &#8211; in ASP, and have had no major problems with it.</p>
<p>So why do people balk at ASP?</p>
<p>The main objection against ASP is that it creates messy, spaghetti-like code &#8211; but that should be blamed on the programmer, not the language. I&#8217;ve seen some pretty bad spaghetti code in PHP applications also, does that mean PHP sucks? Not at all. Good coding practice is universal to all languages. You can have good code in ASP, just like you can have bad code in ASP.NET or PHP.</p>
<p>With important advancements in design philosophy, JavaScript and CSS, I believe the choice of server-side language is less of an issue. The real issues are learning and implementing these modern practices in order to maximize performance and usability of your website.</p>
<p>For example, Ajax works just as well on an ASP site as it does on a PHP site &#8211; it provides the same benefits.  Caching increases the performance of your website, whether you do it in ASP or PHP. A PHP site won&#8217;t cache data any better than an ASP site &#8211; it&#8217;s the philosophy that matters.</p>
<p>I&#8217;ve gotten awkward stares from web designers when I tell them that I still use ASP. They don&#8217;t like ASP, but they have no idea why. &#8220;It&#8217;s old&#8221; is the only argument they can come up with.</p>
<p>But like the saying goes: old is gold.</p>
<p><div class="diggbutton"><a href="http://digg.com/submit?phase=2&amp;url=http://asrar.ca/2009/08/asp-doesnt-suck-heres-why/"><img src="http://asrar.ca/wp-content/plugins/diggbutton/diggsubmit.gif"></a></div></p>
]]></content:encoded>
			<wfw:commentRss>http://asrar.ca/2009/08/asp-doesnt-suck-heres-why/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
