<?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>Robert Accettura&#039;s Fun With Wordage &#187; Rants</title>
	<atom:link href="http://robert.accettura.com/blog/category/rants/feed/" rel="self" type="application/rss+xml" />
	<link>http://robert.accettura.com</link>
	<description>Robert Accettura&#039;s Personal Blog on Web Development and Tech</description>
	<lastBuildDate>Sat, 20 Mar 2010 01:51:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<atom:link rel='hub' href='http://robert.accettura.com/?pushpress=hub'/>
<cloud domain='robert.accettura.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
		<item>
		<title>Object-Oriented Masturbation</title>
		<link>http://robert.accettura.com/blog/2008/12/16/object-oriented-masturbation/</link>
		<comments>http://robert.accettura.com/blog/2008/12/16/object-oriented-masturbation/#comments</comments>
		<pubDate>Wed, 17 Dec 2008 02:08:22 +0000</pubDate>
		<dc:creator>Robert</dc:creator>
				<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Rants]]></category>
		<category><![CDATA[annoying]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[oop]]></category>

		<guid isPermaLink="false">http://robert.accettura.com/?p=2216</guid>
		<description><![CDATA[Doing some research for an upcoming installment of an infamous series of blog posts (to be released at an undetermined date) I&#8217;ve come to notice this annoyance.  In general I like object-oriented programming.  I think it allows you to take a complicated problem and produce simple, more reusable and easier to maintain code. [...]]]></description>
			<content:encoded><![CDATA[<p>Doing some research for an upcoming installment of an infamous series of blog posts (to be released at an undetermined date) I&#8217;ve come to notice this annoyance.  In general I like object-oriented programming.  I think it allows you to take a complicated problem and produce simple, more reusable and easier to maintain code.  Assuming the programmer is sane individual, and that sometimes is a leap of faith. </p>
<p>I&#8217;m not sure if there are programmers who feel the need to complicate things just for the sake of showing off (oh, look at me!), or if they legitimately don&#8217;t know any other way.  I suspect a little of both.  Perhaps the programmer thought it was possible the code would grow in complexity in the future, and just wanted to prepare in advance.  I don&#8217;t know.  But it annoys me.  </p>
<p>I consider this abuse of Object-oriented programming to be <strong>Object-oriented masturbation</strong> since the only one who gets any enjoyment out of it is the developer who does it.  Here&#8217;s an slightly exaggerated (though not far off) example of Object-oriented masturbation typical of what I&#8217;ve seen many times before:</p>
<h4>Objective</h4>
<p>Sum two numbers and print the result in the format &#8220;The answer is: X&#8221; where X is the sum of the two numbers.</p>
<h4>Correct (sane) Answer</h4>
<pre>

// This is the simple, obvious answer
function sum(x,y){
	document.write('The answer is: ' + (x+y));
}

// To run:
sum(1,1);
</pre>
<p>Arguably, you could do the math and store in a variable if you are squeamish to doing math in any line containing an output method.   Regardless, this is dead obvious and simple.  And yes, this technically still does use OOP since it uses <code>document.write()</code>.</p>
<h4>Insane (masturbatory) Answer</h4>
<pre>

function MathLib(){
	this.answer = null;
}

MathLib.prototype.sum = function (x,y){
	this.answer = x + y;
}

MathLib.prototype.getAnswer = function(){
	return this.answer;
}

function Printer(){
	this.preText = '';
}

Printer.prototype.setPreText = function(str){
	this.preText = str;
}

Printer.prototype.out = function (str){
	document.write(this.preText + str);
}

// To run
var math = new MathLib();
var print = new Printer();
math.sum(1,1);
print.setPreText('The answer is: ');
print.out(math.answer);
</pre>
<p>I did the exact same thing in 1 logical line of code (3 if you include the function itself) up above.  What was gained from the object-oriented design?  I argue nothing.  Rewriting the first example would take a minute should something need changing.  If there were a need to localize that string, I could pull it out and either make that a 3rd parameter, or some global string the function can use.  There&#8217;s no benefit here.  This is over engineering.  There&#8217;s nothing truly reusable here.  The closest is the <code>Printer.out()</code> method, and in reality it&#8217;s a wrapper for <code>document.write()</code>.</p>
<p>The bonus joke is that the object-oriented implementation is significantly slower.</p>
<pre>
Run 1: 0.0266, 0.0451
Run 2: 0.0314, 0.0464
Run 3: 0.0329, 0.0462
Run 4: 0.0268, 0.0468
Run 5: 0.0274, 0.0475
Avg: 0.02902, 0.0464
</pre>
<p>The first example is also 62.5% faster in Firefox 3.0.4 since the all that overhead is gone.  If you have firebug installed you can check that out <a href="http://robert.accettura.com/wp-content/uploads/2008/12/object.html">here</a>.</p>
<blockquote><p>
<strong>object-oriented masturbation</strong><br />
<em>ob-jikt | o·ri·ent-ed | mas⋅tur⋅ba⋅tion</em></p>
<ol>
<li>the stimulation or manipulation of one&#8217;s own ego by way of using object-oriented code in places where it has no advantage instead resulting in unnecessary complication and bloat.</li>
</ol>
</blockquote>
<p>If your guilty of doing this, please cut it out.  It&#8217;s annoying.  Thank you.</p>
<p>No I will not single out links to the pages that inspired this, but rest assured it litters the web.
<div id="rja_commentCountImage"><a href="http://robert.accettura.com/?p=2216#comments"><img src="http://robert.accettura.com/wp-content/commentCount/2008/12/6609a9a.gif" alt="Comment Count" style="border:0;" /></a></div>
]]></content:encoded>
			<wfw:commentRss>http://robert.accettura.com/blog/2008/12/16/object-oriented-masturbation/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Tracking Packages With RSS</title>
		<link>http://robert.accettura.com/blog/2008/08/30/tracking-packages-with-rss/</link>
		<comments>http://robert.accettura.com/blog/2008/08/30/tracking-packages-with-rss/#comments</comments>
		<pubDate>Sun, 31 Aug 2008 03:51:07 +0000</pubDate>
		<dc:creator>Robert</dc:creator>
				<category><![CDATA[Rants]]></category>
		<category><![CDATA[dhl]]></category>
		<category><![CDATA[fedex]]></category>
		<category><![CDATA[RSS]]></category>
		<category><![CDATA[shipping]]></category>
		<category><![CDATA[ups]]></category>
		<category><![CDATA[usps]]></category>

		<guid isPermaLink="false">http://robert.accettura.com/?p=1901</guid>
		<description><![CDATA[What will it take for USPS, FedEx, DHL, and the USPS to offer RSS feeds to track packages.  It seems like such a natural idea.  Yet none have implemented the feature themselves.  It appears the USPS is trying to modernize their image, but still no RSS tracking of packages.  
There are [...]]]></description>
			<content:encoded><![CDATA[<p>What will it take for USPS, FedEx, DHL, and the USPS to offer RSS feeds to track packages.  It seems like such a natural idea.  Yet none have implemented the feature themselves.  It appears the USPS is trying to <a href="http://www.betanews.com/article/Coming_to_a_webisode_near_you_the_US_Postal_Service/1219323363">modernize their image</a>, but still no RSS tracking of packages.  </p>
<p>There are several third party sites out there that do this, but to me that&#8217;s just asking for trouble since:</p>
<ol>
<li>What are they doing with my info?  Is this really secure to use a stranger as a middle man?</li>
<li>Screen scraping can be unreliable and break.  I like reliability.</li>
</ol>
<p>It&#8217;s not that complicated to build, it&#8217;s essentially a different template on an existing system.  I&#8217;d bet they even have it since many large retailers show tracking info within their order status pages.  They just don&#8217;t make it available to consumers.</p>
<p>Am I really the only one who wants this?
<div id="rja_commentCountImage"><a href="http://robert.accettura.com/?p=1901#comments"><img src="http://robert.accettura.com/wp-content/commentCount/2008/08/c1f5706.gif" alt="Comment Count" style="border:0;" /></a></div>
]]></content:encoded>
			<wfw:commentRss>http://robert.accettura.com/blog/2008/08/30/tracking-packages-with-rss/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rob Rants: Cell Phones</title>
		<link>http://robert.accettura.com/blog/2005/04/20/rob-rants-cell-phones/</link>
		<comments>http://robert.accettura.com/blog/2005/04/20/rob-rants-cell-phones/#comments</comments>
		<pubDate>Thu, 21 Apr 2005 01:54:28 +0000</pubDate>
		<dc:creator>Robert</dc:creator>
				<category><![CDATA[In The News]]></category>
		<category><![CDATA[Rants]]></category>
		<category><![CDATA[annoy]]></category>
		<category><![CDATA[cell-phones]]></category>
		<category><![CDATA[rant]]></category>

		<guid isPermaLink="false">http://robert.accettura.com/archives/2005/04/20/rob-rants-cell-phones/</guid>
		<description><![CDATA[I&#8217;ve discussed this before, but with a recent new study it&#8217;s appropriate to rant.  So I bring you another installation of &#8220;Rob Rants&#8221;.
First of all, of course many conversations are faked.  We all knew that for a long time.  How did we know that?  Because only a handful of people are [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve discussed this <a href="http://robert.accettura.com/blog/2004/01/20/im-not-alone/">before</a>, but with a recent <a href="http://www.cbsnews.com/stories/2005/04/20/opinion/garver/main689651.shtml">new study</a> it&#8217;s appropriate to rant.  So I bring you another installation of &#8220;Rob Rants&#8221;.</p>
<p>First of all, of course many conversations are faked.  We all knew that for a long time.  How did we know that?  Because only a handful of people are actually important.  The rest are as unimportant as you or I.  Did anyone really expect me to believe I&#8217;m the only one not making multi-billion dollar deals on the street?  Some people act like they have more important business than the president.  Yea, you didn&#8217;t fool me for a minute.</p>
<p>Second of all, we really need a law against using cell phones in some places.  It seems way to many people <em>want</em> others to hear their conversations.  Lets get this strait:  I don&#8217;t care what you did at work, how good/bad your kids are, what you plan to do this weekend or tonight, why your upset/happy, or what your doing for dinner.  Got it?  I don&#8217;t care.  Nor does anyone else around you.</p>
<p>And that goes for those who leave their annoying phones on their annoying ring tones in places where they shouldn&#8217;t be.  Early in the morning on the train nobody wants to hear your phone&#8217;s stupid ring tone.  It&#8217;s not cute, it&#8217;s not cool.  It&#8217;s annoying.  Same goes with in the middle of class, at church, at the theater, etc.  Put it on vibrate and put your phone in your pocket.  People who violate this social rule the most are into self gratification without regard for others anyway, so perhaps they will enjoy that.</p>
<p>Oh yea.  Just because you put your hand to your face doesn&#8217;t make it less annoying.  Your hand doesn&#8217;t insulate against sound.  It just blocks your moronic face.  If there&#8217;s anything more annoying than an idiot in a mindless conversation on the phone, it&#8217;s an idiot talking on the phone with their hand in front of their face thinking their hand makes a phone booth.  Well guess what, it doesn&#8217;t.  You just look stupid.  It&#8217;s even more stupid when your hand gets tired and you switch hands.</p>
<p>And I&#8217;d like to address one more thing.  People who like to talk dirty or semi-dirty on the phone.  You perverts who think it will impress the people around you to talk dirty.  Well get a life, it doesn&#8217;t work.  It&#8217;s doing the complete opposite.  We don&#8217;t care what you plan to do after your date, and we don&#8217;t care about what you did with your significant other last night.  It&#8217;s gross, repulsive and just obnoxious.  And of course we all know there&#8217;s a 95% chance that there&#8217;s nobody on the other end.  So your literally talking to your hand.  Which is rather appropriate as your hand is likely the partner your talking about.  Got that <a href="http://en.wikipedia.org/wiki/Casanova">Casanova</a>?</p>
<p>So put your cell phone away and shut up.  We don&#8217;t care.  Your not important, your not special, your not interesting.  Unless your in the tabloids every week, odds are absolutely nobody cares about your personal life or sex life.  So don&#8217;t bother sharing it.  We don&#8217;t care.  So shut up, and get a life.
<div id="rja_commentCountImage"><a href="http://robert.accettura.com/archives/2005/04/20/rob-rants-cell-phones/#comments"><img src="http://robert.accettura.com/wp-content/commentCount/2005/04/882af55.gif" alt="Comment Count" style="border:0;" /></a></div>
]]></content:encoded>
			<wfw:commentRss>http://robert.accettura.com/blog/2005/04/20/rob-rants-cell-phones/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Rob Rants: Christmas Commercials</title>
		<link>http://robert.accettura.com/blog/2004/12/13/rob-rants-christmas-commercials/</link>
		<comments>http://robert.accettura.com/blog/2004/12/13/rob-rants-christmas-commercials/#comments</comments>
		<pubDate>Tue, 14 Dec 2004 03:51:53 +0000</pubDate>
		<dc:creator>Robert</dc:creator>
				<category><![CDATA[Rants]]></category>
		<category><![CDATA[advertising]]></category>
		<category><![CDATA[officemax]]></category>
		<category><![CDATA[old-navy]]></category>

		<guid isPermaLink="false">http://robert.accettura.com/archives/2004/12/13/rob-rants-christmas-commercials/</guid>
		<description><![CDATA[And now to start one of the new categories here, a &#8220;Rob Rants&#8221;.  We&#8217;ll start with Christmas Commercials.
Best Of
Rubber Band Man (OfficeMax) &#8211; This is a great example of how cool an advertisement can be.  Retro, classy, catchy, fun.  I can&#8217;t get enough of this one.  It&#8217;s fun.  And I [...]]]></description>
			<content:encoded><![CDATA[<p>And now to start one of the new categories here, a &#8220;Rob Rants&#8221;.  We&#8217;ll start with Christmas Commercials.</p>
<h3>Best Of</h3>
<p><img src="http://robert.accettura.com/wp-content/uploads/2004/12/20041213_rant_officemax.jpg" alt="OfficeMax" class="alignright" /><a href="http://rubberbandman.officemax.com/">Rubber Band Man</a> (OfficeMax) &#8211; This is a great example of how cool an advertisement can be.  Retro, classy, catchy, fun.  I can&#8217;t get enough of this one.  It&#8217;s fun.  And I don&#8217;t even like OfficeMax.  I&#8217;ll miss this ad after the holidays.  It&#8217;s one of the few tunes that doesn&#8217;t get on my nerves.  Not to mention the animation is pretty cool.  It&#8217;s also not overplayed.  I see it maybe a few times a week, not bad.  I can live with this one.  </p>
<p><a href="http://www.virginmobileusa.com/promo/Christmas2004FourPhone.do">Chrismahanukwanzakah</a> (Virgin Mobile)  &#8211;   This commercial isn&#8217;t bad.  I don&#8217;t mind watching it, it&#8217;s catchy (it even sticks in your head), it&#8217;s not overdone, it&#8217;s funny.  I&#8217;ve yet to find anyone who didn&#8217;t get a good laugh from it.  This ad really did make this Chrismahanukwanzakah season the best one ever!  Also not overplayed.  I think this is one I&#8217;ll remember years from now, since it&#8217;s was creative.  Hopefully they will bring it back next year.  Kind of wish they did more with props though.  I love how they combined all the holidays into 1 lump, but they didn&#8217;t really combine decorations and props.  Would be interesting to see a MenorahTree <img src='http://robert.accettura.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' /> , I&#8217;m sure there are many other wacky things people can come up with&#8230; perhaps a <a href="http://www.fark.com">Fark</a> photoshop contest?</p>
<h3>Worst Of</h3>
<p><img src="http://robert.accettura.com/wp-content/uploads/2004/12/20041213_rant_oldnavy.jpg"  alt="Old Navy" class="alignright" /><strong><a href="http://www.oldnavy.com">Old Navy Caroler&#8217;s</a></strong> (Old Navy) &#8211; I&#8217;ll admit they all make great models I&#8217;m sure, and perhaps they even have vocal talent (who knows if there voices are real in the commercial or done Ashley Simpson style)&#8230; but this ad is by far the most annoying ad of the year, and just when one ends, they put on yet another one.  They apparently decided doing it on TV wasn&#8217;t enough, so they decided to <a href="http://www.prnewswire.com/cgi-bin/stories.pl?ACCT=109&#038;STORY=/www/story/12-13-2004/0002628178&#038;EDATE=">pollute Time Square</a> with this one.  Not to mention this article takes commercializing Christmas to a whole new low.  Sorry, but this ad gets the award for most annoying commercial of Holiday Season 2004.  Please Old Navy, if you love America, you&#8217;ll dump this <a href="http://secure.www.oldnavy.com/asp/promo/3844_carolers.asp">campaign</a> in the sea.</p>
<h3>So what are your favorites/least favorites?</h3>
<p>Disagree?  Agree?  Want more ads with Monkey&#8217;s in Santa costumes?  Leave a comment.
<div id="rja_commentCountImage"><a href="http://robert.accettura.com/archives/2004/12/13/rob-rants-christmas-commercials/#comments"><img src="http://robert.accettura.com/wp-content/commentCount/2004/12/2402a83.gif" alt="Comment Count" style="border:0;" /></a></div>
]]></content:encoded>
			<wfw:commentRss>http://robert.accettura.com/blog/2004/12/13/rob-rants-christmas-commercials/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Are you stupid?  I ask the television.</title>
		<link>http://robert.accettura.com/blog/2003/09/29/are-you-stupid-i-ask-the-television/</link>
		<comments>http://robert.accettura.com/blog/2003/09/29/are-you-stupid-i-ask-the-television/#comments</comments>
		<pubDate>Tue, 30 Sep 2003 04:16:21 +0000</pubDate>
		<dc:creator>Robert</dc:creator>
				<category><![CDATA[In The News]]></category>
		<category><![CDATA[Rants]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[rant]]></category>
		<category><![CDATA[stupid]]></category>

		<guid isPermaLink="false">http://robert.accettura.com/archives/2003/09/29/are-you-stupid-i-ask-the-television/</guid>
		<description><![CDATA[If your not in the mood for a rant on society&#8230; Skip this post.
[rant]
This wasn&#8217;t the article I was looking for (looking for one I saw on TV the other day), but it will suffice for this rant.  Why are people so stupid?  I don&#8217;t know who is dumber.  This article is [...]]]></description>
			<content:encoded><![CDATA[<p><i>If your not in the mood for a rant on society&#8230; Skip this post.</i></p>
<p>[rant]<br />
This wasn&#8217;t the <a href="http://www.news-journal.com/news/newsfd/auto/feed/news/2003/09/28/1064722502.19830.8138.2601.html">article</a> I was looking for (looking for one I saw on TV the other day), but it will suffice for this rant.  Why are people so stupid?  I don&#8217;t know who is dumber.  This article is about several groups of stupid people butting heads.  All very thick skulls.  It&#8217;s like throwing two rocks in the air, and having them impact in midair.  It&#8217;s a waste of time that accomplishes nothing.  Of course that&#8217;s exactly what this post will do.  But it gets some frustration off my chest.  </p>
<ol>
<li>Why must people drink in <em>giant</em> parties?  If your going to do something stupid.. At least keep it small scale.  You just have to wonder how bright someone is when they get caught.  It takes a real lack of intelligence to get caught.  Homes aren&#8217;t monitored.  If they create enough of a disturbance to summon police&#8230; You must have done something really dumb.  If your still there when the cops get there, not intelligent enough to leave. You deserve it.  If you caused it, you deserved it.</li>
<li>Why care so much?  It&#8217;s going to happen anyway.</li>
<li>Are parents retarded?  Seriously.  Are they?  Read the article.  The math formula reads something like:
<pre>
$parent = $stupid +1;
</pre>
</li>
</ol>
<p>Just can&#8217;t help but question everyone.  I can&#8217;t tell who is stupider.  </p>
<p>That brings me back to the ultimate question:  Why put tags on blow dryers that say to keep it away from water?  The people who have been saved by these tags go on to be the people I discuss up above.</p>
<p>If your going to drink.  Do it responsibly.  Or just don&#8217;t do it.  It&#8217;s pretty freaking dumb if the police are aware of something going on.  Nobody goes around sniffing drinks in private homes.</p>
<p>[/rant]
<div id="rja_commentCountImage"><a href="http://robert.accettura.com/archives/2003/09/29/are-you-stupid-i-ask-the-television/#comments"><img src="http://robert.accettura.com/wp-content/commentCount/2003/09/425d4d7.gif" alt="Comment Count" style="border:0;" /></a></div>
]]></content:encoded>
			<wfw:commentRss>http://robert.accettura.com/blog/2003/09/29/are-you-stupid-i-ask-the-television/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
