Skip to content

Comment on CodeReddit: Cover UI for Reddit at Workparent

Comments

* implicit conversions * arrays are passed by value (by default) * poor performance * dollar signs everywhere * inconsistent function names * horrendous standard library * arrays are a mix of real arrays, hashmaps and other things * it keeps executing even after encountering errors

Overall the langauge reduces my productivity, encourages bad code and doesn't even perform well.

Thank you for having some real concerns with the language.

Some of these are addressed in PHP7. Performance is increased significantly, and exception handling has gotten some major improvements as well.

The encouragement of bad code I disagree with though, you can write bad code in any language. It isn't up to the language structures to force the developer into a certain way of writing.

For typing issues, there are strict modes as well, and type checking is something that's being improved in PHP7 again.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.