Stack Overflow: Defend PHP - convince me it isn't horrible
stackoverflow.com
Stack Overflow: Defend PHP - convince me it isn't horrible
1–10 of 74 posts
Re: Stack Overflow: Defend PHP - convince me it isn't horrible
#2Re: Stack Overflow: Defend PHP - convince me it isn't horrible
#3PHP encourages (practically requires) a coupling of processing with presentation. Yes, you can write PHP that doesn't do so, but it's actually easier to write code in the incorrect (from a sound design perspective) manner.
The ideal web application is the one that best fits the unique characteristics of the data being manipulated. When exploring how a web app should work, you should be thinking at all levels: view, controller, model. A framework that forces you to separate all three from the start is a bad framework. It pushes you toward generic data manipulation forms and reports. If those generic tools are the best ones for the data model being manipulated, why involve a programmer at all?
We would have much more interesting and varied web applications out there if the prevailing "wisdom" of MVC would die.
Re: Stack Overflow: Defend PHP - convince me it isn't horrible
#4Re: Stack Overflow: Defend PHP - convince me it isn't horrible
#5Actually, I think the depreciation point is one of the better points. Yeah, sometimes clean up is necessary, but when a language is a moving target like that, it raises serious concerns about portability and long term maintenance.
It they would've simply changed it over night, I'd have problems.
Re: Stack Overflow: Defend PHP - convince me it isn't horrible
#6I'm not a PHP advocate, but I'll take this one: PHP encourages (practically requires) a coupling of processing with presentation. Yes, you can write PHP that doesn't do so, but it's actually easier to write code in the incorrect (from a sound design perspective) manner. The ideal web application is the one that best fits the unique characteristics of the data being manipulated. When exploring how a web app should wor…
And separating those aspects programmatically makes it easier to think about them, not to mention program the ideas that occur to you when thinking about them separately.
> If those generic tools are the best ones for the data model being manipulated, why involve a programmer at all?
If intertwining essentially unrelated ideas is the best way to write programs, why use high level languages at all?
MVC--just like garbage collection, just data abstraction, just like most other high level languages features--is about modularity and separation of concerns.
> We would have much more interesting and varied web applications out there if the prevailing "wisdom" of MVC would die.
How do you reconcile this with the fact that there occurred a veritable explosion of various interesting web applications when MVC was (re)discovered by the webdev crowd?
Re: Stack Overflow: Defend PHP - convince me it isn't horrible
#7Re: Stack Overflow: Defend PHP - convince me it isn't horrible
#8PHP is great if you need to get some small thing up and running yesterday. PHP is also great if an out of the box solution will almost fit the bill due to the fact that there are so many. Just take a box and do some small modifications, voila, done!
To me, Facebook seems like a pretty complicated piece of software. The concept isn't very complicated but there are so many features all over the place.