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
Hello, World! I'm jzombie, a passionate software developer with a knack for problem-solving and a love for open-source. I believe in the power of code to change the world and make our lives easier.
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.
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
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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
Not sure what you mean. PHP has been object-orientated since PHP 5 (16 years ago)
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.
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.