On Sep 30, 2011, at 7:24 AM, Nick Knutov wrote:
Hello,
Looks interesting, but I personally very dislike Moose/Mouse/Moo syntax. Will it be possible to write plugins for Dancer2 without Moo?
I too detest Moose, but hadn't seen Moo, which now looks very interesting. It seems to be in the spirit of ::Tiny, and I love all ::Tiny (pretty much exclusively use Template::Tiny). sidenote -- Why I dislike Moose: I never installed Moose. But, I ended up getting Moose because I installed something else (I think it was an app based on Catalyst). So, I wanted a croissant... and suddenly I saw all the ingredients in the grocery store, and all the parts of a kitchen, and a house and a factory flying by me... WTF! Maybe it is just perception. If Moose had installed silently, and I had never known about it, I wouldn't have been bothered by it. Lesson: keep Dancer lightweight. Every change in its core should be a change that has a legitimate reason, not gratuitous.
30.09.2011 16:47, sukria пишет:
Hi there,
I am very glad and proud to announce here that I've came up with a prototype of dancer2 that pleases me enough to be advertised.
-*- https://github.com/sukria/dancer2 -*-
dancer2 is a complete rewrite of Dancer aiming at providing the same awesomeness with the following major changes:
- no more globals in the core - 100% object-oriented backend (based on Moo) - better scoping for sub-applications - better design (no more encapsulation violations, Law of Demeter, ...)
The prototype I've pushed to GitHub currently covers ~80% of the DSL of Dancer. It's able to run simple applications (it can run the PerlDancer.org website for instance).
Of course, with your real-life applications, it will break in many places in this current shape, and this is where you can help. I'd like to have as many reports as possible regarding upgrades tests.
You can test very easily your app with dancer2:
$ git clone http://github.com/sukria/dancer2.git $ cd YOUR_APP $ perl -I../dancer2/lib bin/app.pl
Also, important to know: most of the plugins may not be working well.
Thanks a lot ;)