Comparing and Loops

This is a post in my series “Road to Xcode.” I am currently reading Become An Xcoder by Bert Altenburg, Alex Clarke and Philippe Mougin.

06: Conditional Statements

Pretty short chapter introducing me to if() and if() else() statements. I have encountered these in my beginnings of PHP and so understanding the comparisons and output of each statement was easy enough. Of course with comparison statements I also was shown some of the comparison operators like ==, >= and so on.

07: Repeating Statements for a While

I basically learned about loops here. I got turned upside down seeing for() referred to as a “repeating statement” at first. Perhaps I haven’t had enough coffee to make better connections. I admit that I for some reason get more confused with while() and do() while() than I should, seeing as they are the simpler forms (basically) of for(). Each has their own use depending on the situation. Polyvector was quick to give me an example when calling for rows in MySQL using PHP.

I would have gone on with my reading but the next chapter I get to make my first app (strictly by example of course) with a graphical user interface.

4 Responses to “Comparing and Loops”


  1. 1 parsnipper

    I wish that I had more time & energy. This stuff looks cool, and I would love to converse with you & PolyVector with a bit more understanding. For now, though, I will have to live vicariously.

  2. 2 MegaNice9

    It’s exciting to me to watch you go through this learning process. You seem to learn without much difficulty. I always read programming books with a ape-like expression on my face lol.

  3. 3 NetOperator Wibby

    I’ve been reading up on your progress learning X-Code since you started but apparently, the library I go to for wifi is a known spam network. :/ Anyhoo, good luck with your GUI program tomorrow!

  4. 4 Skunkie

    I am glad everyone finds my little journal entries palatable. I’m going to continue these little snippets and they should get more interesting as I work my way from compiling and tweaking examples to my own little test tools. I do plan on making my own (simple) creations available for download with source as I go.

    NetOperator Wibby, yeah sorry about that. I think my spam protection system has a IP based bot detection somewhere along the line. So once in awhile it does think a human commenter is part of a spam bot network.

Leave a Reply