<?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>Pre-Thought Listen</title>
	<atom:link href="http://journal.ryanmccue.info/feed/" rel="self" type="application/rss+xml" />
	<link>http://journal.ryanmccue.info</link>
	<description>The personal weblog of Ryan McCue.</description>
	<lastBuildDate>Wed, 01 Feb 2012 08:41:22 +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>A Huge Platypus, and His Journeys Around India</title>
		<link>http://ahugeplatypus.tumblr.com/</link>
		<comments>http://journal.ryanmccue.info/147/a-huge-platypus-and-his-journeys-around-india/#comments</comments>
		<pubDate>Wed, 01 Feb 2012 08:41:22 +0000</pubDate>
		<dc:creator>Ryan McCue</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://journal.ryanmccue.info/?p=147</guid>
		<description><![CDATA[A friend of mine is in India at the moment and keeping a record of his travels on Tumblr. It&#8217;s a great read, and I&#8217;m insanely jealous of him.<p><a href="http://journal.ryanmccue.info/147/a-huge-platypus-and-his-journeys-around-india/">[Permalink]</a></p>]]></description>
			<content:encoded><![CDATA[<p>A friend of mine is in India at the moment and keeping a record of his travels on Tumblr. It&#8217;s a great read, and I&#8217;m insanely jealous of him.</p>
<p><a href="http://journal.ryanmccue.info/147/a-huge-platypus-and-his-journeys-around-india/">[Permalink]</a></p>]]></content:encoded>
			<wfw:commentRss>http://journal.ryanmccue.info/147/a-huge-platypus-and-his-journeys-around-india/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IntenseDebate Is No More!</title>
		<link>http://journal.ryanmccue.info/145/intensedebate-is-no-more/</link>
		<comments>http://journal.ryanmccue.info/145/intensedebate-is-no-more/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 11:28:05 +0000</pubDate>
		<dc:creator>Ryan McCue</dc:creator>
				<category><![CDATA[Meta]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[intensedebate]]></category>

		<guid isPermaLink="false">http://journal.ryanmccue.info/?p=145</guid>
		<description><![CDATA[I&#8217;ve finally had time to redo some of the styling for this site, so I&#8217;ve given comments a makeover and switched back to WordPress&#8217;s comment system. Initially, I used IntenseDebate to avoid having to style the comments. It was a good idea, but unfortunately I never got the motivation to finish it off. Oops!]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve finally had time to redo some of the styling for this site, so I&#8217;ve given comments a makeover and switched back to WordPress&#8217;s comment system. Initially, I used IntenseDebate to avoid having to style the comments. It was a good idea, but unfortunately I never got the motivation to finish it off.</p>
<p>Oops!</p>
]]></content:encoded>
			<wfw:commentRss>http://journal.ryanmccue.info/145/intensedebate-is-no-more/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Explicit Versus Implict Coding</title>
		<link>http://journal.ryanmccue.info/139/explicit-versus-implict-coding/</link>
		<comments>http://journal.ryanmccue.info/139/explicit-versus-implict-coding/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 08:18:48 +0000</pubDate>
		<dc:creator>Ryan McCue</dc:creator>
				<category><![CDATA[Plugin Development]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[actions]]></category>
		<category><![CDATA[backwards compatibility]]></category>
		<category><![CDATA[filters]]></category>
		<category><![CDATA[forward compatibility]]></category>
		<category><![CDATA[mikeschinkel]]></category>
		<category><![CDATA[wp_plugin]]></category>

		<guid isPermaLink="false">http://journal.ryanmccue.info/?p=139</guid>
		<description><![CDATA[Konstantin Kovshenin recently posted on his blog about creating a WP_Plugin class. He posted an example of a class to fit his thoughts around it on Gist, and from there, discussion has taken place on how such a class would be implemented. There has been a fair bit of discussion on my fork of Konstantin&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>Konstantin Kovshenin recently posted on his blog about <a href="http://kovshenin.com/2012/01/hey-wordpress-how-about-a-wp_plugin-class-3797/">creating a WP_Plugin class</a>. He posted <a href="https://gist.github.com/1626284">an example of a class</a> to fit his thoughts around it on Gist, and from there, discussion has taken place on how such a class would be implemented.</p>
<p>There has been a fair bit of discussion on <a href="https://gist.github.com/1626492">my fork of Konstantin&#8217;s code</a> about this, and I&#8217;ve been updating the class with new ideas as we come across them.</p>
<p>However, as is usual with discussion regarding any semi-complicated piece of code, there has been some disagreement on how best to hook methods in. <a href="http://mikeschinkel.com/">Mike Schinkel</a> is a fan of mapping method names directly to hooks, whereas I much prefer prefixing methods that I want hooked with either <code>action_</code> or <code>filter_</code>. (We both agree that PHPDoc tags are a good idea though, although Mike also adds a <code>@wp-nohook</code> to ignore any methods.)<sup><a href="http://journal.ryanmccue.info/139/explicit-versus-implict-coding/#footnote_0_139" id="identifier_0_139" class="footnote-link footnote-identifier-link" title="Mike has informed me that he does support explicit hooking for published code, but implicit hooking for prototyping. I&amp;#8217;m not a fan of this either, since I can forsee people forgetting to do so.">1</a></sup> I thought I&#8217;d further flesh out why I&#8217;m not a fan of mapping the methods directly.</p>
<p>Personally, while I see the merit in naming methods for hooks directly, I hate magic. I hate not knowing when my code is used, and I think one of the biggest strengths of WordPress is that this hardly ever happens. If I want something used, I explicitly declare that through <code>add_action</code>/<code>add_filter</code>.</p>
<p>Don&#8217;t get me wrong: I love making things easier for myself. One of my favourite pieces of code ever is one written by Morten Fangel that I use in almost everything I do: <code><a href="https://github.com/Lilina/Lilina/blob/master/inc/core/AjaxHandler.php#L39">_sortArgs()</a></code>. This piece of code will take an associative array, like <code>array('a' => 'b')</code> and map the variables to parameters to my function. Combined with <code>$_GET</code> and <code>$_POST</code>, it&#8217;s an extremely powerful tool. However, <code>_sortArgs</code> isn&#8217;t really that magical when it comes down to it. I&#8217;m specifying which parameters I want, and everything is explicitly written by me.</p>
<p>I can see the same thing with this plugin class. If I prefix a method with <code>action_</code> or <code>filter_</code> (or using PHPDoc tags), I&#8217;m explicitly stating that I want this hooked. On the other hand, a method like <code>init</code> is completely implicit. It happens to match a WordPress action, but that could be a coincidence.</p>
<p>As an example of where this would be a problem for me: I often write a method like <code>admin_page</code> for whatever page I&#8217;m adding to the admin. If I have things spread across several pages, I&#8217;ll factorise the common header bits and footer bits into <code>admin_header</code> and <code>admin_footer</code>. Except with implicit hooking, I&#8217;ve accidentally just hooked my footer method into the administration footer. Now, I have to <strong>undo</strong> that by specifying that I don&#8217;t want it hooked.</p>
<p>To hook implicitly requires that I know every action/filter in WordPress to avoid conflicting with them.</p>
<p>Even worse than this is that hooking implicitly breaks forward as well as backward compatibility. Let&#8217;s say I add a method called <code>after_post</code> which I call from another class in my plugin, so I need it to be a public method. Everything is going well, until <a href="http://core.trac.wordpress.org/ticket/18561">WordPress adds a hook into templates for adding content after a post</a>. Oops, suddenly, my plugin breaks through no fault of my own, and through something that core developers shouldn&#8217;t (and wouldn&#8217;t) have to worry about.</p>
<p>Hooking implicitly breaks compatibility in every direction, and is too magical. It is absolutely not the way to consume a public API.</p>
<p>Sidenote: A discussion also emerged on how to use priorities. Mike and I both agree (I think) on using PHPDoc, while <a href="http://toscho.de/">Thomas Scholz</a> <del datetime="2012-01-18T08:29:30+00:00">prefers</del> <ins datetime="2012-01-18T08:29:30+00:00">preferred</ins> suffixing the method (i.e. <code>action_init_2</code>). My problem with this is that distinguishing between an named <code>init</code> with priority 2 and an action named <code>init_2</code> is impossible.</p>
<p><strong>Edit:</strong> Thomas dropped support for priorities in the method name, which I initially missed. Thanks for the correction.</p>
<p><strong>Edit 2:</strong> Updated with a footnote about Mike&#8217;s position regarding implicit/explicit hooking.</p>
<ol class="footnotes"><li id="footnote_0_139" class="footnote">Mike has informed me that he does support explicit hooking for published code, but implicit hooking for prototyping. I&#8217;m not a fan of this either, since I can forsee people forgetting to do so.</li></ol>]]></content:encoded>
			<wfw:commentRss>http://journal.ryanmccue.info/139/explicit-versus-implict-coding/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Think Different</title>
		<link>http://journal.ryanmccue.info/135/think-different/</link>
		<comments>http://journal.ryanmccue.info/135/think-different/#comments</comments>
		<pubDate>Thu, 06 Oct 2011 12:04:08 +0000</pubDate>
		<dc:creator>Ryan McCue</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[steve jobs]]></category>

		<guid isPermaLink="false">http://journal.ryanmccue.info/?p=135</guid>
		<description><![CDATA[Here’s to the crazy ones. The misfits. The rebels. The troublemakers. The round pegs in the square holes. The ones who see things differently. They’re not fond of rules. And they have no respect for the status quo. You can quote them, disagree with them, glorify or vilify them. About the only thing you can’t [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>Here’s to the crazy ones. The misfits. The rebels. The troublemakers. The round pegs in the square holes. The ones who see things differently. They’re not fond of rules. And they have no respect for the status quo. You can quote them, disagree with them, glorify or vilify them. About the only thing you can’t do is ignore them. Because they change things. They push the human race forward. And while some may see them as the crazy ones, we see genius. Because the people who are crazy enough to think they can change the world, are the ones who do.</p></blockquote>
<p>We&#8217;ll miss you, Steve. Thank you.</p>
]]></content:encoded>
			<wfw:commentRss>http://journal.ryanmccue.info/135/think-different/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What&#8217;s Up?</title>
		<link>http://journal.ryanmccue.info/123/whats-up/</link>
		<comments>http://journal.ryanmccue.info/123/whats-up/#comments</comments>
		<pubDate>Thu, 27 Jan 2011 11:11:01 +0000</pubDate>
		<dc:creator>Ryan McCue</dc:creator>
				<category><![CDATA[Me]]></category>
		<category><![CDATA[me]]></category>
		<category><![CDATA[school]]></category>
		<category><![CDATA[simplepie]]></category>
		<category><![CDATA[year 12]]></category>

		<guid isPermaLink="false">http://journal.ryanmccue.info/?p=123</guid>
		<description><![CDATA[And, yet again, I&#8217;m falling into the trap of not posting. Despite the fact that I have at least four draft post sitting around, I haven&#8217;t had the motivation to post any yet. But never fear, I shall get around to it eventually! So, here&#8217;s a quick update on what&#8217;s happening with me. I&#8217;ve begun [...]]]></description>
			<content:encoded><![CDATA[<p>And, yet again, I&#8217;m falling into the trap of not posting. Despite the fact that I have at least four draft post sitting around, I haven&#8217;t had the motivation to post any yet. But never fear, I shall get around to it eventually!</p>
<p>So, here&#8217;s a quick update on what&#8217;s happening with me. I&#8217;ve begun my senior year in high school, with less than 10 months until I graduate. I&#8217;ve been slogging away at my projects, as per usual, and I&#8217;m hoping to get the SimplePie website fully migrated to Automattic&#8217;s servers some time in the next few weeks. The sooner that happens, the sooner I can push out a bug-fix release.</p>
<p>I&#8217;ve also had the pleasure of working on <a href="http://yesplugins.com/">YesPlugins</a> with <a href="http://anthonycole.me/">Anthony Cole</a> and <a href="http://markbao.com/">Mark Bao</a>, but I can&#8217;t reveal too much on this yet. Watch this space, as many things are yet to come. (Interested in working with us? Get in touch.)</p>
<p>I think that&#8217;s about it for now. I intend on keeping this journal up-to-date much more than previously, and with some luck, I can stick to that. Until next time, ciao.</p>
]]></content:encoded>
			<wfw:commentRss>http://journal.ryanmccue.info/123/whats-up/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Random Antics</title>
		<link>http://journal.ryanmccue.info/115/random-antics/</link>
		<comments>http://journal.ryanmccue.info/115/random-antics/#comments</comments>
		<pubDate>Fri, 27 Aug 2010 09:46:03 +0000</pubDate>
		<dc:creator>Ryan McCue</dc:creator>
				<category><![CDATA[Gaming]]></category>
		<category><![CDATA[bad company 2]]></category>
		<category><![CDATA[bc2]]></category>
		<category><![CDATA[bfbc2au]]></category>
		<category><![CDATA[reddit]]></category>
		<category><![CDATA[reddit.au]]></category>

		<guid isPermaLink="false">http://journal.ryanmccue.info/?p=115</guid>
		<description><![CDATA[Quite a while ago, I was online with some friends in Bad Company 2. We decided to make some explosive footage and compile it into a masterpiece. While we wait for producer Newsworthy to finish our actual in-game video, here&#8217;s some of the raw footage. Enjoy!]]></description>
			<content:encoded><![CDATA[<p>Quite a while ago, I was online with some friends in Bad Company 2. We decided to make some explosive footage and compile it into a masterpiece. While we wait for producer Newsworthy to finish our actual in-game video, here&#8217;s some of the raw footage. Enjoy!</p>
<p><object width="500" height="306"><param name="movie" value="http://www.youtube.com/v/YvhVgVKZnxs?fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/YvhVgVKZnxs?fs=1" type="application/x-shockwave-flash" width="500" height="306" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://journal.ryanmccue.info/115/random-antics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>On the Lack of Posting&#8230;</title>
		<link>http://journal.ryanmccue.info/111/on-the-lack-of-posting/</link>
		<comments>http://journal.ryanmccue.info/111/on-the-lack-of-posting/#comments</comments>
		<pubDate>Sat, 21 Aug 2010 03:58:42 +0000</pubDate>
		<dc:creator>Ryan McCue</dc:creator>
				<category><![CDATA[Meta]]></category>

		<guid isPermaLink="false">http://journal.ryanmccue.info/111/on-the-lack-of-posting/</guid>
		<description><![CDATA[Yeah, I haven&#8217;t been writing here much. More blog posts will be coming as soon as I have time to write them.]]></description>
			<content:encoded><![CDATA[<p>Yeah, I haven&#8217;t been writing here much. More blog posts will be coming as soon as I have time to write them.</p>
]]></content:encoded>
			<wfw:commentRss>http://journal.ryanmccue.info/111/on-the-lack-of-posting/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Silverchair Covers Yellow Submarine</title>
		<link>http://www.abc.net.au/triplej/media/s2884637.htm</link>
		<comments>http://journal.ryanmccue.info/link/silverchair-covers-yellow-submarine/#comments</comments>
		<pubDate>Thu, 29 Apr 2010 11:40:13 +0000</pubDate>
		<dc:creator>Ryan McCue</dc:creator>
		
		<guid isPermaLink="false">http://journal.ryanmccue.info/link/</guid>
		<description><![CDATA[One of the best renditions I&#8217;ve heard of Yellow Submarine.<p><a href="http://journal.ryanmccue.info/link/silverchair-covers-yellow-submarine/">[Permalink]</a></p>]]></description>
			<content:encoded><![CDATA[<p>One of the best renditions I&#8217;ve heard of Yellow Submarine.</p>
<p><a href="http://journal.ryanmccue.info/link/silverchair-covers-yellow-submarine/">[Permalink]</a></p>]]></content:encoded>
			<wfw:commentRss>http://journal.ryanmccue.info/link/silverchair-covers-yellow-submarine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Typography Is Important</title>
		<link>http://www.techmic.com/magazine/issue-1/typography-is-important</link>
		<comments>http://journal.ryanmccue.info/link/typography-is-important/#comments</comments>
		<pubDate>Thu, 15 Apr 2010 12:22:25 +0000</pubDate>
		<dc:creator>Ryan McCue</dc:creator>
		
		<guid isPermaLink="false">http://journal.ryanmccue.info/link/</guid>
		<description><![CDATA[A crash course to using typography. This is going in my folder with Five Simple Steps.<p><a href="http://journal.ryanmccue.info/link/typography-is-important/">[Permalink]</a></p>]]></description>
			<content:encoded><![CDATA[<p>A crash course to using typography. This is going in my folder with <a href="http://www.fivesimplesteps.co.uk/">Five Simple Steps</a>.</p>
<p><a href="http://journal.ryanmccue.info/link/typography-is-important/">[Permalink]</a></p>]]></content:encoded>
			<wfw:commentRss>http://journal.ryanmccue.info/link/typography-is-important/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Campus Notes Version Two</title>
		<link>http://getcampusnotes.com/</link>
		<comments>http://journal.ryanmccue.info/link/campus-notes-version-two/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 08:25:45 +0000</pubDate>
		<dc:creator>Ryan McCue</dc:creator>
		
		<guid isPermaLink="false">http://journal.ryanmccue.info/link/</guid>
		<description><![CDATA[Jim Whimpey has just announced Campus Notes has gone completely free for all users. I&#8217;ve been using it for a while in the free mode, and now that the number of notes is no longer limited, it&#8217;ll definitely be replacing Google Docs for the majority of my documents.<p><a href="http://journal.ryanmccue.info/link/campus-notes-version-two/">[Permalink]</a></p>]]></description>
			<content:encoded><![CDATA[<p>Jim Whimpey has just announced Campus Notes has gone completely free for all users. I&#8217;ve been using it for a while in the free mode, and now that the number of notes is no longer limited, it&#8217;ll definitely be replacing Google Docs for the majority of my documents.</p>
<p><a href="http://journal.ryanmccue.info/link/campus-notes-version-two/">[Permalink]</a></p>]]></content:encoded>
			<wfw:commentRss>http://journal.ryanmccue.info/link/campus-notes-version-two/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

