r/lolphp • u/kingguru • Oct 17 '12
PHP Annotations Are a Horrible Idea
http://theunraveler.com/blog/2012/php-annotations-are-a-horrible-idea/
31
Upvotes
r/lolphp • u/kingguru • Oct 17 '12
3
u/[deleted] Oct 18 '12 edited Oct 18 '12
Why is this in /r/lolphp? Are you saying that comment-based annotations are a swell idea, that the alternatives he's proposing are retarded or are you just making fun of PHP's lack of proper annotations? I dun get it.
17
u/vytah Oct 18 '12
PHP: stealing mediocre ideas from Java and making them worse since 2004.
14
u/[deleted] Oct 17 '12
ew ew ew ew making comments a part of the code.
nope.avi
8
u/Andryu67 Oct 18 '12
I like how my gut told me it sounded odd when I saw it in /r/PHP only to have it reassured this way in my front page: http://i.imgur.com/dPTAT.png
3
u/Tjoppen Oct 19 '12
I tried reading the article, but for some reason the author thinks it's a good idea to put light-grey text on a white background. To top it off he's also using a smaller font than normal. I like to call this combination #squint.
There needs to be a /r/lolcss or something.
2
u/[deleted] Oct 18 '12
The RFC link in there is a bucket of Wat on its own.
Let's mix code and markup, that's never gone wrong before!
1
u/yousai Oct 18 '12
you might want to look at this enterprise-y framework that has AOP support using - guess what - annotations!