DEV Community

Discussion on: Do Developers Still Use PHP (and why that’s the wrong question to ask)

Collapse
 
123programming profile image
123 Programming

My biggest problem with PHP is that it is not object-orientated. It is a language with potential, but I personally don't really like it.

This might just be because I'm bad at php, but sometimes I have an error inside a loop which causes the loop to run forever and the error_log file uses about 10gb/s of storage, causing my £2.99 Web server to cry with pain

Collapse
 
dhandspikerwade profile image
Devin Handspiker-Wade

Not sure what you mean. PHP has been object-orientated since PHP 5 (16 years ago)

Collapse
 
jzombie profile image
jzombie • Edited

I haven't used PHP in years, but I learned the basics of OOP back in 2008 on PHP 5, and that basic knowledge has carried over into OOP with some C++, Python, and JavaScript.

Collapse
 
stexaz profile image
Andrius Petrauskis

Oh but it is. Of course you can write non-oop code but most modern applications/frameworks consists of object oriented php. The infinite loop problem is relatable but it can be just like that in any other language, like c or rust. In which case it could break your VPS even faster. It all depends on programmer who writes the code and the tools that are used. E.g. phpStorm (much like other jetBrains products) is superior tool helping to prevent many problems. There are also a lot of static analysis tools, like phpcs, phpmd, phan etc. And of course, phpunit tests. If you test your code well it is very unlikely it will bring any unexpected results.

Some comments have been hidden by the post's author - find out more