Page 1 of 1

Is Joomla a good model to learn elegant OOP coding practices?

Posted: Thu Nov 08, 2007 10:09 pm
by firewoodtim
I've been coding in PHP/MySQL for about three years, and I must admit that my coding practices are amateurish.  I've almost completed a rather large project that is similar in many ways to a content management system, but the code is so complex that now, when I want to add a feature, I get lost in my own code!!  It sometimes takes me days to accomplsh something that I know should take hours.

Clearly, I need to start all over and recode using a much better approach, so my thought is - find a good project of professionally designed OOP code to study, and learn good technique from that.  Would Joomla provide that model of code for me?  Any suggestions would be appreciated.

Re: Is Joomla a good model to learn elegant OOP coding practices?

Posted: Thu Nov 08, 2007 10:17 pm
by Pentacle
Well, I'm not a coder at all and it's not been so long since I learnt PHP. But about oop and general coding practices Joomla helped me a lot.

But I'd suggest not using 1.0 but 1.5 because it's written in a more object oriented way and implements many design patterns. So v1.5 is what you are looking for, I think.

Hth,
Ercan.

Re: Is Joomla a good model to learn elegant OOP coding practices?

Posted: Fri Nov 23, 2007 12:15 pm
by manuman
Pentacle is quite correct... start with 1.5.


A very good resource if your getting started in OOP with Joomla! can be found on the Joomla! dev site here... http://dev.joomla.org/component/option, ... roduction/