Published 2004-04-01 09:59:51

After rather heated discussions on IRC over the last week, concerning StudlyCaps naming and php core. The core php developers (from what I saw) appear to be close to agreeing on some changes for PHP5.1
  • Finally we will get Case sensitive functions / methods
  • the _ underscore naming convention for PHP functions will be gradually replaced with StudlyCaps for all objects,  methods and functions.

Alot of the discussion centered around the impact this may have on old code, In general it was the concensus that it would only break really bad code hosted on sourceforge, which wouldnt be a complete disaster..

I have to admit it was pretty rare to see such agreement in such an argumentative group, but they considered consitency to be the ultimate goal, and it would make the life fo developers considerably easier.

Some of the core deadlines in the strategy are
  • Changing the manual to add the extra 500+ functions, and make the old ones redirect to new ones, (eg. going to www.php.net/array_count would redirect automatically to www.php.net/arrayCount) this is expected to be complete by July
  • For adding the aliases in, Lukas Smith was unanomously nominated to undertake the code changes, normally a core PEAR developer this will be his first major expedition into the C source code. it is expected that this will be completed by November.

In the meantime, they do recommend that if you are using any of the existing under_scored methods, that you write short wrappers to ensure that when they are removed in PHP5.1, that your applications work:
eg.
if (!function_exists('array_count')) {
function array_count($a) { return arrayCount($a); }
}



Mentioned By:
google.com : april (106 referals)
google.com : php case sensitivity (71 referals)
google.com : php function case sensitive (59 referals)
google.com : php functions case sensitive (57 referals)
google.com : PHP case (42 referals)
google.com : php5 case sensitive (40 referals)
www.schlitt.info : IBM takes over Zend - Tobias Schlitt - Weblog (32 referals)
google.com : php case sensitive functions (26 referals)
google.com : php case sensitive function (24 referals)
google.com : case sensitivity in php (23 referals)
google.com : php function case sensitivity (22 referals)
google.com : php methods case sensitive (18 referals)
google.com : december (16 referals)
google.com : php5 case sensitivity (15 referals)
www.schlitt.info : PHP april fools... - Tobias Schlitt - Weblog (13 referals)
google.com : php 5 case sensitive (10 referals)
google.com : case sensitivity php (9 referals)
google.com : php functions case-sensitive (9 referals)
blog.goranrakic.com : Moja škrabalica: Prvoaprilske šale (9 referals)
google.com : php case sensitive methods (8 referals)

Comments

After years of having to use annoying non-enterprise friendly and highly inconsistent naming conventions PHP finally follow the footsteps of well established languages like Java and SmallTalk.
I should also mention that this changes makes integration of PHP and .NET possible, which is a big step to making PHP a corporate scripting language of choice.
#0 - Ilia Alshanetsky ( Link) on 2004-04-01 11:29:27 Delete Comment
Too bad this is only an April's Fool joke.
#1 - Sebastian Bergmann ( Link) on 2004-04-01 13:16:37 Delete Comment
ROTFL!

Never read a better joke before! :)

Pretty nice, especially Lukas doing the alias changes in C code.
#2 - Toby ( Link) on 2004-04-01 13:35:01 Delete Comment
I hope this is only a joke, that would be a nightmare!

Donny
#3 - Donny ( Link) on 2004-04-02 00:20:32 Delete Comment
I almost cried when I found out this was a joke...
#4 - Justin Hendrickson ( Link) on 2004-04-02 22:05:52 Delete Comment
LOL. omg. thank goodness for Comments. :P

*was about to say "wtf!"*

Interesting blog, I'll keep my eye on it :D.
#5 - Jevon ( Link) on 2004-09-04 13:57:51 Delete Comment
The problem with April 1 jokes is that
When you read them long long after they are posted and you don't check the date (obviously), you got duped. A very good one though.
#6 - Duped ( Link) on 2005-01-26 20:21:42 Delete Comment

Add Your Comment

Follow us on