News Feed
Sections




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

Keith Casey's Blog:
Useful Naming Conventions
December 09, 2008 @ 15:31:15

In a new post to his blog Keith Casey shares a few tips on naming conventions that can help increase readability in your code and make maintenance simpler in the future.

In my regular web wanderings recently, I found a great post entitled "The 7 Worst Verbs Programmers Use In Function Calls" and couldn't help but be reminded of a system that I worked on a few years ago. The core function of the system was named - no kidding - "doStuff". Everything in the application led towards that, used it, and then did other things as a result.

He suggests a structure he uses - "verbAjectiveNounStructure". Starting with an action, moving to a description of the action, to the target of the action and finally an optional structure - how the returned data is formatted.

0 comments voice your opinion now!
useful naming convention verb adjective noun structure


blog comments powered by Disqus

Similar Posts

CatsWhoCode.com: 8 useful code snippets to get started with WordPress 3.0

Zend Developer Zone: Two Security Tips - Naming Scheme & Input Filtering

PHPKitchen: Advantages of using the PEAR class naming convention

PEAR Blog: PEAR Group Meeting Minutes 2008-07-13

NETTUTS.com: 9 Extremely Useful and Free PHP Libraries


Community Events

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


series interview language release podcast wordpress api community version unittest opinion extension php7 laravel library introduction voicesoftheelephpant framework example laravel5

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