Hi,

I see the following aspects:

1 experienced users migrating an application
2 novice users
3 effort in implementation

Maybe a final decision can be postponed with being optimized for 3 right now.
IMO a programming environment optimized for 2 that is as simple and consistent 
as possible should draw in more users..

-j
-----Ursprüngliche Nachricht-----
Von: Dan Haywood [mailto:d...@haywood-associates.co.uk]
Gesendet: Mittwoch, 4. Dezember 2019 13:05
An: users
Betreff: Re: Should @Action be mandatory in v2.0 ?

OK, Johan, thanks for that vote.

I guess we're balancing this against the complexity within the framework,
to be able to support both styles of programming model.  So at the moment
the framework is more complicated because it does need to support both
modes.  One plus if we do make this change is that @Programmatic goes away
completely.

A different perspective: this makes the framework more of an opt-in rather
than an opt-out.  I could argue that it also changes the "feel", to more of
a library than a framework.  That is, an Apache Isis v2 app is just a
Spring Boot app with various domain objects, and they can be made visible
in the UI if they are annotated.

I'm about 60:40 myself for the proposal ... but that's perhaps because my
head is in the "framework layer" at the moment rather than at the
application layer.

Anyone else?






On Wed, 4 Dec 2019 at 11:54, Johan Doornenbal <jdoornen...@incode.org>
wrote:

> My first reaction is please don’t. I would really like to see that the
> amount of annotations needed on an entity or service is the absolute
> minimum.
>
>  In other words: sensible defaults that ‘just work’ and annotations when
> needed.
>
> Reserved words can make the framework harder to grasp as well? It would me
> nice to bring the amount of concepts to works with also down to the bare
> minimum.
>
> Grtz,
>
> Johan
>
> On Wed, 4 Dec 2019 at 11:44, Dan Haywood <d...@haywood-associates.co.uk>
> wrote:
>
> > Hi folks,
> >
> > Canvassing opinions here.
> >
> > Andi and I are still hard at work on v2.0.  We've been chatting offline
> > about the @Action annotation.  Currently this is optional, but there's a
> > config property (isis.reflector.explicit-annotations.action) that can be
> > set to require it to be required.
> >
> > If it's required, then it allows actions that start with a "reserved"
> word,
> > such as "clear", "disable" and "addTo" to be used as action names.
> >
> > What do folks think about this?  Obviously it means there's more effort
> to
> > migrate to v2.0, but is it a worthwhile trade-off.
> >
> > A couple of follow-on questions.
> >
> > First, if we make @Action mandatory, should we do the same for @Property
> > and @Collection?
> >
> > Second, if we are being explicit about the "main" methods, should we also
> > annotate supporting methods?  There was an earlier discussion about this,
> > where Andi had suggested a @Model annotation, the semantic opposite
> > of @Programmatic.  I prefer the name @Supporting, but at any rate the
> idea
> > is that the developer would annotate all supporting methods, and the
> > framework would then be able to ensure that none had become orphaned.
> >
> > So, to summarise, what do we think about:
> > - @Action mandatory
> > - @Property and @Collection also mandatory
> > - @Supporting as an indicator of any supporting method, to make part of
> the
> > metamodel and ensure not orphaned?
> >
> > Thanks
> >
>

Kühne + Nagel (AG & Co.) KG
Rechtsform: Kommanditgesellschaft, Bremen HRA 21928, USt-IdNr.: DE 812773878.
Geschäftsleitung Kühne + Nagel (AG & Co.) KG: Holger Ketz (Vors. ), Martin 
Brinkmann, Lars-Olof Grün, Matthias Knicky, Nicholas Minde, Johannes Trimborn, 
Lars Wedel, Matthias Weiner.
Persönlich haftende Gesellschafterin: Kühne & Nagel A.G., Rechtsform: 
Aktiengesellschaft nach luxemburgischem Recht, HR-Nr.: B 18745, 
Geschäftsführendes Verwaltungsratsmitglied: Karl Gernandt.
Geschäftsleitung Region Europa: Dr. Hansjörg Rodi (Vors.), Mart Ambur, Tom Ban, 
Dominic Edmonds, Thierry Held, Uwe Hött, Richard Huhn, Jan-Hendrik 
Köstergarten, Heiko Schuhmacher.

Wir arbeiten ausschließlich auf Grundlage der Allgemeinen Deutschen 
Spediteurbedingungen 2017 (ADSp 2017). Hinweis: Die ADSp 2017 weichen in Ziffer 
23 hinsichtlich des Haftungshöchstbetrages für Güterschäden (§ 431 HGB) vom 
Gesetz ab, indem sie die Haftung bei multimodalen Transporten unter Einschluss 
einer Seebeförderung und bei unbekanntem Schadenort auf 2 SZR/kg und im Übrigen 
die Regelhaftung von 8,33 SZR/kg zusätzlich auf 1,25 Millionen Euro je 
Schadenfall sowie 2,5 Millionen Euro je Schadenereignis, mindestens aber 2 
SZR/kg, beschränken. Die ADSp sind auf unserer Webseite als Download 
erhältlich. Auf Anfrage senden wir Ihnen diese auch gerne zu.

Reply via email to