<?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>James P. Wright &#187; Programming</title>
	<atom:link href="http://www.jamespwright.com/blog/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jamespwright.com/blog</link>
	<description>The musings and stylings of James P. Wright</description>
	<lastBuildDate>Mon, 30 Nov 2009 16:37:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Coding for the iPhone</title>
		<link>http://www.jamespwright.com/blog/2009/10/coding-for-the-iphone/</link>
		<comments>http://www.jamespwright.com/blog/2009/10/coding-for-the-iphone/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 05:36:22 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.jamespwright.com/blog/2009/10/coding-for-the-iphone/</guid>
		<description><![CDATA[I have been working on learning to code for the iPhone and it is an interesting and challenging experience.
I have been primarily a .Net Developer for my entire career.  I have worked with C-Based languages, but mainly that was c#, which is quite advanced as far as C-Based languages go.
What I am finding the [...]]]></description>
			<content:encoded><![CDATA[<p>I have been working on learning to code for the iPhone and it is an interesting and challenging experience.</p>
<p>I have been primarily a .Net Developer for my entire career.  I have worked with C-Based languages, but mainly that was c#, which is quite advanced as far as C-Based languages go.<br />
What I am finding the most difficult though are the things that feel a tad archaic to me.  For example, nearly every language I&#8217;ve ever worked with used the period key &#8220;.&#8221; to access methods and properties of an object.  It&#8217;s very strange for me have to access those items by placing the item within a set of brackets.</p>
<p>For those that aren&#8217;t aware, in c# where you might type something like:</p>
<div class="codecolorer-container csharp default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="csharp codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #0600FF;">this</span>.<span style="color: #0000FF;">title</span> <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;Hello World!&quot;</span><span style="color: #008000;">;</span></div></div>
<p>in Objective-C it would be:</p>
<div class="codecolorer-container c default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="c codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&#91;</span>self setTitle<span style="color: #339933;">:</span>@<span style="color: #ff0000;">&quot;Hello World!&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span></div></div>
<p>That isn&#8217;t the only place where Objective-C feels strange though.  For one thing, the language is so descriptive that it makes me feel uncomfortable at times with how much information I&#8217;m seeing in method and property names.  For example:  numberOfRowsInSection, viewDidLoad, viewDidUnload, didReceiveMemoryWarning and more.</p>
<p>Something about the way that Objective-C deals with naming conventions feels right, but so different from what I&#8217;m used to seeing.  Maybe I just haven&#8217;t been seeing properly written code before this.  Who knows.</p>
<p>The biggest hurdle though?</p>
<p>Pointers.</p>
<p>Apparently I come from a cushy programming world where memory management is handled for me.  I understand memory management (if you aren&#8217;t using it anymore, get rid of it) but I am not quite sure where all the pitfalls of pointers are quite yet, nor what all the syntax to do with them means.  I NEED to understand WHY things happen before I fully understand what I&#8217;m doing.</p>
<p>I&#8217;m currently working on the excellent series of iPhone tutorials over at <a href="http://www.icodeblog.com">iCodeBlog.com</a>.  I highly recommend them.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jamespwright.com/blog/2009/10/coding-for-the-iphone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
