News for hackers. Stuff that matters.
Re:Moving from Go to PHP Again by tompi on Friday February 08, 2019 @04:16AM (#19112632)
About annotations, a new proposal has been submitted a few days ago. It's not the first time so I don't want to be too optimistic, but it looks great.

https://wiki.php.net/rfc/annotations_v2

Re:Moving from Go to PHP Again by pasta on Friday February 08, 2019 @04:54AM (#19112827)
Even if this will be integrated I still think it might be a bad idea for some things because it goes into the separation of concerns principle.

A controller should not know about routes.

A model should not know about database design.

Re:Moving from Go to PHP Again by Aeolun on Friday February 08, 2019 @06:22AM (#19113220)
Unless you want to write a ton of transformers, your models will likely know about your database design. If only by virtue of having the same properties.
Re:Moving from Go to PHP Again by DCoder on Friday February 08, 2019 @07:08AM (#19113452)
I think the parent is objecting to the fact that annotations spray this "external" information right in the middle of the controller/model. FWIW, decent tools let you put this info in separate configuration files instead of code annotations, "decoupling" it from the code.