views:

103

answers:

2

Hi, I'm a PHP programmer and I really want to increase the quality of my code and most importantly I want to be better at programming.

What book, tutorial or article would you guys suggest that I read that teaches how to make programs that are less coupled and easy to maintain? Are there any specific tips for PHP especially for the CakePHP framework?

Thanks in advance!

+2  A: 

The Pragmatic Programmer is a good fit here. A little high level, but lots and lots of important, valuable, and clear wisdom. It's language-agnostic.

As for PHP, personally I'm not much of a fan, I think there are other languages that are much better at supporting decoupling. Python, Java, C#, Scala — even JavaScript, with a CommonJS runtime such as Node.js.

That said, you asked about PHP, so my advice would be to find some well-designed Open Source apps and see how they did it. Unfortunately I don't know any specifically, but there must be some.

Avi Flax
Thanks! I was actually learning Rails and as I go on I realized how coupled my past code is in PHP hence the reason for asking this question.
My pleasure. If you think my answer is helpful, please consider upvoting it.
Avi Flax
A: 

As someone in a similar situation, I'm finding PHP Objects, Patterns, and Practice (as recommended here) very helpful.

Eric