theunraveler
Correct. But if you want use the form where you just return an array of variables to use inside your template, and have Symfony smartly located the template for you, you have to use an annotation. See http://stackoverflow.com/questions/12922827/symfony-2-php-te... for an example.
> and you state the same with with Doctrine2 which you point out there are other ways to do it.
Yes, there are other BETTER ways to do it. Making comment-based annotations available as one of the ways pretty much guarantees that people will use it, and that seems like a bad idea to me. Just remove them so no one is able to choose the bad practice.
> All your points for "DX Regressions" are completely wrong.
Uhh, OK? How about comment folding in text editors? Would you, as a developer, be happy if you encountered some code that made heavy use of annotations for critical application logic? I wouldn't--this is what I mean by DX.
> What do I gain to hope by using var_dump() on an annotation?
The same thing you gain by var_dump()ing any variable--an understand of what's happening under the hood.
Sorry for the confusion, and thanks for your comment.
And how is making the property public a bad idea? The configuration system that parses it will need to read the property, no? And a method like getUsername() should be reserved for actually getting the value of that field, not its config.
Uhh, what's so hard about making an array?
Check it out and let me know what you think!
In short, what I would like to see is NOT a "professional association" (like Chamber of Commerce) that advances the interests of business, but rather a union that protects the rights of working people. The union would, ideally, ally itself with other organizations of working people to not just fight for our slice of the pie, but for every worker's slice.
1. Lost wages are one of the reason unions maintain a "strike fund" or start collection pools.
2. An injury to one is an injury to all. A company pulling some funny business that costs developer A $1000 could very well do the same thing to developer B. It is, then, worth developer B's temporary loss of income to defend his/her interests in the long term. ALL workers lose when SOME workers decide to trade temporary gain for long-term power.
Just a few quick notes on unions in general:
1. Even though union membership and participation is covered under the NLRA, companies break the law all the time. Organizers are fired and retaliated against for union activity all the time. The fact is that the labor board (the government body that arbitrates labor disputes) is too weak and the penalties for breaking labor laws for companies too lax that it is often work the small amount of hassle for a company to break a union illegally. This has been shown in many, many union recognition struggles. Because of this, a unions power is not through the laws that "protect" it, but in the ability of its member to take action and force the company to meet demands, financially and socially.
2. Assuming the first point, we must have a discussion to determine where exactly our power can be exerted. Your idea of the "kill switch" is right on; essentially, if a company stiffs a developer, the internet as we all know it could shut down temporarily.
3. There are really bad ass unions out there that are in to organizing groups of workers that other unions deem "unorganizable". Developers, I would think, are one such group, considering our geographic and occupational spread. One such union is the IWW (iww.org). I'm a member, and would really strongly encourage affiliating with them.
4. Actually, I think solidarity with the Foxconn workers in China might be a good first campaign.
So, yeah, I really love this idea and am willing to do the work to make it happen. IRC, anyone?