OOP Javascript, and OOP Php and you are set
I don't know why, for the most part I really like OOP (even though non-oop is faster) but something about going oop with my php scares me.
MUD using PHP and AJAX?
- Jackolantern
- Posts: 10891
- Joined: Wed Jul 01, 2009 11:00 pm
Re: MUD using PHP and AJAX?
OOP just does not seem to lend itself to every situation in PHP. There is a certain size of an application where there is a "break-even" point between OOP and procedural. If a program is smaller than that point, it will be shorter, more organized and more legible using procedural. If it is larger than that break-even point, it will be shorter, more organized and more legible written with OOP. Basically, if your application has a set of entities that fit neatly into a class hierarchy, it is better and much faster to use OOP. But I just don't see a lot of that in PHP script, which tend to be shorter, tight scripts for focused functionality that use very little abstract concepts.Noctrine wrote:OOP Javascript, and OOP Php and you are set
I don't know why, for the most part I really like OOP (even though non-oop is faster) but something about going oop with my php scares me.
The indelible lord of tl;dr