Remix.run Logo
jjice 5 hours ago

PHP is a fine language. It started my career. That said, it has a lot of baggage that can let you shoot yourself in the foot. Modern PHP is pretty awesome though.

radium3d 5 hours ago | parent [-]

Pretty sure we've seen people coding in essentially every other programming language also shoot themselves in the foot.

Sohcahtoa82 4 hours ago | parent | next [-]

Every language has foot-guns of some sort. The difference is how easy it is to accidentally pull the trigger.

PHP makes it easy.

jjice 3 hours ago | parent | prev [-]

Yeah of course PHP isn't the only programming language you can write bugs in. I don't think you can make it impossible to shoot yourself in the foot, but PHP gives you more opportunities than some other languages, especially with older PHP standard library functions.

One thing I particularly hate is when functions require calling another function afterwards to get any errors that happened, like `json_decode`. C has that problem too.

Problems don't make it a _bad_ programming language. All languages have problems. PHP just has more than some other languages.