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

Have a programming question regarding your component, plug-in, extension or core hacks? Have an interesting tidbit, FAQ or programming tip you’d like to share? This is the place for you.

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida

Post Reply
firewoodtim
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Thu Nov 08, 2007 9:57 pm

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

Post by firewoodtim » Thu Nov 08, 2007 10:09 pm

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.

User avatar
Pentacle
Joomla! Intern
Joomla! Intern
Posts: 61
Joined: Wed Oct 25, 2006 12:34 pm
Location: Turkey

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

Post by Pentacle » Thu Nov 08, 2007 10:17 pm

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.
My Joomla! 1.5 extensions - http://joomla.ercan.us
Progress is made by lazy men looking for easier ways to do things.

User avatar
manuman
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 211
Joined: Fri Aug 12, 2005 1:58 am
Location: Albany - Western Australia
Contact:

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

Post by manuman » Fri Nov 23, 2007 12:15 pm

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/
Core Team Member :: Project Manager & Foundation WG Coordinator
OSM Board Member :: Treasurer
Vote for Joomla! http://www.packtpub.com/nominations-homepage


Post Reply