Hi, Am 21.12.2007 um 12:46 schrieb Lars Trieloff:
Right. But this realization should come from the user, not from the framework that says for this certain feature, you have to forget everything you learned about scripting and start using an IDE, Maven and OSGi, even if you just want to implement a small filter that validates your request parameter or overrides the content-type- header in the response.
[...]
Right. But moving to Sling, should mean chosing the Servlet implementation voluntarily over the script implementation. This separation between Sling and Microsling will not prove helpful if we do not understand that Servlet and scripts are two different, but equally valid expression of one of the concepts listed above.
I agree that from the user point of view it makes sense to have everything scriptable. Scripts directly in the repository are good for the beginner, for quickly creating prototypes, for playing around with certain features, for having a rapid application development platform and even for being able to simply edit scripts in a browser-based IDE like it is getting popular now (for the iPhone [1] or for web 2.0 apps [2]). But once your application gets bigger, runs on multiple machines, is developed by many developers at the same time and crossed its first release, you need SCM, a structured deployment and software lifecycle management. This is much better handled with OSGi bundles.
It will be a great overall feature of Sling to support both "programming" styles. The only thing missing in the current state is support for an easy transition from your prototypical script-based application to a mainly servlet-based and bundled app. There is the idea to automatically create bundles from scripts inside the repository, which would remove the burden of learning bundle configuration from the user and give him a good kick start with his existing code. This roundtrip feature would IMHO solve the script vs. bundle discussion perfectly.
Alex [1] http://www.jiggyapp.com/ [2] http://appjet.com/ ----------------------------< [EMAIL PROTECTED] >--- Alexander Klimetschek, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel, T +41 61 226 55 31, M +49 151 15 77 20 56 ---------------------------------------< http://www.day.com >--- Xing: http://www.xing.com/go/invite/3268380.32d2d4 LinkedIn: http://www.linkedin.com/in/klimetschek Blog: http://weblogs.goshaky.com/weblogs/alexkli/
