News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
Harry Roberts' Blog:
Flexible PHP Interfaces
June 11, 2008 @ 13:40:10

In an effort to breathe as much life into an old bit of software he was having to update, Harry Roberts worked up a list of things that he sees can make things a bit more "programmer friendly" when it comes to using classes, methods and interfaces in your code.

His list of four is:

  • Doc Comments
  • Flexible Parameters
  • Use method Entry contracts
  • Be Stateful and Refactor

The "Doc Comments" is pretty obvious, but some of the others need a bit more explaining. Being flexible with your parameters is more about requiring the least from a developer, "entry contracts" being the restrictions to let the developer know what you're expecting and refactoring commonly used functionality into a easy, single point of contact.

0 comments voice your opinion now!
flexible interface comments parameters entry contracts stateful refactor



Similar Posts

DevShed: User-defined Interfaces in PHP 5 - Turning MySQL Classes into Interface Implementers

Andreas Gohr's Blog: MySimple.php - A lightweight PHPMyAdmin substitute

Nettuts.com: Unraveling the Secrets of WordPress' Comments.php File

DevShed: User-defined Interfaces in PHP 5 - Introduction to Core Concepts

Matthew Weir O'Phinney's Blog: Cgiapp2 Tutorial 1 - Switch Template Plugins at Will


Community Events











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


package job code ajax PEAR application developer releases example conference release mysql database cakephp security book zendframework PHP5 framework zend

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