Is a macbook the PHP developer's choice?
This week I was at the International PHP Conference. It was a nice conference with interesting topics. It was however a bit of a pity that the PHP conference got 'cornered' by the Webinale conference, which was a lot bigger and caused the PHP sessions to
I liked your presentation, and the 'inline asserts' was an eyeopener. Makes writing tests for simple methods a lot easier, thus it will be easier to convince developers to actually do unit testing.
I have some doubts about the other usages though, such as the xml, db and csv examples that you had. In one of the first slides you listed the basic rule that an annotation is an annotation, meaning that it should not alter the code in any way. What is really meant by that paradigma is that if you remove the annotations, the app should still work. The examples you demonstrated violate that principle.
But for documentation purposes and additional tooling, it's a great idea.
I think you misconceived the rule that an annotation does not alter the code. The rule is true for the code that the annotation is annotated to, but it does not apply to code that uses the annotations to do a specific task.
Then I guess a whole bunch of people got it wrong...