function names

From: Date: Thu, 10 May 2001 13:21:10 +0000
Subject: function names
Groups: php.qa 
Request: Send a blank email to php-qa+get-3222@lists.php.net to get a copy of this message
It helps to go out to the "real world" from time to time. :) This is what I found in php-windows@. while I strongly disagree with his take on case-sensitiveness, I consider the rest of the message very true. At 00:46 10.5. 2001, Tim Uckun wrote the following: -------------------------------------------------------------- Finally, one language issue that is a real pet peeve of mine is case sensitive variable definitions. This is not a problem in either CFM or ASP. While it can be somewhat worked around by setting the PHP error level reporting to flag uninitialized variables, it is a deficiency that is long overdue to be corrected. From what I hear it's about to get worse. Instead of making variable names case insensitive they are going to make the function names case sensitive too. Seems like they want to make the language more C like. As for other stuff my pet peeve is the lack of consistency in the functions. Look at all the string functions. Most of them work on a string but some one the string first some want it last some want it somewhere in the middle. It's even worse with database functions. Because each function is written by somebody else it uses a different calling convention or returns different things. PHP definately lacks the cohesiveness and intuitiveness of other scripting languages. I don't want to rag on it too much because obviously the good points of it outweigh the bad points for me but especially in large projects that require multiple programmers I really wish it was more cohesive. As it is I am never really confident about using any function without first checking the manual. In Perl or python I can pretty much guess what a function is going to do 90 percent of the time. ------end of quote------ cynic@mail.cz ------------- And the eyes of them both were opened and they saw that their files were world readable and writable, so they chmoded 600 their files. - Book of Installation chapt 3 sec 7

« previous php.qa (#3222) next »