You are here: Re: Furthering my education in OOP - where/how can one learn professional skills? « PHP Programming Language « IT news, forums, messages
Re: Furthering my education in OOP - where/how can one learn professional skills?

Posted by lawrence k on 11/08/07 04:52

On Nov 7, 9:11 am, firewood...@yahoo.com wrote:
> The next step, it seems to me, is to become much more skilled in
> analyzing a program from an OOP point of view and learning the
> techniques for organizing the structure of the scripts and how to
> implement them in a website. In other words, I want to move from
> amateur to pro in terms of both career and technique.

Building something somewhat large scale (I mean non-trivial) in an OOP
style is the best way to learn OOP. You'll make lots of mistakes and
that will be educational. You can, at the same time, read about design
patterns, and your reading should inform your code writing, and your
code writing will give you an appreciation of the design patterns you
are reading about.




> Also, is PHP the best language to use to learn and implement the full
> power of OOP? If not, any suggestions?

Between 2002 and 2005 myself and some friends built a content
management system using PHP 4. We were consciously designing as an OOP
design. We used objects to mask the connections to the database, and
objects to mask access to the server directories (only the code had to
know where things were).

In 2006 I came to the conclusion that the design was much too heavy,
and all the masking had slowed things down. I've since been moving
toward a style of coding that I think most people would find quite
primitive - lots of plain PHP code right in the templates, nothing
masked, everything plain, very little abstraction, lots of stuff hard
coded. Stuff can be abstracted out once a project is mature.

The downside of OOP is that when a new programmer comes in, they've a
harder time figuring out what is going on. Everything is masked and
abstracted. The upside of plain, procedural code is that a new
programmer can usually pick it up faster. This may not be an issue for
you, but for me, being able to hand a project off to other programmers
has been one of my top concerns, so I've come to favor plain code over
OOP.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация