|
Posted by lawrence k on 11/08/07 04:41
On Nov 7, 2:47 pm, Darko <darko.maksimo...@gmail.com> wrote:
> On Nov 7, 4:36 pm, Rob <ratkin...@tbs-ltd.co.uk> wrote:
>
>
>
> > On Nov 7, 2:11 pm, firewood...@yahoo.com wrote:
>
> > > I need some help in furthering my education in OOP. I have developed
> > > a set of PHP scripts that I use in a fairly sophisticated database
> > > driven website, but I am not proud of the rather amateurish
> > > programming that I used to create the functionality. Although I use
> > > classes and objects to organize my data and their related functions,
> > > it seems to be only marginally better than plain procedural
> > > programming. For example, I do not use inheritance, much less
> > > polymorphism.
>
> > > 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.
>
> > > Can someone point me in the direction of the right schools(online),
> > > books, websites, example code, or other assets that I can use to
> > > learn?
>
> > > Also, is PHP the best language to use to learn and implement the full
> > > power of OOP? If not, any suggestions?
>
> > Although I hate to say it, C#.Net is probably the best way to learn
> > OOP at the moment, as it pretty much forces you to write code in
> > the .Net way.
>
> If you hate to say it, then don't say it :) I know it is an expected
> behaviour here
> at comp.lang.php to go around saying how Microsoft's products are bad
> and how all the
> rest is great, but I'm not trying to do that since I try not to be
> emotionally related to
> something I consider only my job.
>
> So, if the topic starter needs to be _forced_ to make all in classes,
> then he/she can use Java. I don't
> really see the reason for that since, like Wasmus said already, it is
> a little bit silly to make
> contact forms or other small pages with objects. There is place and
> time for everything, so that's exactly
> PHP (and C++, for example) philosophy - use OOP if you need it, don't
> use it if you don't need it. It is
> only an important thing to be able to notice that you need it, which
> is another story.
Before anyone tries to learn Java, they should read the introductory
chapter in Bruce Tate's recent book:
http://www.amazon.com/Java-Ruby-Manager-Pragmatic-Programmers/dp/0976694093/ref=sr_1_1/105-2471520-1320409?ie=UTF8&s=books&qid=1194496791&sr=8-1
He makes a good case for switching from Java to Ruby for all kinds of
work, especially web work.
Navigation:
[Reply to this message]
|