On Tue, 2004-06-29 at 16:48, Ross Werner wrote: > On Tue, 29 Jun 2004, Michael Halcrow wrote: > > On Tue, Jun 29, 2004 at 07:10:17PM +0000, Daniel Crookston wrote: > > > What I'm wondering is this - what is it about PHP that gives it the > > > rap of not being a "real" programming language? > > > > Heh. :-) Anything that is Turing-reduceable is ``real'', but let's > > go past that for a bit... > > Heh, reminds me of the time my wife was talking to someone computationally > challenged about PHP. My wife was learning a bit of PHP and this person > said disparagingly, "Oh, it's probably not a very high-level programming > language." > > I thought to myself about the definition of "high-level programming > language," and prompted my wife to say, "Actually, it's one of the > highest-level programming languages there is!" > > Heh. Her detractor was rather taken aback. I still chuckle to myself when > I think of it today. > > > On another note, I _have_ heard many people disparage PHP because of its > lack of template-ishness. Why is "mixing logic and presentation" de facto > a Bad Thing[tm]? And how else would you go about doing it?
Using Model-View-Controller architecture and separation often makes your code more maintainable and understandable, and more bug-free, since it is much more modular. Not to mention you can change parts of the app without effecting the rest. For example, you could completely redo the interface without messing with any of the functionality. Mixing presentation and logic is bad because it's essentially spaghetti code. With stateless web pages it's even worse. There's no way you can easily understand and follow the logic when a php program uses such mixing of code and html. Paradigms like Tapestry for Java use turn the page into more of an event-driven paradigm, which is easier to code for and follow the logic and flow of the program. Michael > > ~ ross -- Michael L Torrie <[EMAIL PROTECTED]> ____________________ BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________ List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
