News for hackers. Stuff that matters.
Re:PHP Annotations Are a Horrible Idea by mmcnickle on Wednesday October 17, 2012 @08:34AM (#4664079)
I would argue that it's better for configuration and application logic should be separate though. You can run the same appliation with a different XML configuration without modification of the source. You couldn't do the same with in-comment configuration.
Re:PHP Annotations Are a Horrible Idea by blowski on Wednesday October 17, 2012 @09:25AM (#4664270)
Wherever this is likely to happen, I wouldn't use annotations. For example, I use YML for environment specific variables.

But I don't need routes or fieldnames to be different only in one environment, so annotations work great there.

Re:PHP Annotations Are a Horrible Idea by Garoof on Wednesday October 17, 2012 @09:02AM (#4664183)
Fair enough. Then it sounds like your problem is really with annotations, and not that much about the in-comment part of this.
Re:PHP Annotations Are a Horrible Idea by mmcnickle on Wednesday October 17, 2012 @10:19AM (#4664518)
Yes, and it's not limited to PHP. I don't particularly like how Flask (python) uses decorators for its routing as well.