<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Worst class naming examples?</title>
	<atom:link href="http://michaelkimsal.com/blog/worst-class-naming-examples/feed/" rel="self" type="application/rss+xml" />
	<link>http://michaelkimsal.com/blog/worst-class-naming-examples/</link>
	<description>Web development and new media observations</description>
	<lastBuildDate>Mon, 08 Mar 2010 14:35:51 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Sebs</title>
		<link>http://michaelkimsal.com/blog/worst-class-naming-examples/comment-page-1/#comment-12665</link>
		<dc:creator>Sebs</dc:creator>
		<pubDate>Wed, 21 Nov 2007 11:05:19 +0000</pubDate>
		<guid isPermaLink="false">http://michaelkimsal.com/blog/?p=363#comment-12665</guid>
		<description>Mixing multi languages in Namings of classes, Methods and Variables.

HATEHATEHATE

Mixing multi languages in Namings of classes, Methods and Variables.

HATEHATEHATE

$meinPortal-&gt;addUser($aUsers);

where $aUsers is
[&#039;benutzername&#039;]
[&#039;passwort&#039;]

Name Database tables and cols even in english, so that fetch() and alike give you $myEnglishvarname[&#039;mykey&#039;] 


A very bad thing is using array key that consist not only of one key case. Example: 

$array[&#039;myKey&#039;]. This is prone to be a source of errors

It can get worse. 

1. A DB Table contains a serialized PHP array in $array[&#039;myserializeddata&#039;] and is deserialized to 

$array[&#039;MYSERIALZEDDATA&#039;] = unserialize($array[&#039;myserializeddata&#039;]);</description>
		<content:encoded><![CDATA[<p>Mixing multi languages in Namings of classes, Methods and Variables.</p>
<p>HATEHATEHATE</p>
<p>Mixing multi languages in Namings of classes, Methods and Variables.</p>
<p>HATEHATEHATE</p>
<p>$meinPortal-&gt;addUser($aUsers);</p>
<p>where $aUsers is<br />
['benutzername']<br />
['passwort']</p>
<p>Name Database tables and cols even in english, so that fetch() and alike give you $myEnglishvarname['mykey'] </p>
<p>A very bad thing is using array key that consist not only of one key case. Example: </p>
<p>$array['myKey']. This is prone to be a source of errors</p>
<p>It can get worse. </p>
<p>1. A DB Table contains a serialized PHP array in $array['myserializeddata'] and is deserialized to </p>
<p>$array['MYSERIALZEDDATA'] = unserialize($array['myserializeddata']);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://michaelkimsal.com/blog/worst-class-naming-examples/comment-page-1/#comment-12467</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Tue, 20 Nov 2007 21:52:00 +0000</pubDate>
		<guid isPermaLink="false">http://michaelkimsal.com/blog/?p=363#comment-12467</guid>
		<description>&quot;I dont think an adjective is *that* bad since you could have multiple noun objects that subclass an adjective and it kind of makes sense. I still wouldnt use “boxy” though.&quot;

Interfaces I can see being adjectives. 

Class Foo Implements Boxy {}

However, not so much on the class side.</description>
		<content:encoded><![CDATA[<p>&#8220;I dont think an adjective is *that* bad since you could have multiple noun objects that subclass an adjective and it kind of makes sense. I still wouldnt use “boxy” though.&#8221;</p>
<p>Interfaces I can see being adjectives. </p>
<p>Class Foo Implements Boxy {}</p>
<p>However, not so much on the class side.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mgkimsal</title>
		<link>http://michaelkimsal.com/blog/worst-class-naming-examples/comment-page-1/#comment-12439</link>
		<dc:creator>mgkimsal</dc:creator>
		<pubDate>Tue, 20 Nov 2007 19:21:53 +0000</pubDate>
		<guid isPermaLink="false">http://michaelkimsal.com/blog/?p=363#comment-12439</guid>
		<description>Holy cow, that&#039;s bad (&#039;transformers&#039; names).  I don&#039;t think you ever shared that one with me before, but it&#039;s good.  Perhaps classnames based on 70&#039;s bands would be better for those of a certain generation?  

class SealsAndCrofts

class PabloCruz

class LogginsAndOates extends WussRock

Yeah, I just saw &quot;viva ned flanders&quot; this weekend.  :)</description>
		<content:encoded><![CDATA[<p>Holy cow, that&#8217;s bad (&#8217;transformers&#8217; names).  I don&#8217;t think you ever shared that one with me before, but it&#8217;s good.  Perhaps classnames based on 70&#8217;s bands would be better for those of a certain generation?  </p>
<p>class SealsAndCrofts</p>
<p>class PabloCruz</p>
<p>class LogginsAndOates extends WussRock</p>
<p>Yeah, I just saw &#8220;viva ned flanders&#8221; this weekend.  <img src='http://michaelkimsal.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Pelz-Sherman</title>
		<link>http://michaelkimsal.com/blog/worst-class-naming-examples/comment-page-1/#comment-12437</link>
		<dc:creator>Michael Pelz-Sherman</dc:creator>
		<pubDate>Tue, 20 Nov 2007 19:16:59 +0000</pubDate>
		<guid isPermaLink="false">http://michaelkimsal.com/blog/?p=363#comment-12437</guid>
		<description>I once worked with a developer who created a system for transforming media files based entirely on the Transformers cartoon series. (This was years before the recent movie release.) Her classes were all literally based on characters from the show, e.g. &quot;OptimusPrime&quot;, &quot;Cybertron&quot;, etc.. It all made perfect sense to someone familiar with the cartoons, I suppose, but unfortunately most of the dev team were too old to fall into that category. :-)

My other pet peeve is guys who use one-letter class or variable names. At the same aforementioned company, we had a class called &quot;G&quot; that did all kinds of important and mysterious stuff. The author of that one was an Orthodox Jew and former Adobe employee, so maybe that all fits somehow. :-)</description>
		<content:encoded><![CDATA[<p>I once worked with a developer who created a system for transforming media files based entirely on the Transformers cartoon series. (This was years before the recent movie release.) Her classes were all literally based on characters from the show, e.g. &#8220;OptimusPrime&#8221;, &#8220;Cybertron&#8221;, etc.. It all made perfect sense to someone familiar with the cartoons, I suppose, but unfortunately most of the dev team were too old to fall into that category. <img src='http://michaelkimsal.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>My other pet peeve is guys who use one-letter class or variable names. At the same aforementioned company, we had a class called &#8220;G&#8221; that did all kinds of important and mysterious stuff. The author of that one was an Orthodox Jew and former Adobe employee, so maybe that all fits somehow. <img src='http://michaelkimsal.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mgkimsal</title>
		<link>http://michaelkimsal.com/blog/worst-class-naming-examples/comment-page-1/#comment-12436</link>
		<dc:creator>mgkimsal</dc:creator>
		<pubDate>Tue, 20 Nov 2007 19:16:49 +0000</pubDate>
		<guid isPermaLink="false">http://michaelkimsal.com/blog/?p=363#comment-12436</guid>
		<description>Sebs, it looks like part of your comment got cut off.  Sorry!  Repost if need be.  I worked in an environment where some of the devs wrote comments in their native language, so we had both english and chinese comments in the code.  Very hard to debug.</description>
		<content:encoded><![CDATA[<p>Sebs, it looks like part of your comment got cut off.  Sorry!  Repost if need be.  I worked in an environment where some of the devs wrote comments in their native language, so we had both english and chinese comments in the code.  Very hard to debug.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sebs</title>
		<link>http://michaelkimsal.com/blog/worst-class-naming-examples/comment-page-1/#comment-12421</link>
		<dc:creator>Sebs</dc:creator>
		<pubDate>Tue, 20 Nov 2007 16:42:06 +0000</pubDate>
		<guid isPermaLink="false">http://michaelkimsal.com/blog/?p=363#comment-12421</guid>
		<description>Mixing multi languages in Namings of classes, Methods and Variables. 

HATEHATEHATE 

$meinPortal-&gt;addUser($aUsers);

/*
where $aUsers is</description>
		<content:encoded><![CDATA[<p>Mixing multi languages in Namings of classes, Methods and Variables. </p>
<p>HATEHATEHATE </p>
<p>$meinPortal-&gt;addUser($aUsers);</p>
<p>/*<br />
where $aUsers is</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Quote of the Day: Mistakes are what make us human &#171; Richard@Home</title>
		<link>http://michaelkimsal.com/blog/worst-class-naming-examples/comment-page-1/#comment-12381</link>
		<dc:creator>Quote of the Day: Mistakes are what make us human &#171; Richard@Home</dc:creator>
		<pubDate>Tue, 20 Nov 2007 11:48:03 +0000</pubDate>
		<guid isPermaLink="false">http://michaelkimsal.com/blog/?p=363#comment-12381</guid>
		<description>[...] Worst class naming examples?     Posted by Richard@Home Filed in Quote Of The [...]</description>
		<content:encoded><![CDATA[<p>[...] Worst class naming examples?     Posted by Richard@Home Filed in Quote Of The [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://michaelkimsal.com/blog/worst-class-naming-examples/comment-page-1/#comment-12349</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Tue, 20 Nov 2007 09:29:07 +0000</pubDate>
		<guid isPermaLink="false">http://michaelkimsal.com/blog/?p=363#comment-12349</guid>
		<description>I dont think an adjective is *that* bad since you could have multiple noun objects that subclass an adjective and it kind of makes sense. I still wouldnt use &quot;boxy&quot; though.</description>
		<content:encoded><![CDATA[<p>I dont think an adjective is *that* bad since you could have multiple noun objects that subclass an adjective and it kind of makes sense. I still wouldnt use &#8220;boxy&#8221; though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: &#187; Blog Archive &#187; Nommage classe pires exemples? - Michael Kimsal</title>
		<link>http://michaelkimsal.com/blog/worst-class-naming-examples/comment-page-1/#comment-12287</link>
		<dc:creator>&#187; Blog Archive &#187; Nommage classe pires exemples? - Michael Kimsal</dc:creator>
		<pubDate>Tue, 20 Nov 2007 03:18:56 +0000</pubDate>
		<guid isPermaLink="false">http://michaelkimsal.com/blog/?p=363#comment-12287</guid>
		<description>[...] Orginal post by Planet PHP [...]</description>
		<content:encoded><![CDATA[<p>[...] Orginal post by Planet PHP [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Wultsch</title>
		<link>http://michaelkimsal.com/blog/worst-class-naming-examples/comment-page-1/#comment-12278</link>
		<dc:creator>Rob Wultsch</dc:creator>
		<pubDate>Tue, 20 Nov 2007 02:57:19 +0000</pubDate>
		<guid isPermaLink="false">http://michaelkimsal.com/blog/?p=363#comment-12278</guid>
		<description>I once worked on a website that was originally programed on the cheap somewhere in Asia. Amazingly enough the original code base was sound. What was not sound was the subsequent work done by a (no bs) meth addict. 

There was decently named variable that had over timed turned evil. The name of the variable was something like &#039;accountid&#039;. At some point another variable &#039;acountid&#039; came into existence. The variables had the value and the code base was about evenly split in usage. The sad thing was that misspelled variable was not the stupidest thing I saw.</description>
		<content:encoded><![CDATA[<p>I once worked on a website that was originally programed on the cheap somewhere in Asia. Amazingly enough the original code base was sound. What was not sound was the subsequent work done by a (no bs) meth addict. </p>
<p>There was decently named variable that had over timed turned evil. The name of the variable was something like &#8216;accountid&#8217;. At some point another variable &#8216;acountid&#8217; came into existence. The variables had the value and the code base was about evenly split in usage. The sad thing was that misspelled variable was not the stupidest thing I saw.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
