<?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>BorkWeb &#187; oop</title>
	<atom:link href="http://borkweb.com/story/tag/oop/feed" rel="self" type="application/rss+xml" />
	<link>http://borkweb.com</link>
	<description>Some People Are Squirrel Handed.</description>
	<lastBuildDate>Tue, 17 Jan 2012 22:00:21 +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>Learning What I Know</title>
		<link>http://borkweb.com/story/learning-what-i-know</link>
		<comments>http://borkweb.com/story/learning-what-i-know#comments</comments>
		<pubDate>Tue, 15 Aug 2006 23:42:27 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[help]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[learn]]></category>
		<category><![CDATA[learning]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[oo]]></category>
		<category><![CDATA[oop]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[suggestions]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://borkweb.com/story/learning-what-i-know</guid>
		<description><![CDATA[I recently received an e-mail from one of my subscribers that asked a question. The answer may be useful to some so I&#8217;m placing it here. The original question It seems so interesting developing websites application these days, thanks to the web 2.0 phenomena. I can&#8217;t call myself a web developer or anything near that, [...]]]></description>
			<content:encoded><![CDATA[<p>I recently received an e-mail from one of my subscribers that asked a question.  The answer may be useful to some so I&#8217;m placing it here.</p>
<h3 id="_the-original-questio_1" >The original question</h3>
<blockquote><p>
It seems so interesting developing websites application these days, thanks to the web 2.0 phenomena. I can&#8217;t call myself a web developer or anything near that, but I&#8217;m interested to learn these kind of [things].</p>
<p>[...]</p>
<p>Since you seem to be real world developer to me, I have a couple of questions to ask you. I&#8217;ve been messing around with XHTML, CSS, Javascript, PHP and MySQL [for] a couple of months now, and it frustrates me sometimes when I sort of forget things and [can]&#8216;t understand the flow of the design of what I&#8217;m trying to achieve. [..]</p>
<p>Based on your experience, do you do everything by your own, i mean there are the front end and the back end [things], do you do both?</p>
<p>Talking of object oriented programming (i guess that&#8217;s what prototype, script.aculo.us and ajax are really about), which OOP did u learn first? I [learned] simple Java before but does that come into play for web development as well? I mean, does it help if i go into detail learning Java?</p>
<p>Any other useful advice? I would appreciate your comments. Thank you.
</p></blockquote>
<h3 id="_my-reply_1" >My Reply</h3>
<p>Web 2.0 phenomenon&#8230;Yeah, its good to stay on top of things like that :)</p>
<p>Development.  <a href="http://www.w3schools.com/xhtml/default.asp">XHTML</a>, <a href="http://w3schools.com/css/">CSS</a>, <a href="http://en.wikipedia.org/wiki/Javascript">Javascript</a>, <a href="http://php.net">PHP</a> and <a href="http://mysql.org">MySQL</a>&#8230;I do it all, however, I did not learn them all at once&#8230;but over a series of years.  I think the key concept is to really try and keep your logic from your design &#8211; keep the MySQL/PHP side of things separate from the XHTML/CSS side of things ( e.g. <a href="http://borkweb.com/story/ajax-templating-and-the-separation-of-layout-and-logic">Ajax, Templating, and the Separation of Layout and Logic</a>).  Javascript is a bit of a wildcard and bridges between both the presentation and logic. </p>
<p>You can do the above with and without <a href="http://en.wikipedia.org/wiki/Object-oriented_programming">Object Oriented Programming</a>&#8230;although OOP is the preferred method.  My first OOP language was <a href="http://java.sun.com">Java</a>. Next I branched out to Object Oriented PHP, and finally (last year) I learned Object Oriented Javascript. </p>
<p>All you really need is the OO concept in your head before you branch out and if you&#8217;ve used Java, you should be good to go.  So to answer your question: &#8220;Does it help if you go into detail learning Java.&#8221; is this:  It won&#8217;t hurt, but isn&#8217;t necessary to succeed in learning the above languages/tools.  When using Object Orientation and switching languages, its all about learning the syntax and the gotchas associated with your chosen language.</p>
<p>The biggest chunks of advice I can give regarding your tools of choice are as follows:</p>
<h3 id="_xhtmlcss_1" >XHTML/CSS</h3>
<ul>
<li>keep it simple</li>
<li>use ids/classes rather than inline styles</li>
</ul>
<h3 id="_php_1" >PHP</h3>
<ul>
<li>live on php.net</li>
<li>learn through irritation with your own code&#8230;mine goes through constant revisions and optimizations<br />
- pick up a templating engine to help keep your layout and logic separate.  I use <a href="http://xtpl.sf.net">XTemplates</a>.  I&#8217;m thinking about looking into <a href="http://smarty.php.net/">SmartyTemplates</a>&#8230;.use whatever you wish&#8230;but templates save TONS of time.</li>
</ul>
<h3 id="_mysql_1" >MySQL</h3>
<ul>
<li>know your data</li>
<li>know how to normalize your data</li>
<li>download open source applications and look at their database structure for a good idea of what their doing and go from there</li>
</ul>
<h3 id="_javascript_1" >Javascript</h3>
<ul>
<li>Learn to <a href="http://borkweb.com/story/node-manipulation-in-the-dom">manipulate the DOM</a></li>
<li>Learn <a href="http://borkweb.com/story/object-oriented-javascript">OO Javascript</a></li>
<li>THEN tackle <a href="http://borkweb.com/story/prototype-makes-javascript-painless">Prototype</a> and <a href="http://borkweb.com/story/scriptaculous-is-my-new-best-friend">Script.aculo.us</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://borkweb.com/story/learning-what-i-know/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Object Oriented JavaScript</title>
		<link>http://borkweb.com/story/object-oriented-javascript</link>
		<comments>http://borkweb.com/story/object-oriented-javascript#comments</comments>
		<pubDate>Thu, 23 Feb 2006 18:24:48 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Random News]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA["object oriented"]]></category>
		<category><![CDATA["web application","oo js"]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[oop]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[standards]]></category>
		<category><![CDATA[structure]]></category>

		<guid isPermaLink="false">http://www.borkweb.com/story/object-oriented-javascript</guid>
		<description><![CDATA[Javascript has invaded my life. And I like it. I have developed web applications for quite some time, writing Javascript off an often unnecessary tool that simply added frills. Over the course of this year &#8211; with the birth of the Ajax hype &#8211; I realize my error. I began inserting javascript all over hell&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p><img id="image179" src="http://www.borkweb.com/wp-content/uploads/2006/02/code.gif" alt="javascript.gif" align="left" class="post_image"/>Javascript has invaded my life.  And I like it.</p>
<p>I have developed web applications for quite some time, writing Javascript off an often unnecessary tool that simply added frills.  Over the course of this year &#8211; with the birth of the Ajax hype &#8211; I realize my error.  I began inserting javascript all over hell&#8217;s half acre and raving about its sweetness.  I&#8217;ve grown in a year.</p>
<p>As I develop more javascript-rich web applications for <a href="http://masterwish.com">my amusement</a> and <a href="http://plymouth.edu">my job</a>, I am constantly seeking better ways to structure both data and code.  It wasn&#8217;t until a month ago that I really began to dig into the <a href="http://www.borkweb.com/story/prototype-makes-javascript-painless">Prototype</a> and <a href="http://www.borkweb.com/story/scriptaculous-is-my-new-best-friend">Script.aculo.us</a> code (rather than simply using it) and began to grow aware of what was actually going on.  Object Oriented Javascript.</p>
<p>I think it is important to note (so I don&#8217;t look like a complete nitwit) that I was aware that Javascript had this capability a couple of months back before I picked up and started using the afore mentioned Javascript libraries&#8230;I just had no drive to learn it and spot where it was being used.  I have seen the light and it is good.</p>
<p>What are its benefits?  Well, pretty much the same applies to Javascript that applies to any other programming language&#8230;OOP helps increase organization and reduce un-needed redundancy.  And best of all?  It helps <strong>prevent dual-declared functions and variables</strong>.  <em>That</em> is the reason I chose to begin my quest for OO-JS familiarity.</p>
<p>I had gone hunting at a few other sites that claimed to be good references (obviously) of OO-JS, but they lacked the topic of inheritance, which is the real strength of any OOP Language.  The <a href="<br />
http://www.webreference.com/js/column79/">most helpful article</a> I found on the topic was at <a href="<br />
http://www.webreference.com/">WebReference</a>.  They discuss the use of <strong>prototype</strong> (<em>Not the Javascript Library</em>).  Here&#8217;s a quick excerpt, but I&#8217;d suggest you read the article for yourself!</p>
<p>Excerpt from <a href="http://www.webreference.com/js/column79/">WebReference</a></p>
<pre class="brush: jscript; title: ; notranslate">
function Person() {
      this.name = &quot;Rob Roberson&quot;;
      this.age = 31;
}

function Employee() {
      this.dept = &quot;HR&quot;;
      this.manager = &quot;John Johnson&quot;;
}

Employee.prototype = new Person();

var Ken = new Employee();
</pre>
<p><strong>Ken is in the prototype chain of Employee, Person, and Object.</strong></p>
<p>Check it out.  Use it.  You&#8217;ll like it.  You&#8217;re applications will like it.  Oh, and it may prove useful to check out some <a href="http://dojotoolkit.org/js_style_guide.html">Javascript Coding Conventions</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://borkweb.com/story/object-oriented-javascript/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

