<?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>Angie's Blog &#187; Programming</title>
	<atom:link href="http://angie.p1b.us/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://angie.p1b.us</link>
	<description>Because I Can</description>
	<lastBuildDate>Mon, 02 Nov 2009 08:23:17 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Company-Y webcomic</title>
		<link>http://angie.p1b.us/2009/11/02/company-y-webcomic/</link>
		<comments>http://angie.p1b.us/2009/11/02/company-y-webcomic/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 07:58:21 +0000</pubDate>
		<dc:creator>Angie</dc:creator>
				<category><![CDATA[1969 Mustang Repair]]></category>
		<category><![CDATA[Company-Y]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Mustang Repair]]></category>
		<category><![CDATA[webcomic]]></category>

		<guid isPermaLink="false">http://angie.p1b.us/?p=184</guid>
		<description><![CDATA[I apologize for not updating more often.  The Mustang is garaged now because of an over-heating issue that caused my heater core and various other weak points to start leaking.  The dash wiring never got figured out either and I&#8217;m considering making a serious project for myself by getting a Painless wiring harness and putting [...]]]></description>
			<content:encoded><![CDATA[<p>I apologize for not updating more often.  The Mustang is garaged now because of an over-heating issue that caused my heater core and various other weak points to start leaking.  The dash wiring never got figured out either and I&#8217;m considering making a serious project for myself by getting a Painless wiring harness and putting that in to see if it solves any problems.</p>
<p>Programming also isn&#8217;t going as expected.  I&#8217;m straight up just not meant for it.  Ruby, Python, PHP, CSS have all been tried and cast aside.</p>
<p>A hobby I have picked up and have been enjoying is drawing a webcomic.  <a href="http://company.y.com" target="_self">Company-Y</a> was created by my husband and I late one night at a cafe down in Austin.  It&#8217;s primarily a dramatization of our lives with a flare for the geeky and bizarre.</p>
<p>Check it out! <a href="http://company-y.com">Company-Y</a> comes complete with an <a href="http://company-y.com/feed/" target="_self">RSS feed</a>, <a href="http://company-y.com/forum/">a forum</a> and two <a href="http://twitter.com/">twitter</a> accounts &#8211; @<a href="http://twitter.com/Awesome_Avery">awesome_avery</a> and @<a href="http://twitter.com/Steven_Dev">steven_dev</a> &#8211; that we will gladly be-friend you with.</p>
<p>We update every MWF and are not opposed to throwing in some extras as time permits.</p>
<p><img class="alignleft size-large wp-image-186" title="2009-09-14-Batman-Returns-Again" src="http://angie.p1b.us/wp-content/uploads/2009/11/2009-09-14-Batman-Returns-Again-671x1024.png" alt="2009-09-14-Batman-Returns-Again" width="671" height="1024" /></p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fangie.p1b.us%2F2009%2F11%2F02%2Fcompany-y-webcomic%2F';
  addthis_title  = 'Company-Y+webcomic';
  addthis_pub    = 'misterpib';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://angie.p1b.us/2009/11/02/company-y-webcomic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Bushel of Onions and my class notes</title>
		<link>http://angie.p1b.us/2009/02/18/a-bushel-of-onions-and-my-class-notes/</link>
		<comments>http://angie.p1b.us/2009/02/18/a-bushel-of-onions-and-my-class-notes/#comments</comments>
		<pubDate>Wed, 18 Feb 2009 06:29:06 +0000</pubDate>
		<dc:creator>Angie</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[class methods]]></category>
		<category><![CDATA[class variables]]></category>
		<category><![CDATA[constants]]></category>
		<category><![CDATA[global variables]]></category>
		<category><![CDATA[instance variables]]></category>
		<category><![CDATA[methods]]></category>
		<category><![CDATA[methods arguments]]></category>
		<category><![CDATA[numbers]]></category>
		<category><![CDATA[strings]]></category>
		<category><![CDATA[symbols]]></category>
		<category><![CDATA[variables]]></category>
		<category><![CDATA[Why's (poignant) guide to Ruby]]></category>

		<guid isPermaLink="false">http://angie.p1b.us/?p=152</guid>
		<description><![CDATA[Poignant:
poign⋅ant
[poin-yuh nt, poi-nuh-nt]
- adjective
1.) Keenly distressing to the feelings: poignant regret 
2.) Keen or strong in mental appeal: a subject of poignant interest
3.) Affecting or moving the emotions: a poignant scene
4.) Pungent to smell: poignant cookings oders
(Dictionary.com)
Can you see where this is headed yet?
Why&#8217;s (poignant) guide to Ruby. 
I&#8217;m taking a break from the tutorial [...]]]></description>
			<content:encoded><![CDATA[<h2><strong>Poignant</strong>:</h2>
<h3 class="me">poign⋅ant</h3>
<p>[<strong>poin</strong>-<em>yuh</em> nt, poi-n<em>uh</em>-nt]</p>
<p>- adjective</p>
<p>1.) Keenly distressing to the feelings: <em>poignant regret </em></p>
<p>2.) Keen or strong in mental appeal: <em>a subject of poignant interest</em></p>
<p>3.) Affecting or moving the emotions: <em>a poignant scene</em></p>
<p>4.) Pungent to smell: <em>poignant cookings oders</em></p>
<h5><em>(Dictionary.com)</em></h5>
<p>Can you see where this is headed yet?</p>
<p><a href="http://qa.poignantguide.net/chapter-1.html" target="_blank">Why&#8217;s (poignant) guide to Ruby. </a></p>
<p>I&#8217;m taking a break from the tutorial and am now trying to read up a little on the language.  Since a dry manual won&#8217;t cut it in this case, I was told to try Why&#8217;s (poignant) guide to Ruby, complete with comics and onions!  I am honestly considering trying the onion, just to get the full effect, y&#8217;know.</p>
<p>I&#8217;ve made it through the first two chapters of the online book and all I have to say is, this guy is crazy.  A cat who talks like the Daddy Alligator from <a href="http://comics.com/pearls_before_swine/" target="_blank">Pearls Before Swine</a>, pixelly rockers from the 80&#8217;s, or a bad computer game, or both, and an adventurous small mouse.  And this teaches me&#8230;what exactly?  I read on to find out..</p>
<p>Alright! Onions!  Sweet!  But is that all&#8230;</p>
<p>Dogs and baby teeth?  I&#8217;m seriously starting to wonder about this guy..and I&#8217;m not even to the third chapter yet..</p>
<p>Lies! There is no Vitamin R! And if there is, I demand a restructuring of the education system!  Hmm..is it water or fat soluble?  What would you take with it to enhance absorption?  Let&#8217;s just say it goes great with calcium and vitamin C for now.  Oh, and I would like to point out that I can now already nod intelligently during Paul&#8217;s conversations to himself.  I can actually visualize some of the code he&#8217;s talking about when he&#8217;s weighing the pros and cons of his new language.  This, thanks to Ruby&#8217;s interactive hodge-podge of madness-inducing keyboard prompts.  Ooo, clear thinking, I like the sound of that, too.</p>
<p>Ruby was apparently created on my little sister&#8217;s birthday, too.  When she was turning 3 years old.  Note to self: call her on her birthday this year.</p>
<p>Oh, okay.  Apparently <em>now</em> the book starts.  That was just the..intro&#8230;</p>
<p>I&#8217;m intrigued by the idea of this language being a form of <em>coderspeak</em> instead of a <em>computer language</em>.  This gives me hope that instead of rewiring my brain to accept a foreign language (very hard, very unlikely), I can just rewire my thoughts.  Same language, different order.  Lets see.</p>
<blockquote><p><code><span class="ident">exit</span> <span class="keyword">unless</span> <span class="punct">"</span><span class="string">restaurant</span><span class="punct">".</span><span class="ident">include?</span> <span class="punct">"</span><span class="string">aura</span><span class="punct">"</span></code></p></blockquote>
<p>So, code can ask questions.  Code can use minor English punctuation such as exclamation and question marks.  Ask a question in code, use a question mark within the code to identify where the question is taking place.  Almost like identifying where a fork in the road is with a sign (in case, y&#8217;know, you&#8217;ve missed your turn).  Is the color blue or red? (Sign) If blue, exit; if red, continue.</p>
<blockquote><p><code><span class="punct">['</span><span class="string">toast</span><span class="punct">',</span> <span class="punct">'</span><span class="string">cheese</span><span class="punct">',</span> <span class="punct">'</span><span class="string">wine</span><span class="punct">'].</span><span class="ident">each</span> <span class="punct">{</span> <span class="punct">|</span><span class="ident">food</span><span class="punct">|</span> <span class="ident">print</span> <span class="ident">food</span><span class="punct">.</span><span class="ident">capitalize</span> <span class="punct">}</span></code></p></blockquote>
<p>Ichi, ni, son.  Instead of referring to them by their individual names, we refer to them as a group.  This group is a group of numbers.  Want to do something to the entire group (of numbers)? Say that each of these are included in the group numbers then specify what it is you want to do to all the numbers.</p>
<p><strong><em>Variables</em></strong>: Letters, digits (1-9) and underscores.  Different from math&#8217;s variables that are numerical values given to letters.  X, Y &amp; Z are variables, with their numerical value changing from one equation to the next. 1, 2, 3 are constants with their numerical value always that of its face value.  How does ruby&#8217;s variables differ from mathematical variables?  Ruby&#8217;s variables are compiled together to create words or sequences that are recognizable and readable.  &#8220;A&#8221;, &#8220;P&#8221;, &#8220;L&#8221;, &#8220;E&#8221;, &#8220;S&#8221; &amp; &#8220;2&#8243; are variables but can be combined to form &#8220;2 apples.&#8221;  This to ruby is still considered a group of variables but is arranged in a way that we can understand what it is.  What good would code be if it couldn&#8217;t translate into our language?  It&#8217;s like teaching the computer english..</p>
<p>Not sure what I think about that explanation, moving ahead and will think more on it later.</p>
<p>&#8212;&#8212;-</p>
<p>Just as X can equal 2 in math, Ruby&#8217;s variables (when constructed into form we recognize) can equal a numerical value, too.  X=2, Apples=2.  Everywhere you use &#8220;X&#8221; in a given math equation, it equals two.  Everywhere you use &#8220;apples&#8221; in a given piece of code, it equals two.  Better, I like that more.</p>
<p>&#8212;&#8212;-</p>
<p><strong><em>Numbers</em></strong>: Here&#8217;s our equal to a constant in math.  Numbers are numbers are numbers.  &#8220;1&#8243; will always be one, &#8220;909&#8243; will always be nine-hundred and nine.  No commas when marking thousands.  Why no commas?  No idea, use underscores or count zeros but don&#8217;t use commas.  Check.  These numbers &#8220;can&#8221; start with a plus or minus sign.  Does this signify if the number is positive or negative?  Shouldn&#8217;t the positive be implied and the negative stated?  Can you do math in code, if so, how do you state &#8220;plus&#8221; and &#8220;minus&#8221; if the signs are already in use to signify positive and negative?</p>
<ul>
<li><em>Floats:</em> Interesting, I hope they explain these further.  A float can be either a number with a decimal point or scientific notation.  2.5 or MC^2.</li>
</ul>
<p><strong><em>Strings</em></strong>: Similar to variables.  Title=content.  Print &#8220;title&#8221; and a poem will appear.  The title is a shortened version of the poem.  Instead of typing out the poem every time you want to reference it, use the title instead.  Used in common English already.  The string portion refers to the poem portion.  The poem portion is enclosed in quotes to signify where the string (poem) starts and where it ends.  Also common English.</p>
<p>Title=Deja Vu</p>
<p><strong><em>String</em></strong> = &#8220;<span style="color: #000000;"><span><span style="color: #800000; font-size: small;"><span style="color: #000000;">Mirror, Mirror on the wall,<br />
Surly you do lie.<br />
Mirror, Mirror on the wall,<br />
We don’t see eye to eye.<br />
Mirror, Mirror by the stairs,<br />
Your image is surly haunting.<br />
Mirror, Mirror by the stairs,<br />
My self-esteem you’re taunting&#8230;&#8221;</span></span></span></span></p>
<p><span style="color: #000000;"><span><span style="color: #800000; font-size: small;"><span style="color: #000000;">Therefore</span> <span style="color: #000000;">D</span><span style="color: #000000;">eja_vu=&#8221;</span></span></span></span><span style="color: #000000;"><span><span style="color: #800000; font-size: small;"><span style="color: #000000;">Mirror, Mirror on the wall, Surly you do lie.  Mirror, Mirror on the wall, We don’t see eye to eye.  Mirror, Mirror by the stairs, Your image is surly haunting.  Mirror, Mirror by the stairs, My self-esteem you’re taunting&#8230;&#8221;</span></span></span></span></p>
<p><span style="color: #000000;"><span><span style="color: #800000; font-size: small;"><span style="color: #000000;"><strong><em>Symbols</em></strong>: Just like variables but with light-weight strings.  So, instead of printing that poem twice to prove a point, I could just say :deja_vu.  I&#8217;m guessing at least so far..</span></span></span></span><br />
<strong><em>Constants</em></strong>:  Also the same idea behind the mathematical constant but instead of being a number, it&#8217;s a Capitalized Word.  Can&#8217;t change a Constant in Ruby.  Once the Constant is set in Ruby, it stays like that for the entire piece of code.  Angie=&#8221;totally awesome chica.&#8221; Yeah, I like Constants already <img src='http://angie.p1b.us/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Good example used is the Empire State Building.  The Empire State Building doesn&#8217;t change, it doesn&#8217;t move.  You tell me where the Empire State Building is, and that&#8217;s where it&#8217;ll always be.  Unless Godzilla visits, then who know where that bad boy might end up.</p>
<p><em><strong>Methods</strong></em>: The code version of a verb.  Methods are attached to the end of variables and constants by a dot (a period).  So, Angie.jog.  Then, Angie.jog?</p>
<ul>
<li><em><strong>Method Arguments</strong></em>: This looks hopeful but what would I use to ask if Angie was jogging and then return what I was doing based on my heart rate?  <em>More on this later</em>.  Note: Argument=better thought of as extra information.  It&#8217;s not an actual he said, she said argument.  More like TMI.  <em>Method TMI</em>.  Something like favorite_book.read(25, :hot_chocolate).prepare_for_bed(30).sleep.  I asked Paul to proof-read this and he says it makes sense, but I think he&#8217;s lying.  Because it sure the hell doesn&#8217;t make sense to me.  Apparently there is understanding I&#8217;m still missing because he started babbling about functions and parameters and it making sense depending on what I set for each.  Naagghhh!  Must come back to methods arguments for better understanding.</li>
</ul>
<p><em><strong>Class Methods</strong></em>: Oh yah, not out of the woods yet.  So, here&#8217;s a side story.  Last month I went to Home Depot to get some new paint for our bedroom.  As I was choosing my paint and waiting for it to be mixed, a Home Depot Contractor Rep came up to Paul and I and asked us what we hated about our kitchen.  Well, don&#8217;t get me started.  How about the shape, or the color, or the size&#8230;well, he didn&#8217;t care about those things, he just wanted me to say the cabinets so he could sell me on a great promotion they have going on.  In reality, I don&#8217;t like the cabinets either, so I played along.  We set up an appointment for a designer to come out and show us samples of cabinets and counter tops.  We chose a warm honey oak to replace our white cabinets with and a silestone counter top to replace our laminate butcher block.  According to Ruby<em> </em>we <strong>cabinets::new(:oak)</strong> and <strong>countertop::new(:silestone)</strong> and <strong>bank_account::new(:empty)</strong> and <strong>home_depot_credit.acquired</strong>.</p>
<p><em>Angie.drink_beer.continue_ruby</em></p>
<p><em><strong>Global Variables</strong></em>: Okay, these look easy.  Something like, every household in America holds the ideal that $ford=&#8221;the one american manufacture that didn&#8217;t need to be bailed out cause they rock&#8221;</p>
<p>Or something like that <img src='http://angie.p1b.us/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Or how about $ford=&#8221;Angie&#8217;s favorite car manufacture&#8221; Basically, the string attached to a given variable is constant throughout the program.  $x will always equal 2 in this program.  Is $x=2 the same as X=2?</p>
<p><em><strong>Instance Variables: </strong></em>Use an &#8220;@&#8221;<em><strong> </strong></em>to<em><strong> </strong></em>describe an attribute about a variable/constant.  Angie@short.  Paul says maybe there&#8217;s a dot in there. Neither of us know, apparently I need to keep reading.  Their example of using the width of the front door is a little confusing to me, I would like to see them at least type it out so I can see if I&#8217;m missing any punctuation.  (Also, is it the width of the door or the width of the opening? Rough or finished? True or American? C&#8217;mon people, get your act together!)</p>
<p><em><strong>Class Variables: </strong></em>Dammit.  What?  I suspect that class methods and class variables have something do to with each other.</p>
<p>angie.distracted_by_sidebar(10, :tired_of_ruby).pet_cats.go_to_bed</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fangie.p1b.us%2F2009%2F02%2F18%2Fa-bushel-of-onions-and-my-class-notes%2F';
  addthis_title  = 'A+Bushel+of+Onions+and+my+class+notes';
  addthis_pub    = 'misterpib';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://angie.p1b.us/2009/02/18/a-bushel-of-onions-and-my-class-notes/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>The Bet</title>
		<link>http://angie.p1b.us/2009/02/02/the-bet/</link>
		<comments>http://angie.p1b.us/2009/02/02/the-bet/#comments</comments>
		<pubDate>Tue, 03 Feb 2009 01:20:29 +0000</pubDate>
		<dc:creator>Angie</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://angie.p1b.us/?p=127</guid>
		<description><![CDATA[Well, it&#8217;s not really a bet, but it sounded better as a headline.  Paul and I made a deal last week that I would dabble in his interests if he would try mine.  It sounds dirty until you take into account that he is an avid programmer and I&#8217;m a health guru.  It&#8217;s like mixing [...]]]></description>
			<content:encoded><![CDATA[<p>Well, it&#8217;s not really a bet, but it sounded better as a headline.  Paul and I made a deal last week that I would dabble in his interests if he would try mine.  It sounds dirty until you take into account that he is an avid programmer and I&#8217;m a health guru.  It&#8217;s like mixing black and white and hoping for a rainbow, but we&#8217;ll give it a shot.  Variety is the spice of life, right?</p>
<p>So, the details of &#8216;The Bet&#8217; go something like this.  Paul has agreed to put said-programmer body to use (read: loose weight and tone up) and I will exercise my nerdy muscle and take up programming.  I haven&#8217;t blogged in awhile but I knew this was going to be an experience that I couldn&#8217;t afford to forget.  It&#8217;s like getting your teeth extracted or dating a complete lunatic, you can&#8217;t afford to just lose that experience to memory!</p>
<p>It goes without saying that I&#8217;m a little lost at knowing where to start my endeavor so I asked Paul for some advice on which language to start with and how I should go about learning it.  He pointed me towards Ruby, a language which focuses on &#8220;simplicity and productivity,&#8221; (ruby-lang.org) making it one of the &#8220;easiest&#8221; (Paul) languages to start with.  I started at the <a href="http://www.ruby-lang.org/en/" target="_blank">Ruby</a> website and went straight to their Ruby tutorial that is interactive and runs in the browser.  Pretty easy so far, nothing to download and the step-by-step prompts make it so you can get right to the good stuff.</p>
<p>I started the tutorial this past Sunday while I was at work.  Between scrubbing the gym floor and greasing the weights, I sat down to prove my l33t hackzoring skillz to the world.  Needlessly to say, that tutorial had me stress-eating brownies from the break room and hunting down a coke from my co-workers cubby in no time.  I&#8217;m sure Ruby <em>is </em>one of the easiest languages to learn but the fact that I overlooked is that learning a new language, regardless of how focused you are on simplicity, is going to be a bitch!  What helped me gain some glimmer of understanding of the language is how Interactive Ruby used references to physical objects when explaining the relationships between&#8230;the things.  The things being the brackets, quotations, periods, bleeps, blops and bloops.  Other then that, I was at a loss.  When Interactive Ruby wasn&#8217;t proving my inadequacy at spelling under stress (&#8220;r&#8230;e..v..r&#8230;dammit! how do I spell &#8216;reverse&#8217;??), it was crashing.  Alright, I thought, I&#8217;ll just jump ahead in the lesson and hit &#8220;help 3.&#8221; Nope, lost a big chunk of understanding when looking through the summary.  Exclamations, square brackets, chaining, oh my!  This wasn&#8217;t working, I realized.  I could spit out what they told me to write, but I wasn&#8217;t understanding a lick of it.  I needed a list of rules to follow, a reference guild of commands to use, the ability the type traditionally.  You see, that&#8217;s going to be another one of my setbacks &#8211; I can&#8217;t type without looking at the keys.  Now, I&#8217;m not talking granny&#8217;s hunt-and-peck, I&#8217;m talking a crack-head on a hit kind of hunt-and-peck.  I use my left index and my right thumb and index and can blast through a sentence if I know what I&#8217;m going to type (45WPM if it&#8217;s completely new content), however, I don&#8217;t think this style of typing will get me very far when learning how to program.  Not only does &#8220;poem.to_a.reverse.join.mumbojumbo&#8221; look odd to me, but now I have to be staring at the screen as I type to make sure all the little bleeps and bloops are in their correct spots because I am miles away from being able to proof-read code to find which bracket or hyphen is misplaced.</p>
<p>Learning to properly type will be an adventure in of its self, though, so lets just focus on the programming for now.</p>
<p>In conclusion, my first day of &#8216;programming&#8217; was similar to any other first day of learning a new language.  Horrific, and I&#8217;m glad no one was around to watch my sanity crumble.  However, I do feel like I am a smidgen bit closer to earning my thick-rimmed glasses (hey, I&#8217;m blind, so sue me for being an impostor!) and I did enjoy the tutorial&#8217;s easy interface and guild lines, even if it takes me a couple days to finish it and even longer to understand it.  I am very hands-on and mechanical-minded so typing some gobbledygook and seeing it spit out jargon is a little hard for me to wrap my head around, but I&#8217;ll get there.</p>
<p>I hear &#8220;Hello World&#8221; makes it all worth it.</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fangie.p1b.us%2F2009%2F02%2F02%2Fthe-bet%2F';
  addthis_title  = 'The+Bet';
  addthis_pub    = 'misterpib';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://angie.p1b.us/2009/02/02/the-bet/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
