<?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>What Dave writes</title>
	<atom:link href="http://davetang.org/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://davetang.org/wordpress</link>
	<description>Movies, books, computers, etc.</description>
	<lastBuildDate>Thu, 01 Jul 2010 13:46:11 +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>Stagnancy</title>
		<link>http://davetang.org/wordpress/2010/07/01/stagnancy/</link>
		<comments>http://davetang.org/wordpress/2010/07/01/stagnancy/#comments</comments>
		<pubDate>Thu, 01 Jul 2010 13:44:46 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[beginning]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[exercise]]></category>
		<category><![CDATA[helpful]]></category>
		<category><![CDATA[slump]]></category>

		<guid isPermaLink="false">http://davetang.org/wordpress/?p=230</guid>
		<description><![CDATA[I just finished reading an article on stagnancy http://www.lifehack.org/articles/lifehack/5-steps-to-move-out-of-stagnancy-in-life.html. From my own experience I couldn&#8217;t agree more with all the suggestions given. I&#8217;m one of those cyclic people; I go on a high working tirelessly and then I reach a low point. So now I try to relax a bit more and spent some time [...]]]></description>
			<content:encoded><![CDATA[<p>I just finished reading an article on stagnancy http://www.lifehack.org/articles/lifehack/5-steps-to-move-out-of-stagnancy-in-life.html. From my own experience I couldn&#8217;t agree more with all the suggestions given. I&#8217;m one of those cyclic people; I go on a <a href="http://davetang.org/wordpress/2010/02/07/staying-motivated-and-defeating-burnouts/">high working tirelessly and then I reach a low point</a>. So now I try to relax a bit more and spent some time doing things other than work.</p>
<p>My one tip for combating stagnancy is to start slowly and let the momentum build. This is especially useful when you are having trouble starting a project; start with something mundane. I have trouble with focusing when reading something very technical, so I start off by writing down what I read. The combined motor action helps me focus more and gets me started. The hardest part to combating stagnancy is getting started. So start off slow and steady.</p>
]]></content:encoded>
			<wfw:commentRss>http://davetang.org/wordpress/2010/07/01/stagnancy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Life in Japan</title>
		<link>http://davetang.org/wordpress/2010/06/26/life-in-japan/</link>
		<comments>http://davetang.org/wordpress/2010/06/26/life-in-japan/#comments</comments>
		<pubDate>Fri, 25 Jun 2010 17:45:00 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[beginning]]></category>
		<category><![CDATA[epic]]></category>
		<category><![CDATA[life]]></category>
		<category><![CDATA[self]]></category>

		<guid isPermaLink="false">http://davetang.org/wordpress/?p=220</guid>
		<description><![CDATA[It has been four months since my last entry and my, have things changed in these four months. So I now reside in Japan, with my wife and have started my PhD. Many changes indeed. I&#8217;ve been keeping everyone updated with my status mainly through facebook, because well no one reads this blog (yes I [...]]]></description>
			<content:encoded><![CDATA[<p>It has been four months since my last entry and my, have things changed in these four months. So I now reside in Japan, with my wife and have started my PhD. Many changes indeed. I&#8217;ve been keeping everyone updated with my status mainly through facebook, because well no one reads this blog (yes I like to remind my phantom viewers of this fact).</p>
<p>Life is very much different now; I&#8217;m more focused towards research and work. I have a goal, which is to complete my PhD within 3 years. For those unfamiliar, people usually finish in >3 years; so it&#8217;s a formidable task.</p>
<p>Living in a different country hasn&#8217;t changed my lifestyle too much; just mainly my diet is different. I just play much less basketball now and work more.</p>
<p>And lastly I am a married man now. I&#8217;ve actually always treated my better half as my wife anyway but now I have paper proof; so it hasn&#8217;t been too different. It is definitely a big step forward and I need to think more about my future now. In the meantime, I have a poster to make for a presentation on Monday. Life in Japan: busy times.</p>
]]></content:encoded>
			<wfw:commentRss>http://davetang.org/wordpress/2010/06/26/life-in-japan/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My blog</title>
		<link>http://davetang.org/wordpress/2010/02/22/my-blog/</link>
		<comments>http://davetang.org/wordpress/2010/02/22/my-blog/#comments</comments>
		<pubDate>Sun, 21 Feb 2010 18:04:28 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[davetang.org]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[internet]]></category>

		<guid isPermaLink="false">http://davetang.org/wordpress/?p=217</guid>
		<description><![CDATA[It&#8217;s been almost 10 months since I&#8217;ve started this blog. I still haven&#8217;t advertised my site (davetang.org) or my blog (davetang.org/wordpress) to friends and family, although if you Google &#8220;Dave Tang&#8221;, davetang.org is the second hit! (yes I Google myself). I guess I can&#8217;t compete with davetanghorses.com, with their 40 years of experience with horses [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been almost 10 months since I&#8217;ve started this blog. I still haven&#8217;t advertised my site (davetang.org) or my blog (davetang.org/wordpress) to friends and family, although if you <a href="http://www.google.com.au/search?client=opera&#038;rls=en-GB&#038;q=dave+tang&#038;sourceid=opera&#038;ie=utf-8&#038;oe=utf-8">Google &#8220;Dave Tang&#8221;</a>, davetang.org is the second hit! (yes I Google myself). I guess I can&#8217;t compete with davetanghorses.com, with their 40 years of experience with horses (just to clarify, they are first hit, if you Google Dave Tang).</p>
<p>But the purpose of having my own site was just for the satisfaction of owning a domain, especially one with my name in it! And the purpose of my blog, was just to have an outlet for the many things that cross my mind. Although I am a bit more attentive to what I write these days due to a very bad experience. I dread what happened, but it was a good experience in professionalism.</p>
<p>But you know, sometimes I still want to delete this blog. Keeping this blog, opens me up to the world. I may be attacked, criticised and be judged for what I write. My pages are open to anyone with an internet connection (who at this stage, has to bother with Googling me). And there&#8217;s always the problem of me wanting my blog to be a perfectly articulated piece of art, which it isn&#8217;t and which it why I want to delete it.</p>
<p>But I mean, this is me. This is who I am; these are my interests and these are the things I care about. I am not perfect and there will be times when I have difficulty with issues, just like anybody else. So I think I&#8217;ve come to accept the fact that this is really me. And I&#8217;m not writing a novel either.</p>
]]></content:encoded>
			<wfw:commentRss>http://davetang.org/wordpress/2010/02/22/my-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Do it anyway</title>
		<link>http://davetang.org/wordpress/2010/02/07/do-it-anyway/</link>
		<comments>http://davetang.org/wordpress/2010/02/07/do-it-anyway/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 11:38:49 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[life]]></category>

		<guid isPermaLink="false">http://davetang.org/wordpress/?p=212</guid>
		<description><![CDATA[““People are often unreasonable, illogical, and self-centered; Forgive them anyway. If you are kind, people may accuse you of selfish, ulterior motives; Be kind anyway. If you are successful you will win some false friends and true enemies; Succeed anyway. If you are honest and frank, people may cheat you; Be honest and frank anyway. [...]]]></description>
			<content:encoded><![CDATA[<p>““People are often unreasonable, illogical, and self-centered; Forgive them anyway. If you are kind, people may accuse you of selfish, ulterior motives; Be kind anyway. If you are successful you will win some false friends and true enemies; Succeed anyway. If you are honest and frank, people may cheat you; Be honest and frank anyway. What you spend years building, someone could destroy overnight; Build anyway. If you find serenity and happiness, they may be jealous; Be happy anyway. The good you do today, people will often forget tomorrow; Do good anyway. Give the world the best you have, and it may never be enough; Give the world the best you’ve got anyway. You see, in the final analysis, it is between you and God; It was never between you and them anyway.””</p>
<p>- Mother Teresa</p>
<p>Because what matters the most is your heart. It&#8217;s never about the things outside of your heart.</p>
]]></content:encoded>
			<wfw:commentRss>http://davetang.org/wordpress/2010/02/07/do-it-anyway/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Staying motivated and defeating burnouts</title>
		<link>http://davetang.org/wordpress/2010/02/07/staying-motivated-and-defeating-burnouts/</link>
		<comments>http://davetang.org/wordpress/2010/02/07/staying-motivated-and-defeating-burnouts/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 02:36:31 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Health]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[helpful]]></category>
		<category><![CDATA[slump]]></category>

		<guid isPermaLink="false">http://davetang.org/wordpress/?p=165</guid>
		<description><![CDATA[You know that feeling. Where you’re that close to finishing a project, or achieving a goal, or crossing a task off your to-do list … but you just can’t muster the energy. You’ve lost interest. You’re exhausted. Drained. And you don’t know why. From zenhabits. I have been burned out several times in my life [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>You know that feeling. Where you’re that close to finishing a project, or achieving a goal, or crossing a task off your to-do list … but you just can’t muster the energy. You’ve lost interest. You’re exhausted. Drained. And you don’t know why. From <a href="http://zenhabits.net/2009/10/how-to-defeat-burnout-and-stay-motivated/">zenhabits</a>.</p></blockquote>
<p>I have been burned out several times in my life while working on big projects. There are several trends I see during the times I&#8217;ve burned out: it&#8217;s a big project where I am the only person working on it, I spend the first couple of months working tirelessly and after a while my interest has dropped. And the article from zenhabits describes it beautifully:</p>
<blockquote><p>It’s like driving toward a mountain in the distance. You can drive for hours, but the mountain doesn’t seem to get any closer. And spinning your wheels gets real tiring real fast.</p></blockquote>
<p>And the rest of the article talks about how you should set goals, work less and just enjoy your free time. I find a balance between work and life are extremely important and the article stresses this point and I couldn&#8217;t agree more.</p>
<p>I&#8217;d just like to add a further point of &#8220;How to start working&#8221;. Sure we may have all the right requirements in the car to start the engine, inspiration, motivation and anticipation, but we first need to start the car. This is also a problem I usually face. But usually I overcome this by doing some extremely simple/mundane work to get started; writing down stuff/taking notes is usually the best way I get my engine started.</p>
<p>Then just like a snowball rolling down a mountain, it turns to an avalanche. And hopefully it keeps on rolling <img src='http://davetang.org/wordpress/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://davetang.org/wordpress/2010/02/07/staying-motivated-and-defeating-burnouts/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The Alchemist by Paulo Coelho</title>
		<link>http://davetang.org/wordpress/2010/02/06/the-alchemist-by-paulo-coelho/</link>
		<comments>http://davetang.org/wordpress/2010/02/06/the-alchemist-by-paulo-coelho/#comments</comments>
		<pubDate>Sat, 06 Feb 2010 03:38:16 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[beauty]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[legacy]]></category>
		<category><![CDATA[life]]></category>
		<category><![CDATA[self]]></category>

		<guid isPermaLink="false">http://davetang.org/wordpress/?p=182</guid>
		<description><![CDATA[People are afraid to pursue their most important dreams, because they feel that they don’t deserve them, or that they’ll be unable to achieve them. We, their hearts, become fearful just thinking of loved ones who go away forever, or of moments that could have been good but weren’t, or of treasures that might have [...]]]></description>
			<content:encoded><![CDATA[<p><i>People are afraid to pursue their most important dreams, because they feel that they don’t deserve them, or that they’ll be unable to achieve them. We, their hearts, become fearful just thinking of loved ones who go away forever, or of moments that could have been good but weren’t, or of treasures that might have been found but were forever hidden in the sands. Because, when these things happen, we suffer terribly.</i></p>
<p>There are many reasons why we don&#8217;t go after our dreams. The main reason, I believe, is that our dreams have faded away along the years. We dream as kids to be firemen, doctors, pilots or astronauts. Because at that point of our lives, everything is clear and everything is possible. Kids are never afraid to dream. <i>But, as time passes, a mysterious force begins to convince them that it will be impossible for them to realize their Personal Legend.</i></p>
<p>We grow to believe that we are unable to achieve our dreams; and we become fearful. <i>Why don’t people’s hearts tell them to continue to follow their dreams? Because that’s what makes a heart suffer most, and hearts don’t like to suffer.</i> Fear is the main obstacle to almost everything in life. The fear of suffering, fear of disappointment and <i>naturally we&#8217;re afraid that, in pursuing our dream, we might lose everything we&#8217;ve won.</i></p>
<p>The Alchemist is a book about listening to your heart and following your dreams. It tales the story of a shepherd in search of his dream and treasure. It describes his journey and the lessons he learns along the way. And by following his heart, he is able to overcome his fear and gain the most important treasures in life. Follow his magnificent journey and may it be inspiration for you to follow your heart and dreams. Because <i>when you want something, all the universe conspires in helping you to achieve it.</i></p>
<p>*in italics are quotes borrowed from the book, either directly or paraphrased.</p>
]]></content:encoded>
			<wfw:commentRss>http://davetang.org/wordpress/2010/02/06/the-alchemist-by-paulo-coelho/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>When you look back, it seems that everything was planned</title>
		<link>http://davetang.org/wordpress/2010/02/02/when-you-look-back-it-seems-that-everything-was-planned/</link>
		<comments>http://davetang.org/wordpress/2010/02/02/when-you-look-back-it-seems-that-everything-was-planned/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 14:30:49 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Career]]></category>
		<category><![CDATA[beginning]]></category>
		<category><![CDATA[legacy]]></category>
		<category><![CDATA[life]]></category>

		<guid isPermaLink="false">http://davetang.org/wordpress/?p=197</guid>
		<description><![CDATA[My interest in biology began when I first sat in the class of my year 9 biology teacher. I just enjoyed biology but I was much better at maths. I continued studying biology in high school and did equally well in maths and biology. Then came university and I had to enrol in something. I [...]]]></description>
			<content:encoded><![CDATA[<p>My interest in biology began when I first sat in the class of my year 9 biology teacher. I just enjoyed biology but I was much better at maths. I continued studying biology in high school and did equally well in maths and biology. Then came university and I had to enrol in something. I never thought about what I wanted to do after university but chose to do a Bachelor of Science. I got in and had to choose subjects; having no clue I just chose to follow the 3 year biological science plan. I finished my degree and got the best results in a subject called genomics and bioinformatics. I applied to do honours with many group leaders involved with biological projects but was turned down for many reasons (mostly they had no room). All that was left was a project in bioinformatics and I got accepted. I finished my honours and started looking for work, any work at all. Lab technician, lab assistant, soil tester, lab cleaner, anything! Alas I was unsuccessful. One day I decided to look at the CSIRO webpage and found a work experience program. I applied and got accepted. After 6 months of work experience I was hired by them. My first real job. When it neared the end of my term I found a job advertisement, a position just around the corner. I applied and got the position. A major snafu occurred just before I started and it would haunt me for the entire time I was there. Determined to set things straight I worked tirelessly. My efforts would not go unnoticed. Recently I was told of a PhD opportunity by a previous colleague, something I&#8217;ve always wanted to do. It was an opportunity that fitted to every requirement I had. I had rejected the opportunity once, but it still came back to me. So I applied. And I got the position.</p>
<p>And here I am about to start my new journey. You can argue that everything that has happened shaped the future, rather than having everything planned. But I still feel that I had been destined. Had I not only one last honours option, would I have worked as hard as I did? If I had not been rejected so many times when I applied for work, would I have cherished my CSIRO position as much and worked like I didn&#8217;t need to sleep? Had I not made a major snafu just before the start of my position, would I have had the cause and focus to work like there was no tomorrow? And had I not been doing extra work, would I have ever been noticed and been told of the PhD opportunity?</p>
<p>And what if I had never bumped into Dr. Davies my grade 9 and 10 biology teacher? Mathematician? Astronaut? I&#8217;ll never know since that wasn&#8217;t the plan.</p>
]]></content:encoded>
			<wfw:commentRss>http://davetang.org/wordpress/2010/02/02/when-you-look-back-it-seems-that-everything-was-planned/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What do you do in your spare time?</title>
		<link>http://davetang.org/wordpress/2010/01/23/what-do-you-do-in-your-spare-time/</link>
		<comments>http://davetang.org/wordpress/2010/01/23/what-do-you-do-in-your-spare-time/#comments</comments>
		<pubDate>Sat, 23 Jan 2010 13:03:25 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[life]]></category>
		<category><![CDATA[lifestyle]]></category>
		<category><![CDATA[self]]></category>

		<guid isPermaLink="false">http://davetang.org/wordpress/?p=186</guid>
		<description><![CDATA[&#8220;Men&#8217;s natures are alike, it is their habits that carry them far apart.&#8221; &#8211; Confucius Time is limited and as I get older I feel that I should focus my time on doing things that are worthwhile. The number one thing that I avoid doing is playing video games. And the activity that I try [...]]]></description>
			<content:encoded><![CDATA[<p>&#8220;Men&#8217;s natures are alike, it is their habits that carry them far apart.&#8221; &#8211; Confucius</p>
<p>Time is limited and as I get older I feel that I should focus my time on doing things that are worthwhile. The number one thing that I avoid doing is playing video games. And the activity that I try to do the most is reading, especially books on philosophy or books related to work i.e. computers and biology. This need, of doing worthwhile things, really stems from thinking about my future. The need to start a family, purchase a house and advance my career. But are things like this universally important to everyone?</p>
<p>I guess the real question to ask is, what do you want out of life? And that&#8217;s a tough question to answer; especially when you&#8217;re alone sitting in your room. I have asked myself this question many times. My answers usually have something to do with &#8220;helping people&#8221; and &#8220;being happy&#8221;. Not very specific but it&#8217;s a good start. Helping people gives you one of the greatest joys a person can experience, but there are just so many different ways to help people. My current work now helps biologists understand kidneys more, which may someday indirectly help patients with kidney problems. But most of the times, I just see myself working on the computer.</p>
<p>So back to the original question, what do you do in your spare time? Lately, I&#8217;ve been obsessed with a book called &#8220;The Alchemist&#8221;. I highlighted passages in the book that I enjoy and can relate to, watched &#8220;The English Patient (again)&#8221; to help my visualisation of the desert (The English Patient&#8217;s setting is in the desert), and read the book some more. And if you know what &#8220;The Alchemist&#8221; is about, you&#8217;ll know that I am constantly striving to understand the world better and to find myself. So although this blog entry seems to be going all over the place, my main message is encapsulated in the quote stated right at the start of my entry; what a person does in his/her spare time has a lot to do with what the person is like.</p>
<p>But me being me, I didn&#8217;t really want to publish this entry because it is so poorly written. And I&#8217;m one of those people that scribbles ideas on a piece of paper and then crumples it up x100! Being a perfectionist is more negative than positive!</p>
]]></content:encoded>
			<wfw:commentRss>http://davetang.org/wordpress/2010/01/23/what-do-you-do-in-your-spare-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Let&#8217;s write about something fun</title>
		<link>http://davetang.org/wordpress/2009/12/06/lets-write-about-something-fun/</link>
		<comments>http://davetang.org/wordpress/2009/12/06/lets-write-about-something-fun/#comments</comments>
		<pubDate>Sun, 06 Dec 2009 02:50:07 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[beauty]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[dave]]></category>
		<category><![CDATA[desire]]></category>
		<category><![CDATA[tang]]></category>

		<guid isPermaLink="false">http://davetang.org/wordpress/?p=178</guid>
		<description><![CDATA[No Perl, no technology, no pseudo-philosophy/pseudo-intellectual stuff and boring stuff I write about. Let me write about something fun. I&#8217;m flying back to Hong Kong tonight. I will get to see my girlfriend whom I haven&#8217;t seen since August 23rd. And no one is more fun than her, so let&#8217;s write about her (and she [...]]]></description>
			<content:encoded><![CDATA[<p>No Perl, no technology, no pseudo-philosophy/pseudo-intellectual stuff and boring stuff I write about. Let me write about something fun. I&#8217;m flying back to Hong Kong tonight. I will get to see my girlfriend whom I haven&#8217;t seen since August 23rd.</p>
<p>And no one is more fun than her, so let&#8217;s write about her (and she never reads my blog, so I can be blunt <img src='http://davetang.org/wordpress/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> ). She is really the light of my life; I&#8217;m the dull and boring guy, and she is the exciting one. If it weren&#8217;t for her, I couldn&#8217;t even finish this post since I&#8217;m no fun at all. And I think the phrase &#8220;better half&#8221; couldn&#8217;t be more suiting.</p>
<p>You know how when people grow older, they get more defensive, become less inquisitive, and lose that enthusiasm and purity that kids innately have? I know I am generalising but I believe it is a common phenomenon. Well she is still that naive, happy and uncorrupted child. It makes me smile just thinking about her. I wrote her a poem along the lines of being a &#8220;Rose in this concrete world&#8221;. Although she mentioned that she likes lavender <img src='http://davetang.org/wordpress/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>She has the most beautiful smile in the world; people just look at her and like her instantly. She is extremely good around people, and carries this aura of happiness. Am I exaggerating because she is my partner? Actually I think I am doing the opposite of exaggeration, since I don&#8217;t think I can capture her beauty with my writing.</p>
<p>Where ever she goes, she is THE child magnet. Kids love her, which is why I always encourage her to open a childcare. Her friends love her. But most importantly I love her. How did she end up with an over analysing, logical, soft spoken computer guy? Well that&#8217;s how relationships work; one half makes up what&#8217;s missing in the other half. And with that I end with this (I just couldn&#8217;t resist quoting <img src='http://davetang.org/wordpress/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> ):</p>
<p>&#8220;I have lost count of the number of couples I have known in whom one partner&#8217;s apparent vices exactly correspond to the other&#8217;s virtues: bumptiousness to charm, noisiness to quietness, talking to listening, selfishness to grace, nastiness to kindness, meanness to generosity, closed to open, nasty to nice. I suppose people often look for a partner who can voice the parts of themselves they have difficulty in expressing.&#8221; &#8211; John Lanchester in Fragrant Harbour page 64.</p>
]]></content:encoded>
			<wfw:commentRss>http://davetang.org/wordpress/2009/12/06/lets-write-about-something-fun/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OOP</title>
		<link>http://davetang.org/wordpress/2009/12/05/oop/</link>
		<comments>http://davetang.org/wordpress/2009/12/05/oop/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 23:45:12 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Perl]]></category>
		<category><![CDATA[computing]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[exercise]]></category>

		<guid isPermaLink="false">http://davetang.org/wordpress/?p=59</guid>
		<description><![CDATA[Object orientated Perl! Boy, if there is one thing that I want to fully grasp, this would be it. So I spent time (yet again) reading perldoc perlboot. This would be the second time I&#8217;ve been through the beginner&#8217;s guide to OO Perl. Here&#8217;s are the key points (from memory which may be inaccurate): Packages [...]]]></description>
			<content:encoded><![CDATA[<p>Object orientated Perl! Boy, if there is one thing that I want to fully grasp, this would be it. So I spent time (yet again) reading perldoc perlboot. This would be the second time I&#8217;ve been through the beginner&#8217;s guide to OO Perl. Here&#8217;s are the key points (from memory which may be inaccurate):</p>
<ol>
<li>Packages are used to create &#8220;Classes&#8221;</li>
<li>In each class, you have methods which operate on an object</li>
<li>Methods are created by using Perl&#8217;s subroutines</li>
<li>Methods from can be &#8220;inherited&#8221; from another class using the @ISA array</li>
<li>The @ISA variable needs to be explicitly (if that&#8217;s the right word) declared, either using the full namespace or defined globally using &#8220;our&#8221;</li>
<li>A constructor is a method used to create a specific instance</li>
<li>An instance is a blessed Perl reference (be it a scalar, hash or array)</li>
<li>The arrow invocation arrow &#8220;->&#8221; is used to specify a method for an object (i.e. $object->$method)</li>
<li>When using &#8220;->&#8221; with an instance, the first argument passed to the method is the object</li>
<li>When using &#8220;->&#8221; in the manner of Class->method, the first argument passed will be the class</li>
<li>Interestingly (to me), when you use &#8220;->&#8221; with an instance, the method can still pick up the class from the instance</li>
</ol>
<p>So by using these ideas, you can create classes with packages; within these classes you can create methods, i.e. the new method as the constructor which creates an instance of the object.</p>
<p>I think the best way to really learn OO Perl, is to start writing some. I will post my OO Perl exploits as they come along.</p>
]]></content:encoded>
			<wfw:commentRss>http://davetang.org/wordpress/2009/12/05/oop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
