[dancer-users] How to work with Dancer2 ?
Celogeek
me at celogeek.com
Thu Dec 27 13:13:22 GMT 2012
Ok thank you for your answer.
About my PR it should have no conflict if it was reviewed faster. I will do a rebase to simplify the merge.
About module already updated. How can I know is it ? They is no hint on cpan to show the dancer2 compatible module. I have to dig on each recently update modules and look at the code to know if it's compatible or not.
I undertand about the doc. The main doc will be upgraded. So we can use perldoc inside the project in the meantime and do doc patches if we see something missing.
App::Dancer2 is a tools for boostrapping. It come with "basic" configuration (with or without git), "distzilla" (with git). I will add feature like "dancer2 --plugin MyDancerPlugin" to init a plugin. I just have to learn the best way to do it.
I will look at the internal doc and ask futher questions if it is not clear enought.
May be if the submodule Dancer::Plugin were ship outside Dancer it could be great.
Let say Dancer::Plugin is a module to init plugin. This module give your the abstract to support Dancer1 and Dancer2 automatically with a common language between them. This part handle the Core of dancer for you and simplify the writing of Dancer plugin. Just an idea.
Celogeek
----- Mail original -----
De: "David Precious" <davidp at preshweb.co.uk>
À: dancer-users at dancer.pm
Envoyé: Jeudi 27 Décembre 2012 13:34:53
Objet: Re: [dancer-users] How to work with Dancer2 ?
On Wed, 26 Dec 2012 19:00:21 +0100 (CET)
Celogeek <me at celogeek.com> wrote:
> Hi, I have start hacking Dancer2 project.
>
> I have multiple question :
>
> - I know people are busy, but how long take a patch to be merge after
> 2 validations and 3 weeks still waiting ? I'm waiting to see if the
> project is still active to add futher patches.
It is active.
Assuming you mean PR 132 (using XS versions of a couple of modules for
a slight speed improvement), I would have merged it a lot quicker were
it adding new useful features or fixing a troublesome bug, but as it's
simply a minor performance improvement, I haven't felt the need to give
up too much time to review it yet. I also would have merged it a lot
sooner if it would merge cleanly through GitHub, but it looks like it's
going to conflict.
> - I want to update my Dancer::Plugins::Redis, but I'm a little bit
> lost on the right way to do it. How to be compatible with v1 and v2 ?
See any of the modules which have already been updated - there's only a
few minor changes usually, activated by checking dancer_version (which
is another discussion).
> - Is they an equivalent website as perldancer.org for perldancer2 ?
It's the same project, so will have the same website (it'll be updated
when the first stable release of Dancer2 is made, I'm sure).
> - I have start writing App::Dancer2 (already push on cpan), based on
> the Dancer2 mainline git repository example. Is they a doc somewhere
> to do stuff more complicated ?
What kind of "stuff"?
> - is they a list of Dancer2 already patched module ?
I don't think there's a definitive list yet - if you try loading a
plugin that hasn't been updated to support Dancer2, though, Dancer2
will tell you.
> I think a website like " https://www.djangoproject.com/" or "
> http://rubyonrails.org/" or "http://perldancer.org" could be great to
> speed up the passage from v1 to v2. Having a good tutorial to start a
> Dancer2 project, and to create some awesome Dancer2::Plugins is
> essential. A place where all of this can be found.
Any contributions would be very welcome. I'm not entirely sure of the
relevance of Django or RoR, unless you mean there are parts of their
website you think are good and could be used as inspiration - if so,
feel free to point at those parts :)
> What do you think ?
>
> I was thinking of a kind of wordpress website (like mine :)
> http://blog.celogeek.com ) to push our discover, our tutorial ... Any
> contributor could push their discover.
I've been mulling the idea of a project blog a few times - might be
worth consideration.
Proper tutorial stuff, though, I think should be written up as POD
(Dancer::Tutorial, Dancer::Tutorial::*) and shipped with Dancer itself.
> Something :
>
> Starting a new Dancer2 project
We should have a bootstrapping script ready to go, so that will be
pretty simple, but of course usage of that script should be documented
in the basic tutorial.
> Starting a new Dancer2 Plugins
Indeed, a guide to writing plugins could be valuable. It should be
pretty simple though, so could just be a section in the docs for
Dancer::Plugin (with references to it within the tutorial, etc).
> How to upgrade your Dancer1 plugins to be compatible with Dancer2
Yeah, a guide on that would be good; I think there's already some
content around for that.
> How to create a Dancer1 / Dancer2 plugin
That should be merged with the "Starting a new Dancer2 plugin" above, I
think.
> Hacking Dancer2, how to post your patches
That'll be Dancer::Development when it's ported to D2.
> Our IRC
That's already featured on the website and in documentation etc.
> If anyone is interested, I can work on it and take the
> perldancer2.org domains if needs.
Thanks for the offer but we're fine for hosting and site infrastructure
- contributions towards the documentation as discussed above would be
very gratefully received though!
Cheers!
--
David Precious ("bigpresh") <davidp at preshweb.co.uk>
http://www.preshweb.co.uk/ www.preshweb.co.uk/twitter
www.preshweb.co.uk/linkedin www.preshweb.co.uk/facebook
www.preshweb.co.uk/cpan www.preshweb.co.uk/github
_______________________________________________
dancer-users mailing list
dancer-users at dancer.pm
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
More information about the dancer-users
mailing list