| ▲ | Yokolos 4 hours ago | |||||||||||||||||||
You can do crazy things in every language. However, in a language like Java, the crazy things are more conceptual (factory for factory of factories) and not basic things like what does == mean or problems with weak typing and implicit conversions. A lot of the issues with PHP can be avoided in modern PHP using things like strict_types=1, but most of the time, we don't get to work with projects using best practices. And I'd rather work with a bad Java project than any bad PHP project (which I have had the misfortune of maintaining). | ||||||||||||||||||||
| ▲ | babuskov 3 hours ago | parent [-] | |||||||||||||||||||
Funny that you picked == as an example when == is very counter intuitive in Java and is one of the common pitfalls for beginners:
Just like PHP, you have to read the docs to use it properly. | ||||||||||||||||||||
| ||||||||||||||||||||