<?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>Oliver Nassar &#187; onassar</title>
	<atom:link href="http://www.olivernassar.com/author/admin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.olivernassar.com</link>
	<description>Making the interwebs.</description>
	<lastBuildDate>Thu, 12 Nov 2009 22:17:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>jquery vs mootools: my initial thoughts</title>
		<link>http://www.olivernassar.com/2009/11/12/jquery-vs-mootools-my-initial-thoughts/</link>
		<comments>http://www.olivernassar.com/2009/11/12/jquery-vs-mootools-my-initial-thoughts/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 21:32:40 +0000</pubDate>
		<dc:creator>onassar</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Mootools]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[View]]></category>
		<category><![CDATA[frameworks]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[libraries]]></category>

		<guid isPermaLink="false">http://www.olivernassar.com/?p=282</guid>
		<description><![CDATA[<a href="http://www.olivernassar.com/2009/11/12/jquery-vs-mootools-my-initial-thoughts/" rel="attachment wp-att-121"><img src="http://www.olivernassar.com/wp-content/uploads/2009/08/mootools_logo1-150x150.jpg" alt="mootools_logo" title="mootools_logo" width="150" height="150" class="alignleft size-thumbnail wp-image-121" /></a>I've been using jQuery regularly for my new job now for about 3 weeks or so. I've used the selectors, event handling, short cuts/handlers, animations, plugins etc. Nothing too fancy, but in general, a descent exposure. I'd like to compare it with Mootools. And while I do rock a Mootools skin on my phone, I'm going to try and remain as objective as subjectively possible. I'm going to try and stay positive about the differences and give use-cases for using either.]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-thumbnail wp-image-121" title="mootools_logo" src="http://www.olivernassar.com/wp-content/uploads/2009/08/mootools_logo1-150x150.jpg" alt="mootools_logo" width="150" height="150" /><strong>Introduction</strong><br />
I&#8217;ve been using jQuery regularly for my new job now for about 3 weeks or so. I&#8217;ve used the selectors, event handling, short cuts/handlers, animations, plugins etc. Nothing too fancy, but in general, a descent exposure. I&#8217;d like to compare it with Mootools. And while I do rock a Mootools skin on my phone, I&#8217;m going to try and remain as objective as subjectively possible. I&#8217;m going to try and stay positive about the differences and give use-cases for using either.</p>
<p><strong>Gut Reaction</strong><br />
jQuery is fast to learn, easy to use, and passes the &#8216;thinking&#8217; to the framework. It allows you to do incredibly powerful client side stuff without knowing too much of the inner workings, worrying about being specific and explicit about your syntax or organization, and most importantly lets you get this stuff done quickly.</p>
<p>Mootools on the other hand requires you to be explicit. You want to create a node with 4 children and easy of them have a bunch of inline attributes? Cool, do it manually, instead of specifying a string of html which the engine will parse and DOM-inize for you (jQuery can do this). Most prominent for me: jQuery is very smart and very easy to use, but lacks a certain elegance due it&#8217;s lack of explicit control; Mootools requires more work and overhead to get something done, but is very organized and beyond the learning curve, more meaningful.</p>
<p><strong>Example</strong><br />
To create a series of nodes in jQuery, it&#8217;s as easy as this:</p>
<p>var html = &#8216;&lt;div id=&#8221;div-one&#8221;&gt;&lt;span id=&#8221;span-one&#8221;&gt;yo yo&lt;/span&gt;&lt;/div&gt;&#8217;;<br />
$(html).prependTo($(&#8217;#random-node&#8217;));</p>
<p>In Moo, it&#8217;d be something like this:</p>
<p>var first = new Element(&#8217;div&#8217;,{&#8217;id&#8217;:'div-one&#8217;});<br />
var two = new Element(&#8217;span&#8217;,{&#8217;id&#8217;:&#8217;span-one&#8217;});<br />
first.adopt(two);<br />
$(&#8217;body&#8217;).shift().adopt(first);</p>
<p>One is easier/more implicit than the other. However the other is much more explicit, and easier to follow for a foreigner who isn&#8217;t too familiar with the jQuery syntax, rules and behaviors.</p>
<p><strong>Optimization/Speed</strong><br />
I don&#8217;t know too much about jQuery&#8217;s speed. I believe that at this point we&#8217;ve got to the point where an extra 10 milliseconds isn&#8217;t a do or die or decision maker for what framework/library to use. But with that in mind, one of the great things for Moo is the ability to compartmentalize only what is needed for client side behavior. Everything is kept as a separate stand alone, window based class, where as jQuery seems to throw in a lot of other code into one batch which is mutually dependent.</p>
<p>This goes back to my gut reaction though. For a new comer, I don&#8217;t want to try to determine what classes/objects I&#8217;ll need. I want a script tag that has almost everything that I need. No playing with downloader apps to pick and choose what my project will need. Mootools therefore introduces a higher level of (initial) complexity, but brings with it greater than control, and again, explicitness.</p>
<p><strong>Community</strong><br />
Up until this point, I&#8217;ve more or less tried giving opinions for and against both libraries, but in this category (Community), there is a winner hands down: jQuery. I don&#8217;t really know what the reason for this is. I would say that jQuery has been more organized in their community/developer evangelism, which is completely true, but I don&#8217;t think that&#8217;s the real reason.</p>
<p>While Mootools is still trying to get it&#8217;s community plugin system up and rung (MooForge, I believe), I think a core reason it&#8217;s the direct and simplicity of jQuery. I think it was able to garner such a strong following because the barrier to entry is to incredibly tiny. I don&#8217;t need to understand JavaScript syntax, programming syntax, or the inner workings of client side development. The very syntax that I love about Moo (e.g. new Element(&#8217;div&#8217;).addClass(&#8217;oliver&#8217;).addEvent….) is also probably what turns people off. The fact that I need to be so direct about what I want done is something that many people probably don&#8217;t want to deal with.</p>
<p><strong>Conclusion</strong><br />
But away from my tangent, the jQuery community is amazing. So many plugins, organized horizontally and vertically by jQuery themselves. So many resources to learn the syntax, deconstruct plugins to understand the code, etc. While my obsessive compulsiveness when it comes to coding syntax and practices would never allow me to fully embrace and adopt jQuery personally and independently of where I work full time, I can understand fully it&#8217;s benefits. I&#8217;ll always evangelize Mootools whenever I can, but after this exposure to jQuery, I&#8217;ll understand where it&#8217;s most useful and for whom Mootools would really be welcome to.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.olivernassar.com/2009/11/12/jquery-vs-mootools-my-initial-thoughts/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>grabbing an attribute in mootools: .[name] or .get or .retrieve or .getProperty?</title>
		<link>http://www.olivernassar.com/2009/11/01/grabbing-an-attribute-in-mootools-name-or-get-or-retrieve-or-getproperty/</link>
		<comments>http://www.olivernassar.com/2009/11/01/grabbing-an-attribute-in-mootools-name-or-get-or-retrieve-or-getproperty/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 22:56:06 +0000</pubDate>
		<dc:creator>onassar</dc:creator>
				<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Mootools]]></category>
		<category><![CDATA[User Experience]]></category>
		<category><![CDATA[xhtml]]></category>
		<category><![CDATA[anchor]]></category>
		<category><![CDATA[attribute]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[Browsers]]></category>
		<category><![CDATA[dom node]]></category>
		<category><![CDATA[ff]]></category>
		<category><![CDATA[href]]></category>
		<category><![CDATA[ie6]]></category>
		<category><![CDATA[node]]></category>
		<category><![CDATA[property]]></category>

		<guid isPermaLink="false">http://www.olivernassar.com/?p=278</guid>
		<description><![CDATA[<a href="http://www.olivernassar.com/2009/11/01/grabbing-an-attribute-in-mootools-name-or-get-or-retrieve-or-getproperty/" rel="attachment wp-att-121"><img src="http://www.olivernassar.com/wp-content/uploads/2009/08/mootools_logo1-150x150.jpg" alt="mootools_logo" title="mootools_logo" width="150" height="150" class="alignleft size-thumbnail wp-image-121" /></a>Something I ran into just now was returning an anchor's attribute consistently across browsers. So I have an anchor with an address like '/users/delete/5/' which does what you'd think it does. But I ran into an inconsistent return response in (you guessed it) ie6. In all fairness, it might not be IE6's fault, but it speaks more to a problem with mootools. While it is a nearly perfect library/framework, this does bug me.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.olivernassar.com/wp-content/uploads/2009/08/mootools_logo1-150x150.jpg" alt="mootools_logo" title="mootools_logo" width="150" height="150" class="alignleft size-thumbnail wp-image-121" />Something I ran into just now was returning an anchor&#8217;s attribute consistently across browsers. So I have an anchor with an address like &#8216;/users/delete/5/&#8217; which does what you&#8217;d think it does. But I ran into an inconsistent return response in (you guessed it) ie6. In all fairness, it might not be IE6&#8217;s fault, but it speaks more to a problem with mootools. While it is a nearly perfect library/framework, this does bug me.</p>
<p>Mootools has 3 native methods for accessing an attribute/property for a node (which in the DOM, often overlaps). .get(&#8217;name&#8217;), .retrieve(&#8217;name&#8217;), and getProperty(&#8217;name&#8217;). While they are all meant to do things a little differently (eg. set an attribute for a node, store a data object in an existing object (which could be a DOM node) or store a property in an object (which again, could be a DOM node), they seem to overlap a lot.</p>
<p>So I have this anchor, and when I tried accessing it (grabbing the href) using the accessors I have, here at the results for FF (mac) vs. IE6 (windows):</p>
<p>.[name]<br />
FF: full path including host<br />
IE6: full path including host</p>
<p>.get<br />
FF: request path (excluding host)<br />
IE6: full path including host</p>
<p>.retrieve<br />
FF: null<br />
IE6: null</p>
<p>.getProperty<br />
FF: request path (excluding host)<br />
IE6: full path including host</p>
<p>Now it&#8217;s hard to say what is the correct expectation. I&#8217;m sure I could figure it out in the eyes of the W3C, but rather, here&#8217;s what I&#8217;ve noticed. Both browsers take whatever path is specified and render it internally with the host. I understand this since it&#8217;s what the browser would need to actually make a full request.</p>
<p>The 2nd and 4th accessors, though, are inconsistent and cause problems since their expected results different. IE6 includes the full path &#038; host each time which is most likely an issue with how it accesses it. When the browser defines the href in memory it must overwrite the local pointer which then can&#8217;t be accessed properly.</p>
<p>So what do I do about this? Nothing really. I have this documented now so that if there is a pre-dom-ready source that I need to inspect (for example, href values written but no rendered after the dom has been loaded), I should be using the .[name] accessor, and make adjustments accordingly based on what is being accessed (in this case the href which has the host prepended).</p>
<p>These differences really suck since they introduce inconsistencies in places where you wouldn&#8217;t expect them and thus break applications/scripts (like what drove me to discover this). I would hope a framework/library would help mitigate this kind of thing, but alas, they can&#8217;t do everything, and I&#8217;m just happy for what they do bring to the table.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.olivernassar.com/2009/11/01/grabbing-an-attribute-in-mootools-name-or-get-or-retrieve-or-getproperty/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE6 and input type changes: short answer, ie6 sucks, long answer:</title>
		<link>http://www.olivernassar.com/2009/10/10/ie6-and-input-type-changes-short-answer-ie6-sucks-long-answer/</link>
		<comments>http://www.olivernassar.com/2009/10/10/ie6-and-input-type-changes-short-answer-ie6-sucks-long-answer/#comments</comments>
		<pubDate>Sun, 11 Oct 2009 02:15:57 +0000</pubDate>
		<dc:creator>onassar</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Mootools]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[User Experience]]></category>
		<category><![CDATA[xhtml]]></category>
		<category><![CDATA[ie6]]></category>
		<category><![CDATA[input]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[type]]></category>
		<category><![CDATA[value]]></category>

		<guid isPermaLink="false">http://www.olivernassar.com/?p=260</guid>
		<description><![CDATA[<a href="http://www.olivernassar.com/2009/10/10/ie6-and-input-type-changes-short-answer-ie6-sucks-long-answer/" rel="attachment wp-att-261"><img src="http://www.olivernassar.com/wp-content/uploads/2009/10/Family_Guy_Stewie_You_Suck_Black_Shirt-150x150.jpg" alt="Family_Guy_Stewie_You_Suck_Black_Shirt" title="Family_Guy_Stewie_You_Suck_Black_Shirt" width="150" height="150" class="alignleft size-thumbnail wp-image-261" /></a><strong>The Problem</strong>
I ran into another problem the other day native to ie6 (well ie7 and ie8 too, to be fair) where by I was trying to dynamically change a text input field from type="text" to type="password". Safari, chrome and firefox had no issues. It was a simple as node.type = 'password', or since I was using mootools, node.set('type','password'). Resolved. But wait...]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.olivernassar.com/wp-content/uploads/2009/10/Family_Guy_Stewie_You_Suck_Black_Shirt-150x150.jpg" alt="Family_Guy_Stewie_You_Suck_Black_Shirt" title="Family_Guy_Stewie_You_Suck_Black_Shirt" width="150" height="150" class="alignleft size-thumbnail wp-image-261" /><strong>The Problem</strong><br />
I ran into another problem the other day native to ie6 (well ie7 and ie8 too, to be fair) where by I was trying to dynamically change a text input field from type=&#8221;text&#8221; to type=&#8221;password&#8221;. Safari, chrome and firefox had no issues. It was a simple as node.type = &#8216;password&#8217;, or since I was using mootools, node.set(&#8217;type&#8217;,'password&#8217;). Resolved. But wait&#8230;</p>
<p>Then I ran into IE6, whereby I got a nice &#8220;This command is not supported.&#8221;. It took me a while to figure this out. At first I thought the node didn&#8217;t have mootools &#8217;set&#8217; method for some reason (didn&#8217;t access it right?), but once I found out the reason, I looked for workarounds. None really. Other resolutions that attempted completely different code, but no workaround for IE6 specific to change the type. It seemed microsoft had decided that an input field&#8217;s type should not be able to change after it&#8217;d been loaded. I&#8217;ll get to that in a second</p>
<p><strong>My Resolution</strong><br />
Spit out password fields on the page for when it gets sent back to the client. When the DOM has loaded, iterate over the input[type=password] fields (I did this via the mootools selector node.getElements(&#8217;input[type=password&#8217;)), make them hidden (via add a class or adjusting it&#8217;s style property), and make a new node that has an input type with the text value. I added the same classes to it as the password node had. When a user focused on the field (the text one that was originally a password field), I destroyed it, and removed the hidden class.</p>
<p><strong>What really bothered me</strong><br />
&#8220;This is an expected behavior. One can&#8217;t change the type of an INPUT element once it is already created and became part of the DOM. The behavior is documented below in the Remarsk Section:&#8221;<br />
That was microsoft&#8217;s response in their developer forums. That was last year, and instead of addressing it as an issue and complying with a standard, they were stubborn and basically refuted the claim as a bug. I&#8217;m not sure how I feel about the standard. I understand why an input type is set after the DOM has been loaded. I can&#8217;t change a tag type from div to span after the fact (or at least I shouldn&#8217;t be able to). Ideally, in my own head that is, every input type should have a separate tag value. &lt;button /&gt;, &lt;select /&gt;, &lt;file /&gt;, &lt;text /&gt;, &lt;textarea /&gt; and &lt;password /&gt;. I think that&#8217;d be ideal, and save a lot of confusion.</p>
<p>Either way, that&#8217;s my resolution. M$ response is kind of sucky, but what can ya do.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.olivernassar.com/2009/10/10/ie6-and-input-type-changes-short-answer-ie6-sucks-long-answer/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PHP: Abstract classes vs static classes; whats what?</title>
		<link>http://www.olivernassar.com/2009/10/07/php-abstract-classes-vs-static-classes-whats-what/</link>
		<comments>http://www.olivernassar.com/2009/10/07/php-abstract-classes-vs-static-classes-whats-what/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 20:48:48 +0000</pubDate>
		<dc:creator>onassar</dc:creator>
				<category><![CDATA[PHP5]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[abstract]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[classes]]></category>
		<category><![CDATA[oo]]></category>
		<category><![CDATA[static]]></category>

		<guid isPermaLink="false">http://www.olivernassar.com/?p=253</guid>
		<description><![CDATA[<a href="http://www.olivernassar.com/2009/10/07/php-abstract-classes-vs-static-classes-whats-what/" rel="attachment wp-att-255"><img src="http://www.olivernassar.com/wp-content/uploads/2009/10/tv_static_2-150x150.jpg" alt="tv_static_2" title="tv_static_2" width="150" height="150" class="alignleft size-thumbnail wp-image-255" /></a>In the past I've spent a great deal of time trying to understand the different between PHP5 abstract and static classes/methods. I find out, use the differences on whatever I'm doing, and the forget. No more. I will document my understanding here to help myself, and some day others, out.

Methods (not classes) can be defined as static (eg. not static class Oliver{} but rather static function talk()) in order to call them without going through an instantiated object. From my perspective, it makes code cleaner and less messy by wrapping related functions in a class wrapper instead of defining them globally. It should be noted though, that classes with static methods CAN be instantiated, and those methods can be called either statically (via the :: double colon notation, or via the -> right arrow notation on the instantiated object).]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.olivernassar.com/wp-content/uploads/2009/10/tv_static_2-150x150.jpg" alt="tv_static_2" title="tv_static_2" width="150" height="150" class="alignleft size-thumbnail wp-image-255" />In the past I&#8217;ve spent a great deal of time trying to understand the different between PHP5 abstract and static classes/methods. I find out, use the differences on whatever I&#8217;m doing, and the forget. No more. I will document my understanding here to help myself, and some day others, out.</p>
<p>Methods (not classes) can be defined as static (eg. not static class Oliver{} but rather static function talk()) in order to call them without going through an instantiated object. From my perspective, it makes code cleaner and less messy by wrapping related functions in a class wrapper instead of defining them globally. It should be noted though, that classes with static methods CAN be instantiated, and those methods can be called either statically (via the :: double colon notation, or via the -> right arrow notation on the instantiated object).</p>
<p>That takes us to abstract classes. Abstract classes CANNOT be instantiated. They can be the parent of a class which can be instantiated, but they themselves cannot be. So for example, if I have two types of users, RegularUser and AdminUser, I could create an abstract class User which defines method signatures (via the abstract keyword) like abstract function login($username,$password){} or I can define static functions which can be called (via the same rules as above). A new User object can never be created directly though.</p>
<p>So what does that mean in terms of real-world usage? Personally, if I don&#8217;t want a class every to be instantiated, such as a class that has utility functions or string manipulation functions, I will define it as abstract, and define all it&#8217;s methods to be static. If I have a parent object which should never be instantiated, I&#8217;ll do the same, but leave the method declarations to the child classes for the most part.</p>
<p>So then when do I use a normal class that happens to have static methods? I haven&#8217;t really. I&#8217;m sure there can be uses for it, but I&#8217;ve never found myself in a situation where I need to access an object&#8217;s method without the context of the object&#8217;s instantiation. Maybe it&#8217;ll come up one day, but as I&#8217;m moving closer and closer to a full mvc based coding life style, I have a feeling that I won&#8217;t find myself in that situation anytime soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.olivernassar.com/2009/10/07/php-abstract-classes-vs-static-classes-whats-what/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Weird discovery: firefox converts $_SERVER, SF doesn&#8217;t?</title>
		<link>http://www.olivernassar.com/2009/09/29/weird-discovery-firefox-convert-_server-sf-doesnt/</link>
		<comments>http://www.olivernassar.com/2009/09/29/weird-discovery-firefox-convert-_server-sf-doesnt/#comments</comments>
		<pubDate>Wed, 30 Sep 2009 02:16:38 +0000</pubDate>
		<dc:creator>onassar</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[PHP5]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[converts]]></category>
		<category><![CDATA[encoding]]></category>
		<category><![CDATA[htmlentities]]></category>

		<guid isPermaLink="false">http://www.olivernassar.com/?p=244</guid>
		<description><![CDATA[<a href="http://www.olivernassar.com/2009/09/29/weird-discovery-firefox-convert-_server-sf-doesnt/" rel="attachment wp-att-250"><img src="http://www.olivernassar.com/wp-content/uploads/2009/09/300px-Religious_syms.svg-150x150.png" alt="300px-Religious_syms.svg" title="300px-Religious_syms.svg" width="150" height="150" class="alignleft size-thumbnail wp-image-250" /></a> This is definitely up there for me; a very weird discovery about how firefox and safari differ in the way the _SERVER array is returned.

<code>print_r($_SERVER);
exit();</code>
Run that code in a php script; then check the source in both safari and in firefox. For the path, try something like index.php?name=what'sup]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.olivernassar.com/wp-content/uploads/2009/09/300px-Religious_syms.svg-150x150.png" alt="300px-Religious_syms.svg" title="300px-Religious_syms.svg" width="150" height="150" class="alignleft size-thumbnail wp-image-250" />This is definitely up there for me; a very weird discovery about how firefox and safari differ in the way the _SERVER array is returned.</p>
<p><code>print_r($_SERVER);<br />
exit();</code><br />
Run that code in a php script; then check the source in both safari and in firefox. For the path, try something like index.php?name=what&#8217;sup</p>
<p>The weird thing comes in with the fact that in Safari, the apostrophe isn&#8217;t converted/encoded, where as in Firefox, it is. I&#8217;m not really sure how I can explain this, and if I&#8217;m missing something, but it&#8217;s caused me a great deal of frustration and debugging. The only thing I can think of is that safari sends along different headers in the request than Firefox does, and therefore gets different results. I&#8217;ll look into it and update this post, but thought it was worth mentioning incase anyone else runs into the same type of problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.olivernassar.com/2009/09/29/weird-discovery-firefox-convert-_server-sf-doesnt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flexibility: Server side vs Client side</title>
		<link>http://www.olivernassar.com/2009/09/19/flexibility-server-side-vs-client-side/</link>
		<comments>http://www.olivernassar.com/2009/09/19/flexibility-server-side-vs-client-side/#comments</comments>
		<pubDate>Sun, 20 Sep 2009 00:34:21 +0000</pubDate>
		<dc:creator>onassar</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Browsers]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[User Experience]]></category>
		<category><![CDATA[View]]></category>
		<category><![CDATA[xhtml]]></category>
		<category><![CDATA[client side]]></category>
		<category><![CDATA[flexibility]]></category>
		<category><![CDATA[server side]]></category>

		<guid isPermaLink="false">http://www.olivernassar.com/?p=240</guid>
		<description><![CDATA[<a href="http://www.olivernassar.com/2009/09/19/flexibility-server-side-vs-client-side/" rel="attachment wp-att-241"><img src="http://www.olivernassar.com/wp-content/uploads/2009/09/flexibility-150x150.jpg" alt="flexibility" title="flexibility" width="150" height="150" class="alignleft size-thumbnail wp-image-241" /></a>I've been told by many people, veterans in their respective industries such as family friends, family members, etc., that when you're in a technical field, the best type of job security is to specialize. I imagine this would extend to a lot of different areas (entertainment, finance, management, etc.) but especially in the technical/programming arena, I find it's very true and productive.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.olivernassar.com/wp-content/uploads/2009/09/flexibility-150x150.jpg" alt="flexibility" title="flexibility" width="150" height="150" class="alignleft size-thumbnail wp-image-241" />I&#8217;ve been told by many people, veterans in their respective industries such as family friends, family members, etc., that when you&#8217;re in a technical field, the best type of job security is to specialize. I imagine this would extend to a lot of different areas (entertainment, finance, management, etc.) but especially in the technical/programming arena, I find it&#8217;s very true and productive.</p>
<p>What I mean by this is, be very very very good in a very very very specific field/discipline. Be the best out of all the people you know. If you&#8217;re a server side developer, don&#8217;t try and learn all the server side languages; rather be the best object-oriented php5 developer who knows the ins and outs of PECL and PEAR extensions. Or be the best db admin who can optimize an InnoDB mysql engine better than anyone you&#8217;ve met. That way, when anyone is looking for something specific, you&#8217;ll be the first person to come to mind.</p>
<p>I&#8217;m too obsessive to follow this though. I would hate being really good at one thing, and then just having to depend on someone else to help me out with the other. Because of that, I&#8217;m not very very very good in one area, rather I&#8217;m pretty good in a bunch of them. But this is actually still making me fall into a very specific niche; namely, if someone is looking for one guy who can configure a linux/apache box, set up and admin a db, set up a server side dev env., do designs in photoshop, turn them into html/css/js, and add in ajax/js techniques to make a more interactive application/website, I&#8217;m that guy. If I were to work in a company with other developers, I probably wouldn&#8217;t be better than anyone in any specific area. I wouldn&#8217;t be the best JS guy, or CSS guy, or DB guy, and because of that I&#8217;m probably not suited for a lot of companies, but for my current contract, they needed one guy who can wear 5 or 6 different hats.</p>
<p>So ironically, the fact that I don&#8217;t specialize in one specific area, rather 5 or 6 of them, makes me specialized. It makes me the specific person to go to when you need one person who is pretty good in a bunch of areas.</p>
<p>If you read the title, you might wonder what this has to do with it; it&#8217;s a segway into my point. On my current project, I&#8217;m having to do both client and server side dev., and it&#8217;s making me realize something. The server is way more flexible than the client.</p>
<p>&#8212;<br />
Here&#8217;s why.<br />
&#8212;</p>
<p>The server is usually a linux/unix box. It&#8217;s role in a web application/site is to fulfill client side requests, push out data, yadda yadda. It normally doesn&#8217;t do anything visual. The client, however, is intrinsically visual. It&#8217;s supposed to represent a server architecture in a cohesive, logical way. Now when doing client side dev., you have to normally worry about ie6, ie7, ie8, ff3, sf, opera and chrome (not always this, but thats the goal). At times you&#8217;ll run into things you can&#8217;t do in the others (CSS3, certain types of ajax callbacks, etc.); sometimes they&#8217;ll be things that aren&#8217;t worth the time, but other times, it just can&#8217;t be done. There is no hack or way around it, it just can&#8217;t be done. It&#8217;s frustrating to say the least, but it&#8217;s making me really value and respect the entire web paradigm and the server&#8217;s role in it all.</p>
<p>&#8212;<br />
How does this relate to my introduction?<br />
&#8212;</p>
<p>I find that there is a lot of ego involved in the web industry. A lot of butting heads in terms of how important people/disciplines are in the grand schemes of things. There are the executives/bus.dev. guys, marketing dudes/gals, client side developers, server side developers, operations/db dudes, and creative/design people. That&#8217;s generally how I break it down, and with some exceptions, everyone thinks their role is one of the most important ones. They&#8217;ll pretend and put on a face that they don&#8217;t believe it, but at their core, there is a lot of pretense about their own positions. I suppose that&#8217;s normal considering that&#8217;s their professional role.</p>
<p>I&#8217;ve always maintained (and have a post that should be coming soon) that one of the most important roles, which I&#8217;m terrible at and in no way consider myself part of, is in fact the creative/design ones. I&#8217;ll leave my reasoning here for another post. My understanding of the flexibility of client vs server side therefore comes from the fact that I don&#8217;t specialize in any one area. If I were a operations/db guy, I&#8217;d think the db was the most flexible. If I was a pure server side guy, I&#8217;d think it was the most flexible, and the same for the client side.</p>
<p>The point I tried to make with my introduction and the conclusion of the server side being the most flexible is that because of my lack of specialization (and therefore abstract specialization) in the full life cycle of a web application, I think I&#8217;m in a unique situation to make that judgment. It&#8217;s not right or infallible or anything, but I come at it from a unique perspective. My career/financial stability doesn&#8217;t hinge on any one area of the cycle. I could find a job doing client side, or server side, or db/operations, maybe even some mild graphic/creative design stuff. Even as far as more on the management and marketing stance, I think I&#8217;d be alright. And because of this, I think I&#8217;m in a convenient location to sit back, analyze where any bottle necks are in flexibility, and make a call on what makes the most sense and is most accommodating.</p>
<p>And my conclusion? The server side is way more flexible. There is never a point/time when I can&#8217;t do something. It might take more time than I&#8217;d hope, require more resources (memory, developers, etc.), but at no point do I have to create &#8216;hacks&#8217;. It&#8217;s logical and follows procedures and standards. I think this is mainly because it&#8217;s been around longer. The server side env. is really just a programming environment. It&#8217;s been around, and perfected, since the 50&#8217;s. The web client-side has been around, for the most part, for less than 15 years.</p>
<p>That being said, the client side is getting better. With Flash, Adobe Air, Google Gears, and some really cool plugins (Rhino, for one) the client side is trying real hard, and milding succeeding, in become less of a bottle neck for an application. I think with time it will succeed, but as it stands right now, the server side is where it&#8217;s at. Fewer headaches, and more logic, make it one of the most time-satisfying parts of the projects I&#8217;m doing lately.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.olivernassar.com/2009/09/19/flexibility-server-side-vs-client-side/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jumping the gun: html5/css3 is not here yet!</title>
		<link>http://www.olivernassar.com/2009/09/08/jumping-the-gun-html5-css3-is-not-here-yet/</link>
		<comments>http://www.olivernassar.com/2009/09/08/jumping-the-gun-html5-css3-is-not-here-yet/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 07:28:07 +0000</pubDate>
		<dc:creator>onassar</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[User Experience]]></category>
		<category><![CDATA[xhtml]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[web experience]]></category>

		<guid isPermaLink="false">http://www.olivernassar.com/?p=179</guid>
		<description><![CDATA[<a href="http://www.olivernassar.com/2009/09/08/jumping-the-gun-html5-css3-is-not-here-yet/" rel="attachment wp-att-232"><img src="http://www.olivernassar.com/wp-content/uploads/2009/09/Picture-1-150x150.png" alt="Picture 1" title="Picture 1" width="150" height="150" class="alignleft size-thumbnail wp-image-232" /></a>On Twitter, I follow a bunch of people in the development arena. JavaScript framework core developers, designers, mysql/php architects, etc. etc. I'd say about 50% of the people I follow are in that arena (the other 50% probably being aggregators or tech news sites/blogs).

A consistent theme I'm finding in the past few months has been css3/html5 posts. They talk about new effects, rules, possibilities, etc. etc. Now I try to be optimistic about web development; I try to practice valid w3c content, semantic markup, everywhere I can. But the age of css3/html5, at least for me, is still so far off. 25% (at the least) of internet users are still using ie6, another 40% are using ie7; that takes us to about 65% of internet users using subpar browsers (ie7 is a step up, but still very much sub-par) that don't support anything close to css3 and html5.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.olivernassar.com/wp-content/uploads/2009/09/Picture-1-150x150.png" alt="Picture 1" title="Picture 1" width="150" height="150" class="alignleft size-thumbnail wp-image-232" />On Twitter, I follow a bunch of people in the development arena. JavaScript framework core developers, designers, mysql/php architects, etc. etc. I&#8217;d say about 50% of the people I follow are in that arena (the other 50% probably being aggregators or tech news sites/blogs).</p>
<p>A consistent theme I&#8217;m finding in the past few months has been css3/html5 posts. They talk about new effects, rules, possibilities, etc. etc. Now I try to be optimistic about web development; I try to practice valid w3c content, semantic markup, everywhere I can. But the age of css3/html5, at least for me, is still so far off. 25% (at the least) of internet users are still using ie6, another 40% are using ie7; that takes us to about 65% of internet users using subpar browsers (ie7 is a step up, but still very much sub-par) that don&#8217;t support anything close to css3 and html5.</p>
<p>These browsers are so terrible that I spend about 80% of my client side development time focused on fixing issues I run into there. I write code that is semantic, valid, and based on standards, and then debug it and add in browser-specific fixes for them. Now the reason for bringing up my (and obviously most client side developer&#8217;s) hatred for it is because of this sudden (last 4-6 months) pushed towards css3, but even more, html5. Put simply, we&#8217;re jumping the gun.</p>
<p>We&#8217;re not anywhere near the period of time whereby these standards can be used properly for the vast majority of users. Yes, graceful degradation and progressive enhancement do allow us to make use of them for those vendors that have supplied standards-based browsers, but the time being, maybe only 25-35% of users will get to experience these enhancements. So why put so much effort into transforming your sites and communities to use these standards? Is it worth it?</p>
<p>HTML5 is, believe-it-or-not, a pretty large step forward. While it&#8217;s simply an extension of html 4 and more than anything, introduces some different namespaces and tags, I keep coming back to thinking whether we should bother with it right now. It won&#8217;t be until IE9 or an IE8 service pack/update that the majority of users will get any use out of it, and for large companies and communities, it represents hundreds/thousands of hours of work, changing your design/style guides, and means often times having multiple code/script bases for different browsers that represent which support html5, and which don&#8217;t.</p>
<p>Now I&#8217;m coming at this from a freelance/contract developer. I have a task, and it&#8217;s in my best interest to make it work in the top 3 browsers (ie6, ie7, ff3) as fast as possible, and as cleanly (the fewer moving parts, the better). I might use some css3, I might use some transparent png&#8217;s, but that&#8217;s my limit. Going over board with css3 and integrating html5 is not a priority of mine, and would represent extra hours which I couldn&#8217;t work into my pricing/rates. I would rather spend my time writing semantic, standards based code, and open sourcing anything and everything I could to help out others; at least until one of the top two browsers supports html5 (ff isn&#8217;t there yet, despite many claims that it&#8217;s the number 2 browser next to ie7).</p>
<p>This approach by me has it&#8217;s problems. Namely, if people don&#8217;t push technologies that aren&#8217;t yet wide spread, than the major vendors won&#8217;t feel as pressured to support them. I understand this, and in many ways, it&#8217;s up to the big guys to help push new technologies. But this brings me back to the post&#8217;s title. Are we jumping the gun? We&#8217;re years away from a top two browser from supporting either css3/html5. So should we spend all this effort, time and money developing for something that most user&#8217;s won&#8217;t even experience?</p>
<p>There are exceptions to this; if I&#8217;m designing an app/site for an intranet where I can control the browser type. Or if it&#8217;s for a specific niche (eg. graphic designers, web developers) where I can safely assume or pressure the visitor to use a new-age browser (safari, chrome, ff3). Then maybe I&#8217;ll take the time to learn the new semantics, make the site pop like it never could. I&#8217;ll spend the extra time, effort and money to create a richer experience. But these are exceptions, not the rules.</p>
<p>These are thoughts/ramblings that have been going through my head for quite some time now. They aren&#8217;t polished, they aren&#8217;t definite, but they are something that I&#8217;ve thought of, and I assume other&#8217;s in the community have as well.</p>
<p>While these are my thoughts, and I&#8217;ll stick by them for a while, I won&#8217;t stop trying to learn about the new technologies. Progressive enhancement, ajax, json, jsonp, and whatever else comes along, I&#8217;ll jump into, just like css3/html5, but just like ajax didn&#8217;t become popular until XHR became widespread in most browsers, I won&#8217;t make use of it (with certain exceptions) until major vendors (m$) decide to give me the tools to do so.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.olivernassar.com/2009/09/08/jumping-the-gun-html5-css3-is-not-here-yet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web/application development is like a restaurant; especially the paying part</title>
		<link>http://www.olivernassar.com/2009/09/06/web-application-development-is-like-a-restaurant-especially-the-payingpart/</link>
		<comments>http://www.olivernassar.com/2009/09/06/web-application-development-is-like-a-restaurant-especially-the-payingpart/#comments</comments>
		<pubDate>Sun, 06 Sep 2009 22:30:35 +0000</pubDate>
		<dc:creator>onassar</dc:creator>
				<category><![CDATA[Clients]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Freelance]]></category>
		<category><![CDATA[contracts]]></category>
		<category><![CDATA[payment]]></category>

		<guid isPermaLink="false">http://www.olivernassar.com/?p=213</guid>
		<description><![CDATA[<a href="http://www.olivernassar.com/2009/09/06/web-application-development-is-like-a-restaurant-especially-the-payingpart/" rel="attachment wp-att-223"><img src="http://www.olivernassar.com/wp-content/uploads/2009/09/54-150x150.jpg" alt="200133347-001" title="200133347-001" width="150" height="150" class="alignleft size-thumbnail wp-image-223" /></a>Web design/development has always been seen as a service, obviously due to the way it's delivered. It takes units of time to deliver a set of qualifications that should be met, rather than producing a physical product that is then delivered. The way it normally works is you talk with a client, they have a set of goals/requirements they need met (whether it's a database being built, a design, or a widget), and you try to deliver them.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.olivernassar.com/wp-content/uploads/2009/09/54-150x150.jpg" alt="200133347-001" title="200133347-001" width="150" height="150" class="alignleft size-thumbnail wp-image-223" />Web design/development has always been seen as a service, obviously due to the way it&#8217;s delivered. It takes units of time to deliver a set of qualifications that should be met, rather than producing a physical product that is then delivered. The way it normally works is you talk with a client, they have a set of goals/requirements they need met (whether it&#8217;s a database being built, a design, or a widget), and you try to deliver them.</p>
<p>This is no different than when you go to a restaurant. You go in, look at the menu (~development services), check out the prices (~rates). You normally learn about the restaurant from a friend (~contact/colleague), and decide ahead of time whether or not you want to eat (~work with) at the restaurant.</p>
<p>So you go in, look over the menu, order your food, wait for it to arrive, and then eat it. Straight forward enough. The difference comes in with the reception of the food (~service/work). If you&#8217;re in a restaurant, you&#8217;re paying for the service of them preparing the food, not for the actual cost. You don&#8217;t go in, order a salad, and they charge you how much the food costs; they charge you for the preparation of the food, and the delivery of it.</p>
<p>So if you go in, eat up your meal, but don&#8217;t enjoy the taste or experience, what do you do? Do you walk out without paying the bill? No, you don&#8217;t. The reason you don&#8217;t is because there is an established trust and relationship between a restaurant patron and the restaurant. When you enter the establishment, and order something from the menu, you are now contracted to pay for the food, regardless of whether or not you enjoyed it.</p>
<p>The reason for this post and analogy is because of how web development services are received. When I develop a design, widget, database schema, PRD, or whatever, I have now started work. We have a contract in place (whether formal or informal) that states/infers that my work warrants monies. I deliver my work to you, and whether or not you are satisfied, you pay me for my time. If you aren&#8217;t satisfied, you don&#8217;t return, but you pay promptly without complaint about the services. You don&#8217;t negotiate, you don&#8217;t haggle, you pay.</p>
<p>It&#8217;s in my best interest to perform the best way possible; I don&#8217;t want you leaving the restaurant (mixing analogy terms now&#8230;) thinking the food was terrible, and the service was awful. I want you leaving happy and I want you telling everyone how great your experience was. But if it wasn&#8217;t; if you weren&#8217;t happy with the food or the service, you don&#8217;t just leave or try and argue with the restaurant owner/chef. You can choose not to leave a tip, and choose to go and tell anyone who will listen how terrible the experience was, but you do not leave without paying, and you do not delay your payment.</p>
<p>&#8212;</p>
<p>Web development is based on trust, just like a restaurant business. Your patrons approach you to enjoy your services, you perform those services, and they pay you. It&#8217;s as simple as that. Clients need to understand that they do not have the luxury of debating and argueing with the services after the fact.</p>
<p>If you go into a restaurant, before you order your food, you can do the following:</p>
<ul>
<li>Ask the waiter how good the food is (subjective, obviously)</li>
<li>Check what the specials are</li>
<li>Read the menu, see if there is anything you like</li>
<li>Talk to friends and ask how good the food was, the service was, and how expensive it was</li>
</ul>
<p>All this being done, you now have a clear idea whether you want to exchange their services/food for your money. Web development should be the same.</p>
<p>The reason&#8217;s why it&#8217;s not received with the same level of trust as a restaurant is beyond me, and perhaps due for another post, but for now, I think I&#8217;ve made a descent enough case towards the problems with clients and their perceptions of web development services (especially the paying part).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.olivernassar.com/2009/09/06/web-application-development-is-like-a-restaurant-especially-the-payingpart/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php.ini error_log directive: finally fixed my code to make it work</title>
		<link>http://www.olivernassar.com/2009/09/04/php-ini-error_log-directive-finally-fixed-my-code-to-make-it-work/</link>
		<comments>http://www.olivernassar.com/2009/09/04/php-ini-error_log-directive-finally-fixed-my-code-to-make-it-work/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 17:31:14 +0000</pubDate>
		<dc:creator>onassar</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP5]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[error log]]></category>
		<category><![CDATA[ini_get]]></category>
		<category><![CDATA[ini_set]]></category>
		<category><![CDATA[php.ini]]></category>
		<category><![CDATA[settings]]></category>

		<guid isPermaLink="false">http://www.olivernassar.com/?p=215</guid>
		<description><![CDATA[<a href="http://www.olivernassar.com/2009/09/04/php-ini-error_log-directive-finally-fixed-my-code-to-make-it-work/" rel="attachment wp-att-217"><img src="http://www.olivernassar.com/wp-content/uploads/2009/09/php-150x150.png" alt="php" title="php" width="150" height="150" class="alignleft size-thumbnail wp-image-217" /></a>I always ran into an issue whereby if i set the error_log location for an application/server using ini_set('error_log','PATH') it wouldn't log it there. It would log it to whatever path was set in my httpd.conf file, whether it was the global error_log path, or one for a specific virtual host.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.olivernassar.com/wp-content/uploads/2009/09/php-150x150.png" alt="php" title="php" width="150" height="150" class="alignleft size-thumbnail wp-image-217" />I always ran into an issue whereby if i set the error_log location for an application/server using ini_set(&#8217;error_log&#8217;,'PATH&#8217;) it wouldn&#8217;t log it there. It would log it to whatever path was set in my httpd.conf file, whether it was the global error_log path, or one for a specific virtual host.</p>
<p>I searched high and low on the goog&#8217;s, but to no avail, I kept running into php.net bug reports about the behaviour not working. Then, I just tried something I should&#8217;ve tried a long time ago, set the write permissions properly (for testing, 777) and gave access to every user on my local machine (eg. on a mac, getinfo on the error log, and make it readable and writable by everyone), and success.</p>
<p>I&#8217;ve had a lot of headaches around this that usually ended up with me giving up, but I finally found a fix for my case of it <img src='http://www.olivernassar.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.olivernassar.com/2009/09/04/php-ini-error_log-directive-finally-fixed-my-code-to-make-it-work/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Client side framework&#8217;s should be called client side libraries; here&#8217;s why:</title>
		<link>http://www.olivernassar.com/2009/08/18/client-side-frameworks-should-be-called-client-side-libraries-heres-why/</link>
		<comments>http://www.olivernassar.com/2009/08/18/client-side-frameworks-should-be-called-client-side-libraries-heres-why/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 17:09:33 +0000</pubDate>
		<dc:creator>onassar</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[Mootools]]></category>
		<category><![CDATA[User Experience]]></category>
		<category><![CDATA[View]]></category>
		<category><![CDATA[frameworks]]></category>
		<category><![CDATA[libraries]]></category>
		<category><![CDATA[semantics]]></category>

		<guid isPermaLink="false">http://www.olivernassar.com/?p=198</guid>
		<description><![CDATA[<a href="http://www.olivernassar.com/2009/08/18/client-side-frameworks-should-be-called-client-side-libraries-heres-why/" rel="attachment wp-att-202"><img src="http://www.olivernassar.com/wp-content/uploads/2009/08/library-books-150x150.jpg" alt="library-books" title="library-books" width="150" height="150" class="alignleft size-thumbnail wp-image-202" /></a>This isn't a really important post, it's just something I think need's to be expressed and accepted; it must be accepted. Mootools, YUI, jQuery, Dojo etc. are great. They help a person with very tedious javascript techniques, speed up your applications, and make the UX much richer.

But they are not frameworks. I know this probably just seems like a semantics issue, but I want to make it clear that they are not frameworks, they are libraries. From http://dictionary.reference.com/browse/framework]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.olivernassar.com/wp-content/uploads/2009/08/library-books-150x150.jpg" alt="library-books" title="library-books" width="150" height="150" class="alignleft size-thumbnail wp-image-202" />This isn&#8217;t a really important post, it&#8217;s just something I think need&#8217;s to be expressed and accepted; it must be accepted. Mootools, YUI, jQuery, Dojo etc. are great. They help a person with very tedious javascript techniques, speed up your applications, and make the UX much richer.</p>
<p>But they are not frameworks. I know this probably just seems like a semantics issue, but I want to make it clear that they are not frameworks, they are libraries. From http://dictionary.reference.com/browse/framework</p>
<p>frame⋅work  [freym-wurk]  Show IPA<br />
–noun<br />
1.	a skeletal structure designed to support or enclose something.<br />
2.	a frame or structure composed of parts fitted and joined together.<br />
3.	the construction or sale of frames.<br />
4.	work done in, on, or with a frame.</p>
<p>A framework should be referenced only when your development is surrounded or incased by some structure. On the php side of things, this makes sense; an MVC based framework since every piece of code you write it part of the execution of the framework. On the client side though, it&#8217;s not so clear cut.</p>
<p>While you can work inside of a client side library as if you were in a framework (eg. creating new, framework-specific, classes), most of the code you write is simply using the library to help it out. As an example, you attach event handlers, create and manage JSON, make ajax calls, etc. All of this you can do natively, or you can have the library help you out. But when you use one of the library&#8217;s helpers, you&#8217;re not tied to it. You&#8217;re still writing native javascript, just short-cutting through the library&#8217;s helper methods and naming conventions.</p>
<p>I&#8217;m not sure why this deserved a post, such a long post at that. I suppose as I learn more about true frameworks, I&#8217;m realizing that semantics like this really do matter. When I write in CI or Cake, I have to fall in line with their file, naming and folder conventions. I need to work inside of a controller, which is triggered by the framework. I need to define the interface in view/template/layout files, which are loaded and compiled by the framework. And I need to access the data set through their ORM, which is managed by the framework.</p>
<p>JavaScript isn&#8217;t like that.<br />
Now while the specific cases I&#8217;m talking about (YUI,dojo,jQuery,Moo) are in my eyes libraries, that&#8217;s not to say that there couldn&#8217;t be/aren&#8217;t client side frameworks. I imagine javascript/ajax driven applications (large ones like gmail or a few Ycombinator/startup&#8217;s) have client side frameworks.</p>
<p>They have these systems in place where you have to work inside of them; the work is delineated among an MVC pattern, or some sort of separation of logic. I think that&#8217;d be really cool to check out, but because of the nature of javascript, I don&#8217;t think it&#8217;s as necessary as it is on the server side. Maybe I&#8217;m just saying that because I haven&#8217;t really been exposed to one, but client side JS is more modular and sparse than server side development, and for that reason having a library to help you tap into short cuts makes tons of sense.</p>
<p>My last point though, is that while I&#8217;ll always consider these javascript extensions libraries, I can definitely understand how some people would call them frameworks due to the way they use them. If you constantly are creating new framework-specific classes that follow standard programming practices (eg. hierarchy, casting, separation of logic), I think it&#8217;d be fair to see you&#8217;re using the library AS a framework. I&#8217;m cool with that. Lets just be clear about how the extension is used by the general public.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.olivernassar.com/2009/08/18/client-side-frameworks-should-be-called-client-side-libraries-heres-why/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
