I went to a presentation last night by Guilherme Blanco on "Object Calisthenics" for PHP. Here's his slideshow:
Would this be helpful to Moodle developers?
[edit: Moodle strips out iframes ]
It's pretty much what Java and Actionscript coders regard as good practice already. The idea is adapted from Java good practices. If you're building a project from scratch, it's easier to follow the guidelines and have separate, adaptable functions that you can often use more than once instead of writing several functions that do similar things to each other or, even worse, long functions that do several things at once. You can reduce your lines of code from 100's down to 10's or even less.
I think wide screen monitors might actually be encouraging some coders to do more nesting of loops and if arguments too, i.e. they don't wrap around in the IDE text panel as much.
I'm looking at some of my Moodle mod PHP code now... slowly pushing it towards more simplicity and readability.