You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by Dan Haywood <da...@haywood-associates.co.uk> on 2014/12/09 21:32:18 UTC

Any opinions on this proposal (ISIS-970) to reduce the number of Isis annotations?

see https://issues.apache.org/jira/browse/ISIS-970


Already part way there with the new @XxxLayout (UI hint) annotations;
occurred to me that might make sense to do something similar for the
remaining (domain) annotations.

Comment on the ticket or on this thread, whichever.


Cheers
Dan

Re: Any opinions on this proposal (ISIS-970) to reduce the number of Isis annotations?

Posted by Dan Haywood <da...@haywood-associates.co.uk>.
On 10 December 2014 at 09:22, Martin Grigorov <mg...@apache.org> wrote:

> Hi,
>
> The improvement is good ! Especially for newcomers.
>
> ok, thx for the vote.



> What is the backward compatibility policy ?
> I didn't have a chance to review the changes but I assume the old
> annotations will be supported for 1.x, probably deprecated ?
>
>
Exactly.  Will keep them, but deprecated, for the 1.x codeline.

ta
Dan





> On Wed, Dec 10, 2014 at 11:16 AM, Dan Haywood <
> dan@haywood-associates.co.uk>
> wrote:
>
> > On 10 December 2014 at 09:09, GESCONSULTOR - Óscar Bou <
> > o.bou@gesconsultor.com> wrote:
> >
> > > First thoughts here ...
> > >
> > >
> > > It seems obvious that it would be clearer and also easier to learn (as
> > you
> > > could easily discover all property, collection or action options easily
> > > simply by looking at the possible annotation fields.
> > >
> >
> > Yes, that's my main motivation... grokkability/discoverability.
> >
> >
> >
> >
> > >
> > > So seems a great idea  ... :))
> > >
> >
> > OK, thanks for the vote.
> >
> >
> >
> >
> > >
> > > I miss "name" as an equivalent to @Named.
> > >
> > >
> > Hmmm, it should be there, for all of the @XxxLayout annotations, eg
> >
> > @DomainServiceLayout(named="...")
> > @PropertyLayout(named=...")
> >
> > etc
> >
> > It's in the XxxLayout annotations (rather than the "domain" annotations)
> > because it only impacts the UI.
> >
> > Thx
> > Dan
> >
>

Re: Any opinions on this proposal (ISIS-970) to reduce the number of Isis annotations?

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

The improvement is good ! Especially for newcomers.

What is the backward compatibility policy ?
I didn't have a chance to review the changes but I assume the old
annotations will be supported for 1.x, probably deprecated ?

On Wed, Dec 10, 2014 at 11:16 AM, Dan Haywood <da...@haywood-associates.co.uk>
wrote:

> On 10 December 2014 at 09:09, GESCONSULTOR - Óscar Bou <
> o.bou@gesconsultor.com> wrote:
>
> > First thoughts here ...
> >
> >
> > It seems obvious that it would be clearer and also easier to learn (as
> you
> > could easily discover all property, collection or action options easily
> > simply by looking at the possible annotation fields.
> >
>
> Yes, that's my main motivation... grokkability/discoverability.
>
>
>
>
> >
> > So seems a great idea  ... :))
> >
>
> OK, thanks for the vote.
>
>
>
>
> >
> > I miss "name" as an equivalent to @Named.
> >
> >
> Hmmm, it should be there, for all of the @XxxLayout annotations, eg
>
> @DomainServiceLayout(named="...")
> @PropertyLayout(named=...")
>
> etc
>
> It's in the XxxLayout annotations (rather than the "domain" annotations)
> because it only impacts the UI.
>
> Thx
> Dan
>

Re: Any opinions on this proposal (ISIS-970) to reduce the number of Isis annotations?

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

The improvement is good ! Especially for newcomers.

What is the backward compatibility policy ?
I didn't have a chance to review the changes but I assume the old
annotations will be supported for 1.x, probably deprecated ?

On Wed, Dec 10, 2014 at 11:16 AM, Dan Haywood <da...@haywood-associates.co.uk>
wrote:

> On 10 December 2014 at 09:09, GESCONSULTOR - Óscar Bou <
> o.bou@gesconsultor.com> wrote:
>
> > First thoughts here ...
> >
> >
> > It seems obvious that it would be clearer and also easier to learn (as
> you
> > could easily discover all property, collection or action options easily
> > simply by looking at the possible annotation fields.
> >
>
> Yes, that's my main motivation... grokkability/discoverability.
>
>
>
>
> >
> > So seems a great idea  ... :))
> >
>
> OK, thanks for the vote.
>
>
>
>
> >
> > I miss "name" as an equivalent to @Named.
> >
> >
> Hmmm, it should be there, for all of the @XxxLayout annotations, eg
>
> @DomainServiceLayout(named="...")
> @PropertyLayout(named=...")
>
> etc
>
> It's in the XxxLayout annotations (rather than the "domain" annotations)
> because it only impacts the UI.
>
> Thx
> Dan
>

Re: Any opinions on this proposal (ISIS-970) to reduce the number of Isis annotations?

Posted by Dan Haywood <da...@haywood-associates.co.uk>.
On 10 December 2014 at 09:09, GESCONSULTOR - Óscar Bou <
o.bou@gesconsultor.com> wrote:

> First thoughts here ...
>
>
> It seems obvious that it would be clearer and also easier to learn (as you
> could easily discover all property, collection or action options easily
> simply by looking at the possible annotation fields.
>

Yes, that's my main motivation... grokkability/discoverability.




>
> So seems a great idea  ... :))
>

OK, thanks for the vote.




>
> I miss "name" as an equivalent to @Named.
>
>
Hmmm, it should be there, for all of the @XxxLayout annotations, eg

@DomainServiceLayout(named="...")
@PropertyLayout(named=...")

etc

It's in the XxxLayout annotations (rather than the "domain" annotations)
because it only impacts the UI.

Thx
Dan

Re: Any opinions on this proposal (ISIS-970) to reduce the number of Isis annotations?

Posted by GESCONSULTOR - Óscar Bou <o....@gesconsultor.com>.
First thoughts here ...


It seems obvious that it would be clearer and also easier to learn (as you could easily discover all property, collection or action options easily simply by looking at the possible annotation fields.
That way we would be doing something equivalent to JPA or JDO, where you have a @Persistent or @Column annotation with a lot of options there.

So seems a great idea  ... :))

I miss "name" as an equivalent to @Named.



 
> El 9/12/2014, a las 21:44, Mabanga, Sizwe <SM...@wesbank.co.za> escribió:
> 
>>> see https://issues.apache.org/jira/browse/ISIS-970
>  Makes great sense to me.
>  The proliferation of annotations makes my classes ugly. Surely classes can be clever and pretty?
>>> Already part way there with the new @XxxLayout (UI hint) annotations; occurred to me that might make sense to do something similar for the remaining (domain) annotations.
>>> Comment on the ticket or on this thread, whichever.
> 
> 
>>> Cheers
>>> Dan
> 
> 
> To read WesBank's Disclaimer for this email click on the following address or copy into your Internet browser: 
> https://www.wesbank.co.za/wesbankcoza/about/legal/emaildisclaimer.xhtml
> 
> If you are unable to access the Disclaimer, send a blank e-mail to
> emaildisclaimer@wesbank.co.za and we will send you a copy of the Disclaimer.


Óscar Bou Bou
Responsable de Producto
Auditor Jefe de Certificación ISO 27001 en BSI
CISA, CRISC, APMG ISO 20000, ITIL-F

   902 900 231 / 620 267 520
   http://www.twitter.com/oscarbou <http://www.twitter.com/oscarbou>

   http://es.linkedin.com/in/oscarbou <http://es.linkedin.com/in/oscarbou>

   http://www.GesConsultor.com <http://www.gesconsultor.com/> 




Este mensaje y los ficheros anexos son confidenciales. Los mismos contienen información reservada que no puede ser difundida. Si usted ha recibido este correo por error, tenga la amabilidad de eliminarlo de su sistema y avisar al remitente mediante reenvío a su dirección electrónica; no deberá copiar el mensaje ni divulgar su contenido a ninguna persona.
Su dirección de correo electrónico junto a sus datos personales constan en un fichero titularidad de Gesdatos Software, S.L. cuya finalidad es la de mantener el contacto con Ud. Si quiere saber de qué información disponemos de Ud., modificarla, y en su caso, cancelarla, puede hacerlo enviando un escrito al efecto, acompañado de una fotocopia de su D.N.I. a la siguiente dirección: Gesdatos Software, S.L. , Paseo de la Castellana, 153 bajo - 28046 (Madrid), y Avda. Cortes Valencianas num. 50, 1ºC - 46015 (Valencia). Asimismo, es su responsabilidad comprobar que este mensaje o sus archivos adjuntos no contengan virus informáticos, y en caso que los tuvieran eliminarlos.






Re: Any opinions on this proposal (ISIS-970) to reduce the number of Isis annotations?

Posted by GESCONSULTOR - Óscar Bou <o....@gesconsultor.com>.
First thoughts here ...


It seems obvious that it would be clearer and also easier to learn (as you could easily discover all property, collection or action options easily simply by looking at the possible annotation fields.
That way we would be doing something equivalent to JPA or JDO, where you have a @Persistent or @Column annotation with a lot of options there.

So seems a great idea  ... :))

I miss "name" as an equivalent to @Named.



 
> El 9/12/2014, a las 21:44, Mabanga, Sizwe <SM...@wesbank.co.za> escribió:
> 
>>> see https://issues.apache.org/jira/browse/ISIS-970
>  Makes great sense to me.
>  The proliferation of annotations makes my classes ugly. Surely classes can be clever and pretty?
>>> Already part way there with the new @XxxLayout (UI hint) annotations; occurred to me that might make sense to do something similar for the remaining (domain) annotations.
>>> Comment on the ticket or on this thread, whichever.
> 
> 
>>> Cheers
>>> Dan
> 
> 
> To read WesBank's Disclaimer for this email click on the following address or copy into your Internet browser: 
> https://www.wesbank.co.za/wesbankcoza/about/legal/emaildisclaimer.xhtml
> 
> If you are unable to access the Disclaimer, send a blank e-mail to
> emaildisclaimer@wesbank.co.za and we will send you a copy of the Disclaimer.


Óscar Bou Bou
Responsable de Producto
Auditor Jefe de Certificación ISO 27001 en BSI
CISA, CRISC, APMG ISO 20000, ITIL-F

   902 900 231 / 620 267 520
   http://www.twitter.com/oscarbou <http://www.twitter.com/oscarbou>

   http://es.linkedin.com/in/oscarbou <http://es.linkedin.com/in/oscarbou>

   http://www.GesConsultor.com <http://www.gesconsultor.com/> 




Este mensaje y los ficheros anexos son confidenciales. Los mismos contienen información reservada que no puede ser difundida. Si usted ha recibido este correo por error, tenga la amabilidad de eliminarlo de su sistema y avisar al remitente mediante reenvío a su dirección electrónica; no deberá copiar el mensaje ni divulgar su contenido a ninguna persona.
Su dirección de correo electrónico junto a sus datos personales constan en un fichero titularidad de Gesdatos Software, S.L. cuya finalidad es la de mantener el contacto con Ud. Si quiere saber de qué información disponemos de Ud., modificarla, y en su caso, cancelarla, puede hacerlo enviando un escrito al efecto, acompañado de una fotocopia de su D.N.I. a la siguiente dirección: Gesdatos Software, S.L. , Paseo de la Castellana, 153 bajo - 28046 (Madrid), y Avda. Cortes Valencianas num. 50, 1ºC - 46015 (Valencia). Asimismo, es su responsabilidad comprobar que este mensaje o sus archivos adjuntos no contengan virus informáticos, y en caso que los tuvieran eliminarlos.






RE: Any opinions on this proposal (ISIS-970) to reduce the number of Isis annotations?

Posted by "Mabanga, Sizwe" <SM...@wesbank.co.za>.
>>see https://issues.apache.org/jira/browse/ISIS-970
  Makes great sense to me.
  The proliferation of annotations makes my classes ugly. Surely classes can be clever and pretty?
>>Already part way there with the new @XxxLayout (UI hint) annotations; occurred to me that might make sense to do something similar for the remaining (domain) annotations.
>>Comment on the ticket or on this thread, whichever.


>>Cheers
>>Dan


To read WesBank's Disclaimer for this email click on the following address or copy into your Internet browser: 
https://www.wesbank.co.za/wesbankcoza/about/legal/emaildisclaimer.xhtml

If you are unable to access the Disclaimer, send a blank e-mail to
emaildisclaimer@wesbank.co.za and we will send you a copy of the Disclaimer.

RE: Any opinions on this proposal (ISIS-970) to reduce the number of Isis annotations?

Posted by "Mabanga, Sizwe" <SM...@wesbank.co.za>.
>>see https://issues.apache.org/jira/browse/ISIS-970
  Makes great sense to me.
  The proliferation of annotations makes my classes ugly. Surely classes can be clever and pretty?
>>Already part way there with the new @XxxLayout (UI hint) annotations; occurred to me that might make sense to do something similar for the remaining (domain) annotations.
>>Comment on the ticket or on this thread, whichever.


>>Cheers
>>Dan


To read WesBank's Disclaimer for this email click on the following address or copy into your Internet browser: 
https://www.wesbank.co.za/wesbankcoza/about/legal/emaildisclaimer.xhtml

If you are unable to access the Disclaimer, send a blank e-mail to
emaildisclaimer@wesbank.co.za and we will send you a copy of the Disclaimer.