You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Merdes, Matthias" <me...@hdm-international.com> on 2007/05/16 10:51:22 UTC
newbie question: benefits vs disadvantages of flowscript?
hi,
we are currently in the process of evaluating and/or restructuring an
existing cocoon application.
being a cocoon beginner i fail to see the benefits of
flowscript/javascript for the controller layer.
of course it is a good practice to have an explict controller layer
(control as in MVC),
BUT: why does it have to be in a scripting language?
imho, this has at least the following drawbacks
(mostly related to crossing the java-javascript-boundary in eclipse
during development):
-cannot refactor java-javascript
-cannot semantically search for usages of java classes in javascript and
vice versa
-cannot navigate (F3) easily between java-javascript
-cannot easily unit-test the javascript stuff with junit
-cannot debug javascript during run-time in the java debugger
-business logic (or technical framwork-related logic) tends to creeping
into the flowscript
i would much prefer to do everything in java itself.
so my questions are:
-am i missing anything?
-is there a recommended way to migrate the flowscript to java?
-will this change in cocoon 2.2?
any advice is greatly appreciated.
thanks
matthias
Matthias Merdes
Senior Software Developer
_________________________________________
Heidelberg Mobil International GmbH
Phone: +49 6221 533 254
Fax: +49 6221 533 129
eMail: matthias.merdes@hdm-international.com
_________________________________________
Schloss-Wolfsbrunnenweg 33
69118 Heidelberg
Germany
Amtsgericht Mannheim / HRB 701994
CEO: Thomas Reinhart
________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: newbie question: benefits vs disadvantages of flowscript?
Posted by Alexander Klimetschek <al...@mindquarry.com>.
Hi,
just two short answers, as far as I can do that:
Merdes, Matthias schrieb:
> -cannot refactor java-javascript
> -cannot semantically search for usages of java classes in javascript and
> vice versa
> -cannot navigate (F3) easily between java-javascript
> -cannot easily unit-test the javascript stuff with junit
> -cannot debug javascript during run-time in the java debugger
> -business logic (or technical framwork-related logic) tends to creeping
> into the flowscript
Yes, one has to try to keep the flowscript code minimized.
> -will this change in cocoon 2.2?
No, javascript flowscript is not changing in 2.2.
A general note: if your webapplication tends to be REST-style and uses
AJAX-requests, having continuations is a bad idea. IMHO flowscript is good
for multi-page forms, eg. shopping wizards. But in all other cases you
introduce a session on the server, making your webapplication stateful and
you have to think about the lifetime of continuations.
Alex
--
Alexander Klimetschek
http://www.mindquarry.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: newbie question: benefits vs disadvantages of flowscript?
Posted by Joerg Heinicke <jo...@gmx.de>.
On 16.05.2007 10:51, Merdes, Matthias wrote:
> of course it is a good practice to have an explict controller layer
> (control as in MVC),
> BUT: why does it have to be in a scripting language?
> i would much prefer to do everything in java itself.
>
> so my questions are:
> -am i missing anything?
> -is there a recommended way to migrate the flowscript to java?
Though I have not used it myself there is Javaflow. The actual
differences or limitations in comparison to flow script can probably be
best explained by Torsten Curdt. It should at least be "scriptable" as
flow script when used in combination with ReloadingClassLoader.
Joerg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: newbie question: benefits vs disadvantages of flowscript?
Posted by Baptiste Placé <bp...@jouve.fr>.
Hi Matthias,
Although I am no experienced cocoon user, I may change your question by
the following sentence :
What is missing the current cocoon application ? Does cocoon 2.1.x fill
the gap ?
You may have to evaluate the cost of using a scripting language, but
having JS as Flow interpreter is due to the lack of languages supporting
continuations (correct me if I am wrong).
Benefits of FlowScripts are well explained here :
http://cocoon.apache.org/2.1/userdocs/flow/index.html
Moreover, JavaFlow exists in cocoon although I never used it. Have a
look on the apples block in the samples.
Hope this will help.
Baptiste
Merdes, Matthias a écrit :
> hi,
>
> we are currently in the process of evaluating and/or restructuring an
> existing cocoon application.
> being a cocoon beginner i fail to see the benefits of
> flowscript/javascript for the controller layer.
>
> of course it is a good practice to have an explict controller layer
> (control as in MVC),
> BUT: why does it have to be in a scripting language?
>
> imho, this has at least the following drawbacks
> (mostly related to crossing the java-javascript-boundary in eclipse
> during development):
>
> -cannot refactor java-javascript
> -cannot semantically search for usages of java classes in javascript and
> vice versa
> -cannot navigate (F3) easily between java-javascript
> -cannot easily unit-test the javascript stuff with junit
> -cannot debug javascript during run-time in the java debugger
> -business logic (or technical framwork-related logic) tends to creeping
> into the flowscript
>
> i would much prefer to do everything in java itself.
>
> so my questions are:
> -am i missing anything?
> -is there a recommended way to migrate the flowscript to java?
> -will this change in cocoon 2.2?
>
> any advice is greatly appreciated.
> thanks
> matthias
>
>
>
> Matthias Merdes
> Senior Software Developer
> _________________________________________
>
> Heidelberg Mobil International GmbH
>
> Phone: +49 6221 533 254
> Fax: +49 6221 533 129
>
> eMail: matthias.merdes@hdm-international.com
>
> _________________________________________
>
> Schloss-Wolfsbrunnenweg 33
> 69118 Heidelberg
> Germany
>
> Amtsgericht Mannheim / HRB 701994
> CEO: Thomas Reinhart
> ________________________________________
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org