<?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 for Some Guy Ranting</title>
	<atom:link href="http://lukewelling.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://lukewelling.com</link>
	<description>Just another nerd’s weblog</description>
	<lastBuildDate>Mon, 22 Mar 2010 07:21:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on You Used PHP to Write That?! &#8211; Uh yeah. by Bysa</title>
		<link>http://lukewelling.com/2008/02/04/you-used-php-to-write-that-uh-yeah/comment-page-1/#comment-3134</link>
		<dc:creator>Bysa</dc:creator>
		<pubDate>Mon, 22 Mar 2010 07:21:53 +0000</pubDate>
		<guid isPermaLink="false">http://lukewelling.com/2008/02/04/you-used-php-to-write-that-uh-yeah/#comment-3134</guid>
		<description>hi
i had some knowledge with php and asp, but im not an advanced one. recently i decide to learn php in more depth. because i like open source and i see a lot of fans trying to make it better than before.
and im reading a book for it. i mean your book in 4edition
something that bother my mind is function names.
i want to know why functions (not all of them though) have no meaningful names in them? why they select a chop() name for a function?
another thing is naming abbreviations
for example if i want to work with files, i have: fread(), readfile(), fpassthru(),  file() functions. and as you see none of them tells you what they do if you are not familiar with them.

also for naming, some of them use &quot;file&quot; (like: readfile, file)  and some of them use &quot;f&quot; as abbreviations (like: fread(), fpassthru()) .

also for reading from file i have: fgets(), fgetss(), fgetcsv(). again, name tells you nothing. for example if you see fgetss() for the first time, you cant say what is the difference between fgets() or fgetss().

another problem i see in functions is name convention. for example we have file_exist() and filesize(). why in some function there is an underline between names and in some of them there isn&#039;t?
if i know some language like c or delphi, i expect when i use filesize(), there is a function name fileexist() or vice versa.

also i noticed that php still haven&#039;t got unicode support for function names and some others but asp had it a long time ago.

i know unicode support probably needs huge code to be implemented, so its not a big deal in my mind if php haven&#039;t got it since.
but names of function is a simple thing to fix and it should be straightforward for those who are going to learn php.

as far as i know, asp have a better naming and almost all of them gives you some idea about what they do.

i was a fan of php and when we debate with my friend, i was in php side and against asp.

the next thing that i couldnt figure out is new feature, i looked in changelog of php 5.3, and i see its now support for closures ans true anonymous functions, i know it has its use, but lets face it, doesnt something like this make our code much less readable?
i see an example about it in wikipedia:
function getAdder($x)
{
    return function ($y) use ($x) {
        return $x + $y;
    };
}
 
$adder = getAdder(8);
echo $adder(2); // prints &quot;10&quot;

and about C, yes it is heavily on C syntax, but php should not have filesize because C have no filesize at all as far as i know, so if we want to be like C, we should have file_size(). because C use underline in such a functions. example is file_exist()
all i read in programing source in computer science, they say one parameter for a good language is a good naming convention.
and for a language like php, i think its good to have a perfect naming convetion, i mean come on, its not hard to implement a good name for a function.
just like globals removed. or magic quotes that going to be removed.

if you say we should support backward compatibility, i say at least make these bad names an old feature, so they will be fixed in next versions. 

another thing is parameter order, for example when you work with strings we have to function,
explode:
array explode  (  string $delimiter  ,  string $string  [,  int $limit  ] )

and strtok:
string strtok  (  string $str  ,  string $delimiter  )

so which one? delimetter before string or after.

i know these are not such a big thing, but i think they can fix it very easily, i mean come on its just a function name.

these things that i see are bothering me, can someone please correct me if im wrong?
i hope i could make my mean clear.</description>
		<content:encoded><![CDATA[<p>hi<br />
i had some knowledge with php and asp, but im not an advanced one. recently i decide to learn php in more depth. because i like open source and i see a lot of fans trying to make it better than before.<br />
and im reading a book for it. i mean your book in 4edition<br />
something that bother my mind is function names.<br />
i want to know why functions (not all of them though) have no meaningful names in them? why they select a chop() name for a function?<br />
another thing is naming abbreviations<br />
for example if i want to work with files, i have: fread(), readfile(), fpassthru(),  file() functions. and as you see none of them tells you what they do if you are not familiar with them.</p>
<p>also for naming, some of them use &#8220;file&#8221; (like: readfile, file)  and some of them use &#8220;f&#8221; as abbreviations (like: fread(), fpassthru()) .</p>
<p>also for reading from file i have: fgets(), fgetss(), fgetcsv(). again, name tells you nothing. for example if you see fgetss() for the first time, you cant say what is the difference between fgets() or fgetss().</p>
<p>another problem i see in functions is name convention. for example we have file_exist() and filesize(). why in some function there is an underline between names and in some of them there isn&#8217;t?<br />
if i know some language like c or delphi, i expect when i use filesize(), there is a function name fileexist() or vice versa.</p>
<p>also i noticed that php still haven&#8217;t got unicode support for function names and some others but asp had it a long time ago.</p>
<p>i know unicode support probably needs huge code to be implemented, so its not a big deal in my mind if php haven&#8217;t got it since.<br />
but names of function is a simple thing to fix and it should be straightforward for those who are going to learn php.</p>
<p>as far as i know, asp have a better naming and almost all of them gives you some idea about what they do.</p>
<p>i was a fan of php and when we debate with my friend, i was in php side and against asp.</p>
<p>the next thing that i couldnt figure out is new feature, i looked in changelog of php 5.3, and i see its now support for closures ans true anonymous functions, i know it has its use, but lets face it, doesnt something like this make our code much less readable?<br />
i see an example about it in wikipedia:<br />
function getAdder($x)<br />
{<br />
    return function ($y) use ($x) {<br />
        return $x + $y;<br />
    };<br />
}</p>
<p>$adder = getAdder(8);<br />
echo $adder(2); // prints &#8220;10&#8243;</p>
<p>and about C, yes it is heavily on C syntax, but php should not have filesize because C have no filesize at all as far as i know, so if we want to be like C, we should have file_size(). because C use underline in such a functions. example is file_exist()<br />
all i read in programing source in computer science, they say one parameter for a good language is a good naming convention.<br />
and for a language like php, i think its good to have a perfect naming convetion, i mean come on, its not hard to implement a good name for a function.<br />
just like globals removed. or magic quotes that going to be removed.</p>
<p>if you say we should support backward compatibility, i say at least make these bad names an old feature, so they will be fixed in next versions. </p>
<p>another thing is parameter order, for example when you work with strings we have to function,<br />
explode:<br />
array explode  (  string $delimiter  ,  string $string  [,  int $limit  ] )</p>
<p>and strtok:<br />
string strtok  (  string $str  ,  string $delimiter  )</p>
<p>so which one? delimetter before string or after.</p>
<p>i know these are not such a big thing, but i think they can fix it very easily, i mean come on its just a function name.</p>
<p>these things that i see are bothering me, can someone please correct me if im wrong?<br />
i hope i could make my mean clear.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Dale Begg-Smith &#8211; &#8216;Spam man&#8217; wins gold by Sean Coates</title>
		<link>http://lukewelling.com/2006/02/17/dale-begg-smith-spam-man-wins-gold/comment-page-1/#comment-56</link>
		<dc:creator>Sean Coates</dc:creator>
		<pubDate>Mon, 15 Feb 2010 06:11:43 +0000</pubDate>
		<guid isPermaLink="false">http://lukewelling.com/2006/02/17/dale-begg-smith-spam-man-wins-gold/#comment-56</guid>
		<description>Karma. Who&#039;s got the gold now? (-:

S
(crosspost to Shiflett&#039;s site)</description>
		<content:encoded><![CDATA[<p>Karma. Who&#8217;s got the gold now? (-:</p>
<p>S<br />
(crosspost to Shiflett&#8217;s site)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP !== Java by Helga</title>
		<link>http://lukewelling.com/2008/12/20/php-java/comment-page-1/#comment-3065</link>
		<dc:creator>Helga</dc:creator>
		<pubDate>Mon, 28 Dec 2009 03:32:42 +0000</pubDate>
		<guid isPermaLink="false">http://lukewelling.com/2008/12/22/php-java/#comment-3065</guid>
		<description>I don&#039;t understand why is everyone discussing Singleton implementation.   I totally agree with what I believe is the true intent of this post, which is the attempt to transform a language in to something that is not &quot;in it&#039;s nature&quot;.  I will have to make my opinion humble for I have no more than 1,5 year experience in codding... Though the author gives more physical examples... I&#039;d give another more... ethereal? One usually speaks according to context. farmers have their dialect, politicians have their dialect.. And though there may be farmers who can speak like politicians, and politicians who can speak like farmers. Most politicians and farmers will not be able  to switch parts.. what is happening is that universities don&#039;t teach php, in fact they don&#039;t teach any script language other than javascript... and quite in the &quot;demonstration by intimidation... obvious&quot; style. but they do teach java, and c++ and c#. All oop languages.. strongly typed. So when these coders &quot;hit the streets&quot; they don&#039;t speak script... they speak oop. And because they don&#039;t care about nature, nor do they understand beauty they keep speaking oop.  The problems arise from the complexity one adds without necessity. But that complexity could only be perceived by an experienced php programmer or a concerned oop developer. For a farmer will always feel greater sympathy for a politician that speaks like a farmer..  The question here really is. Can we make all those farmers speak politician? will they be willing to? won&#039;t they create more problems while working with an unfamiliar environment? Hopefully the frameworks will continue to be loyal to the language nature.. and one can rely on those.  * my two cents...*</description>
		<content:encoded><![CDATA[<p>I don&#8217;t understand why is everyone discussing Singleton implementation.   I totally agree with what I believe is the true intent of this post, which is the attempt to transform a language in to something that is not &#8220;in it&#8217;s nature&#8221;.  I will have to make my opinion humble for I have no more than 1,5 year experience in codding&#8230; Though the author gives more physical examples&#8230; I&#8217;d give another more&#8230; ethereal? One usually speaks according to context. farmers have their dialect, politicians have their dialect.. And though there may be farmers who can speak like politicians, and politicians who can speak like farmers. Most politicians and farmers will not be able  to switch parts.. what is happening is that universities don&#8217;t teach php, in fact they don&#8217;t teach any script language other than javascript&#8230; and quite in the &#8220;demonstration by intimidation&#8230; obvious&#8221; style. but they do teach java, and c++ and c#. All oop languages.. strongly typed. So when these coders &#8220;hit the streets&#8221; they don&#8217;t speak script&#8230; they speak oop. And because they don&#8217;t care about nature, nor do they understand beauty they keep speaking oop.  The problems arise from the complexity one adds without necessity. But that complexity could only be perceived by an experienced php programmer or a concerned oop developer. For a farmer will always feel greater sympathy for a politician that speaks like a farmer..  The question here really is. Can we make all those farmers speak politician? will they be willing to? won&#8217;t they create more problems while working with an unfamiliar environment? Hopefully the frameworks will continue to be loyal to the language nature.. and one can rely on those.  * my two cents&#8230;*</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Maybe it is time I got out of PHP by Handover Phist</title>
		<link>http://lukewelling.com/2007/02/07/maybe-it-is-time-i-got-out-of-php/comment-page-1/#comment-288</link>
		<dc:creator>Handover Phist</dc:creator>
		<pubDate>Fri, 11 Sep 2009 04:06:43 +0000</pubDate>
		<guid isPermaLink="false">http://lukewelling.com/2007/02/07/maybe-it-is-time-i-got-out-of-php/#comment-288</guid>
		<description>I once built a point of sale system using PHP as the main engine (LAMP). Quite effective! Thinking outside web applications is something PHP programmers might want to explore.</description>
		<content:encoded><![CDATA[<p>I once built a point of sale system using PHP as the main engine (LAMP). Quite effective! Thinking outside web applications is something PHP programmers might want to explore.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on My Proudest Achievement: A Downloadable Certificate from eBay by Tom</title>
		<link>http://lukewelling.com/2007/07/26/my-proudest-achievement-a-dowloadable-certificate-from-ebay/comment-page-1/#comment-438</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Thu, 27 Aug 2009 09:46:57 +0000</pubDate>
		<guid isPermaLink="false">http://lukewelling.com/2007/07/26/my-proudest-achievement-a-dowloadable-certificate-from-ebay/#comment-438</guid>
		<description>If you want to win at life, add &quot;Tail&quot; to the URLs.  Here&#039;s the one for 1,000,000 feedback: http://pages.ebay.com/awards/StarAwardTailSilver.pdf</description>
		<content:encoded><![CDATA[<p>If you want to win at life, add &#8220;Tail&#8221; to the URLs.  Here&#8217;s the one for 1,000,000 feedback: <a href="http://pages.ebay.com/awards/StarAwardTailSilver.pdf" rel="nofollow">http://pages.ebay.com/awards/StarAwardTailSilver.pdf</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP !== Java by Robin</title>
		<link>http://lukewelling.com/2008/12/20/php-java/comment-page-1/#comment-3064</link>
		<dc:creator>Robin</dc:creator>
		<pubDate>Sat, 20 Jun 2009 21:02:05 +0000</pubDate>
		<guid isPermaLink="false">http://lukewelling.com/2008/12/22/php-java/#comment-3064</guid>
		<description>I think the main thing with using a singleton when a (what&#039;s the word?) not-singleton will do is probably just a case of &quot;I&#039;m doing this because it&#039;s the right thing&quot;

If the thing works, why try to fix it, eh?</description>
		<content:encoded><![CDATA[<p>I think the main thing with using a singleton when a (what&#8217;s the word?) not-singleton will do is probably just a case of &#8220;I&#8217;m doing this because it&#8217;s the right thing&#8221;</p>
<p>If the thing works, why try to fix it, eh?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Sweeping Bad Press Under The Rug Using Junk Blog Comments by ken</title>
		<link>http://lukewelling.com/2008/02/12/sweeping-bad-press-under-the-rug-using-seo/comment-page-1/#comment-2823</link>
		<dc:creator>ken</dc:creator>
		<pubDate>Mon, 27 Apr 2009 17:56:51 +0000</pubDate>
		<guid isPermaLink="false">http://lukewelling.com/2008/02/12/sweeping-bad-press-under-the-rug-using-seo/#comment-2823</guid>
		<description>I&#039;m really not surprised you people aren&#039;t finding much on this guy Mirkalami. It&#039;s hard to find a snake in the grass. Mirkalami is part of a whole family of cousins and brothers who run auctions of questionable ethics all over North America. They use tricks like inflated appraisals, eye candy auction lots like Mercedes, Porsche etc (which are often just rentals), high end watches like Rolex modified with low grade diamonds, Persian and Asian rugs which did not originate from the country they claim and usually have little value, &quot;original&quot; works of art whose authenticity is difficult to confirm, and shills in the crowd to make sure everything goes exactly as planned.
   These guys are in and out of town before anyone has a chance to complain. And often people are too embarrassed after having been taken to tell anyone anyway. The auction preview starts just one hour before the auction begins, so you don&#039;t really have time to do any research, and all it takes is a few minutes to fall under the spell cast by the glitter and bling. The fine print is in their catalog, and you don&#039;t get to see that until you surrender your drivers license to the auction. If at this point you feel as though you&#039;re trapped in some sort of web, try not to panic, mr. spider will be along shortly, and all it will cost you is an arm and a leg to get out of there.</description>
		<content:encoded><![CDATA[<p>I&#8217;m really not surprised you people aren&#8217;t finding much on this guy Mirkalami. It&#8217;s hard to find a snake in the grass. Mirkalami is part of a whole family of cousins and brothers who run auctions of questionable ethics all over North America. They use tricks like inflated appraisals, eye candy auction lots like Mercedes, Porsche etc (which are often just rentals), high end watches like Rolex modified with low grade diamonds, Persian and Asian rugs which did not originate from the country they claim and usually have little value, &#8220;original&#8221; works of art whose authenticity is difficult to confirm, and shills in the crowd to make sure everything goes exactly as planned.<br />
   These guys are in and out of town before anyone has a chance to complain. And often people are too embarrassed after having been taken to tell anyone anyway. The auction preview starts just one hour before the auction begins, so you don&#8217;t really have time to do any research, and all it takes is a few minutes to fall under the spell cast by the glitter and bling. The fine print is in their catalog, and you don&#8217;t get to see that until you surrender your drivers license to the auction. If at this point you feel as though you&#8217;re trapped in some sort of web, try not to panic, mr. spider will be along shortly, and all it will cost you is an arm and a leg to get out of there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP !== Java by Roderick Kar</title>
		<link>http://lukewelling.com/2008/12/20/php-java/comment-page-1/#comment-3063</link>
		<dc:creator>Roderick Kar</dc:creator>
		<pubDate>Thu, 23 Apr 2009 09:37:43 +0000</pubDate>
		<guid isPermaLink="false">http://lukewelling.com/2008/12/22/php-java/#comment-3063</guid>
		<description>This may not be the most appropriate place to post my question. I bought a kindle edition of your 4/e php and mysql web development. I have registered it on informit but I couldn&#039;t find where can I download the contents that come with the CD that accompanies the physical book.</description>
		<content:encoded><![CDATA[<p>This may not be the most appropriate place to post my question. I bought a kindle edition of your 4/e php and mysql web development. I have registered it on informit but I couldn&#8217;t find where can I download the contents that come with the CD that accompanies the physical book.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Java Programmers are the Erotic Furries of Programming by paulwesner</title>
		<link>http://lukewelling.com/2006/08/03/java-programmers-are-the-erotic-furries-of-programming/comment-page-1/#comment-140</link>
		<dc:creator>paulwesner</dc:creator>
		<pubDate>Wed, 11 Feb 2009 04:02:24 +0000</pubDate>
		<guid isPermaLink="false">http://lukewelling.com/2006/08/03/java-programmers-are-the-erotic-furries-of-programming/#comment-140</guid>
		<description>[...] I recently came across a .NET web application that requests a login to view any of its pages.  There was a typical login; username and password.   So I gave it a try.  Of course I didn&#8217;t know the credentials, but I noticed that the page responded with a JavaScript alert, letting me know that my credentials did not match.  Why use an alert?  I could only assume a typical Java programmer was behind such shenanigans.  (inside joke) [...]</description>
		<content:encoded><![CDATA[<p>[...] I recently came across a .NET web application that requests a login to view any of its pages.  There was a typical login; username and password.   So I gave it a try.  Of course I didn&#8217;t know the credentials, but I noticed that the page responded with a JavaScript alert, letting me know that my credentials did not match.  Why use an alert?  I could only assume a typical Java programmer was behind such shenanigans.  (inside joke) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP !== Java by void star</title>
		<link>http://lukewelling.com/2008/12/20/php-java/comment-page-1/#comment-3062</link>
		<dc:creator>void star</dc:creator>
		<pubDate>Sat, 10 Jan 2009 18:32:36 +0000</pubDate>
		<guid isPermaLink="false">http://lukewelling.com/2008/12/22/php-java/#comment-3062</guid>
		<description>An ironic linguistic example given that one explanation for the phrase &quot;raining cats and dogs&quot; is that it is a mis-translation of the French word &quot;catadoupe&quot;, meaning &quot;waterfall&quot;.</description>
		<content:encoded><![CDATA[<p>An ironic linguistic example given that one explanation for the phrase &#8220;raining cats and dogs&#8221; is that it is a mis-translation of the French word &#8220;catadoupe&#8221;, meaning &#8220;waterfall&#8221;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
