3 ms·
PHP has one great feature that makes it immortal. It's the only language that assumes that each code file is actually an HTML file. Try porting a simple PHP app
by phendrenad2 4y ago
PHP has one great feature that makes it immortal. It's the only language that assumes that each code file is actually an HTML file. Try porting a simple PHP app to Ruby or Python and you'll see what a mess it becomes.
- Wronnay 4y agoIf you use a template system like Laravel Blade or Twig, like most modern PHP projects, then this feature of PHP isn't really used anymore and porting a PHP App to Ruby or Python isn't such a big deal anymore. In my eyes, using something like Laravel takes away the "quick and dirty" aspect of PHP and adds a lot of things which have to be learned first, makes the project more stable and more comparable to a Python Django or Ruby on Rails project.
- unity1001 4y agoIts also why PHP and HTML mixed code templates are extremely fast for that reason. It was designed to be that way in order to solve the templating problem.