Talk:First Amoeba Video

From APIDesign

(Difference between revisions)
Jump to: navigation, search
(Comment provided by Payne - via ArticleComments extension)
Line 6: Line 6:
<div class='commentBlock'>
<div class='commentBlock'>
-
Code competion with annotations is not big aprovement. XML can have code completition too if we give XML Schema with it.
+
Code competion with annotations is not big aprovement. [[XML]] can have code completition too if we give [[XML Schema]] with it.
--Payne 17:14, 23 August 2009 (CEST)
--Payne 17:14, 23 August 2009 (CEST)
</div>
</div>
 +
 +
True, [[XML]] has structure and there can be a completion, but [[annotations]] make it more easier and are more integrated with [[Java]]. Imagine:
 +
 +
<source lang="java">
 +
public @interface ReferenceToJPanel {
 +
Class<? extends JPanel> myClass();
 +
}
 +
</source>
 +
 +
Each [[Java]] IDE will offer only subclasses of '''JPanel''' when code completing value of myClass attribute. This cannot be done with plain [[XML Schema]] (as it is not aware of [[Java]] and its classes hierarchy).
 +
 +
Moreover it looks more handy for majority of users (I have talked to) to edit just one language than switch from a [[Java]] file to an [[XML]] file and back. I think there is significant benefit of annotations over the [[XML]] and its [[XML Schema|schema]] (mixed with [[Java]]).
 +
 +
--[[User:JaroslavTulach|JaroslavTulach]] 16:39, 23 August 2009 (UTC)

Revision as of 16:39, 23 August 2009

Comments on First Amoeba Video <comments />


Payne said ...

Code competion with annotations is not big aprovement. XML can have code completition too if we give XML Schema with it.

--Payne 17:14, 23 August 2009 (CEST)

True, XML has structure and there can be a completion, but annotations make it more easier and are more integrated with Java. Imagine:

public @interface ReferenceToJPanel {
  Class<? extends JPanel> myClass();
}

Each Java IDE will offer only subclasses of JPanel when code completing value of myClass attribute. This cannot be done with plain XML Schema (as it is not aware of Java and its classes hierarchy).

Moreover it looks more handy for majority of users (I have talked to) to edit just one language than switch from a Java file to an XML file and back. I think there is significant benefit of annotations over the XML and its schema (mixed with Java).

--JaroslavTulach 16:39, 23 August 2009 (UTC)

Personal tools
buy