3 ms·
> And I prefer PHP as I can code websites without the need of frameworks That either means A) you re-invent the wheel every time you start a project or
by tomschlick 12y ago
> And I prefer PHP as I can code websites without the need of frameworks
That either means
A) you re-invent the wheel every time you start a project or
B) you have your own implementation of commonly used items (your own framework)
I personally would rather have a framework vetted & maintained by thousands of other developers than one I put together myself.
- chriswarbo 12y agoTo be fair, PHP's stdlib is essentially a Web framework. It comes with $_SERVER, $_GET, $_POST, header(), etc. built in, which other languages (Python, Haskell, Perl, etc.) would define in a framework. Hence there's no need to redefine stuff over and over. Hell, PHP is even a templating language by default, thanks to its <?php ?> tags. Of course, this doesn't answer the related questions: is PHP's built-in framework any good? Is it a good idea to include a Web framework in all scripts (even non-Web ones)? Is it a good idea to write all application logic inside giant <?php ?> tags in template files?
- frik 12y agoPHP, Node.js, Go and OpenResty have a versatile ecosystem with both libraries and optional (micro) frameworks. I prefer the newer trend of micro frameworks and for simple websites just raw PHP 5.3+.