News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Reddit.com:
Let's Make PHP's Function Names Consistent!
January 25, 2013 @ 10:32:57

On Reddit.com there's a heated discussion going on in response to this bug filed asking about aliasing PHP function names to make them more consistent (specifically "htmlentities_decode" versus "html_entity_decode").

[...] Current naming conventions are really horrible. For instance, look at differences between str_replace, strlen, parse_str, htmlspecialchars. All work with same type but their names are completely different. So, string functions should go to String namespace (Stringreplace()), array functions to Array namespace (Arraysearch()) and so on.

Back in the Reddit post most of the commentors agree that this kind of thing would be beneficial to the language, but - as several point out - this could have serious backwards compatibility issues. What do you think? Voice your opinion!

0 comments voice your opinion now!
function naming consistency language opinion


blog comments powered by Disqus

Similar Posts

Jeremy Zawodny's Blog: Database Abstraction Layers Must Die!

PHP.net: PHP 5.3.27 Released - PHP 5.3 Reaching End of Life

Satya Prakash's Blog: PHP is not Java

PHP Magazine: What Is Your Top Consideration for Choosing a CMS? (Poll)

Padraic Brady's Blog: Nanosecond Scale Remote Timing Attacks On PHP Apps: Take Them Seriously?


Community Events





Don't see your event here?
Let us know!


code podcast release threedevsandamaybe project laravel introduction language api developer application library series community framework bugfix list wordpress interview configure

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework