Skip to content

Comment on What PHP Needsparent

Comments

The naming of ReflectionClass is enough to make me want to cry.

I know naming things in CS is hard, but if you're having to put the word "Class" in your class names to make your code readable then you've got real problems.

It's a Reflection of a Class. Similarly there is ReflectionObject, ReflectionMethod, ReflectionParameter, and ReflectionProperty.

I suppose that's fair enough. It's not exactly ideal though is it, but PHP's lacklustre naming conventions are hardly ground that needs to be trodden again.

AboutSource Built by g1lg1l

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