由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - 有多少人对annotation这个东西不满,请举手!!
相关主题
Questions on EJB3 Persistence/Hibernate讨论一下web framework吧
Anyone wants to talk about web frameworks?谁来给简单的讲讲JAAS
其实有没有而已解释一下java ee是什么问一个Many to Many的设计问题
j2ee without EJB再论abstract class
讨论spring这么多,还没有说到点子上的。唉进了一家烂公司
legacy code里竟然还有scriplet,sigh[合集] 这个annotation,...
看Spring真是头大问一个很基本很基本很基本的API问题
EJB bookjunit question
相关话题的讨论汇总
话题: annotation话题: 请举手话题: 东西话题: metadata
进入Java版参与讨论
1 (共1页)
w*r
发帖数: 2421
1
真是一鸡肋,用起来无比别扭!
m******y
发帖数: 102
2
哦 支持你一下
不过没用过 1.5开始的新东西都没用过

【在 w*r 的大作中提到】
: 真是一鸡肋,用起来无比别扭!
m******t
发帖数: 2416
3
I think it's a good thing, but overused and abused to death. A lot of
people seem to keep forgetting "configuration != metadata".
L*********r
发帖数: 92
4
Agree.
It is very useful in one of my component to support third party info store.

【在 m******t 的大作中提到】
: I think it's a good thing, but overused and abused to death. A lot of
: people seem to keep forgetting "configuration != metadata".

L*********r
发帖数: 92
5
Forget to mention, my component is implemented in C#. attribute is the term
in c#.
annotation(metadata) will change the way you program.
for example, in order to specify your java class serializable. you can do it
with annotation.
@serializable
public class xxx
t****r
发帖数: 25
6
experienced using it with testNG and AspectJ. so far so good as long as no
abusing. hehe.

【在 w*r 的大作中提到】
: 真是一鸡肋,用起来无比别扭!
w*r
发帖数: 2421
7
唉,偶还是喜欢POJO的东西,至少看起来有头绪,这些annotation应该是了解了是如何转
变成POJO之后的一个shortcut,可以用来减少coding的量,但是这种技术的产生就决定了
新学的人就不再关心背后的实际意义,拿来用而已,等于多学几个语法规则.很明显的例
子就是jsp中用一堆奇怪的tag/tag library, 用scriptlet..而真正jsp和servlet之间
一致性就不再关心了,这些个号称会写jsp/servlet的programmer很多都不知两者其实是
一个东西,用中文说就是知其然而不知其所以然了

【在 t****r 的大作中提到】
: experienced using it with testNG and AspectJ. so far so good as long as no
: abusing. hehe.

p***p
发帖数: 559
8
各位老大,我现在要implement一个API,是带这个annotation的,请问
怎么弄,和以前的API有什么区别。
我觉得这个东西把JAVA程序搞地跟shell一样乱七八糟的,不堪入目
w*r
发帖数: 2421
9
//hand...我也是这么认为!!!!!太TMD无耻了

【在 p***p 的大作中提到】
: 各位老大,我现在要implement一个API,是带这个annotation的,请问
: 怎么弄,和以前的API有什么区别。
: 我觉得这个东西把JAVA程序搞地跟shell一样乱七八糟的,不堪入目

wy
发帖数: 14511
10
well, at least with @Test with new junit, the test method names are so
much more clear. keke

【在 w*r 的大作中提到】
: 真是一鸡肋,用起来无比别扭!
B******N
发帖数: 445
11
等你用ejb3,跟ejb2比较起来你就会appreciate it啦。
你可以完全开发POJO,然后加上annotation,再refactor a little bit。就变成一个
j2ee service啦。no boilerplate code啦。

【在 w*r 的大作中提到】
: 真是一鸡肋,用起来无比别扭!
w*r
发帖数: 2421
12
正在用EJB3, 还是喜欢自己写一堆code/config, 不喜欢用别人给generate出来的东西

【在 B******N 的大作中提到】
: 等你用ejb3,跟ejb2比较起来你就会appreciate it啦。
: 你可以完全开发POJO,然后加上annotation,再refactor a little bit。就变成一个
: j2ee service啦。no boilerplate code啦。

1 (共1页)
进入Java版参与讨论
相关主题
junit question讨论spring这么多,还没有说到点子上的。
What's going on with Spring IDE's website?legacy code里竟然还有scriplet,sigh
如何学spring和hibernate看Spring真是头大
about builder patternEJB book
Questions on EJB3 Persistence/Hibernate讨论一下web framework吧
Anyone wants to talk about web frameworks?谁来给简单的讲讲JAAS
其实有没有而已解释一下java ee是什么问一个Many to Many的设计问题
j2ee without EJB再论abstract class
相关话题的讨论汇总
话题: annotation话题: 请举手话题: 东西话题: metadata