Re:Can you use PHP without frameworks nowadays?
by drdaeman on Friday February 18, 2011 @11:33AM
(#2236058)
> Can you do a website in plain ruby as easily?
Don't know about Ruby, but as for Python - yes, you can. There is Python Server Pages in mod_python, which are similiar to mod_php.
However, mod_python is ugly (in a same way mod_php is), so it's generally frowned upon and considered to be Bad Thing.
Re:Can you use PHP without frameworks nowadays?
by zeemonkee on Friday February 18, 2011 @12:42PM
(#2236396)
It's not just ugly, it's unmaintained.
Re:Can you use PHP without frameworks nowadays?
by krakensden on Friday February 18, 2011 @01:34PM
(#2236614)
There's always mod_wsgi and writing a raw wsgi app- which honestly, isn't particularly hard or bad.
Re:Can you use PHP without frameworks nowadays?
by drdaeman on Friday February 18, 2011 @01:32PM
(#2236606)
I believe, this is a consequence of being ugly.
Re:Can you use PHP without frameworks nowadays?
by IsaacL on Friday February 18, 2011 @01:07PM
(#2236513)
"Can you do a website in plain ruby as easily?"
I've written websites in plain Ruby, as CGI scripts running on Apache. I actually find this easier that PHP, as Ruby doesn't have nearly as many weird inconsistencies. I think I'm pretty unusual in being one of the few Ruby programmers who didn't immediately begin with learning Rails.
Re:Can you use PHP without frameworks nowadays?
by kreek on Friday February 18, 2011 @12:20PM
(#2236289)
Ruby with Passenger can be used for a simple website. Throw in Sinatra with Datamapper or ActiveRecord and you've got a lightweight setup - with better options for string manipulation than PHP :)
Languages like ruby and python lack this. Can you do a website in plain ruby as easily? How many mature ruby web frameworks are there in ruby? There are many in php. Zend Framework, Agavi, Kohana, CodeIgniter, Prado, Yii, Symfony and many others.
Of course some stuff in php suck hard. I would personally love an string-object to replace all the stupid str_*() functions, but php is in the right direction of adding features. (My last issues are fixed by 5.3's late static bindings)
And im surprised how php community quickly adopts changes. PHP 5.3 breaks compatibility but i see more people using it everyday.
I think despite all the negativity, PHP is going to stay for long-term.