NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
More Sinatra's offsprings in Perl? (Score:1)
oz.
Re: (Score:1)
Actually they did know about Dancer.
After the Dancer release to github, vti wrote a dancer clone using Mojo. Eventually he re-wrote it using Mojolicious, and that was the spark that ignited Mojolicious::Lite development.
Best regards,
life is short
Re: (Score:2)
Uh, that's a little unfair. I've been using Mojo since November last year and it from the git log you only put Dancer on github a few weeks ago.
Mojolicious::Lite is just a variant on the Mojolicious code to allow you to have apps in one file, like you have in Dancer. It's not a fork.
-- ask bjoern hansen [askbjoernhansen.com], !try; do();
Marketing (Score:1)
--fREW
http://blog.afoolishmanifesto.com
Really? (Score:2)
Really? You honestly think that a webapp framework should also ship with its own object system, its own cookie parser, its own HTTP server, its own HTTP header system, and to top it off, its own new templating system!
I look at Mojo and can only think that it represents the height of foolish arrogance, and I for one am repelled by it.
Catalyst is far from perfect, but at least the Catalyst developers can concentrate on building a web framework
Re: (Score:2)
What's wrong with a framework that has such a low barrier to entry?
As Ovid wrote, there is very little required to use it. It's almost like baby talk for a Perl web framework.
What would be wrong with getting to learn about frameworks with Mojolicious::Lite and when you understand them, try to move to the more complete and "grown up" Catalyst.
From alias's Heayy100 [ali.as] Jifty has a dependency of 188 modules and Catalyst isn't in the Top100 so I can only guess (I'll take a WAG and say 100). Which is easier for the
Re: (Score:1)
And once people start coding to it they will not en masse 'move to the more complete and ...' alternatives - this never happens. So this will stay and the simplistic nature will quickly be replaced by more complete and complex implementatio
Re: (Score:2)
You know, that's kind of how PHP started out. They've kicked our tail on what was our home turf in the 90s. And let's face it, Sebastian is not exactly a newbie. And I remember how people told Adam Kennedy that he was wasting his time trying to parse Perl -- sometimes people produce great things when trying to do more than we think they should :)
Re: (Score:1)
I am waiting for the promised Mojo docs for a deeper analysis - but from what I've seen it has a better API than Catalyst - it looks like there was at least some effort put into designing it. So I am not against Mojo as a whole - I am only concerned about that no-dependency policy.
Re: (Score:1)
Rewriting in and of itself isn't necessarily bad. Rewriting poorly, ignoring discoveries of art about what does and doesn't work, and fumbling through well-avoided mistakes is bad.
Re: (Score:1)
Re: (Score:2)
Something failed in the CPAN a long time ago. Having too much choice between modules (sometimes equally good and sometimes equally bad) means that there's been some serious fragmentation. This is one case where having CPAN so large has not been a benefit.
Re: (Score:1)
Re: (Score:1)
Re: (Score:1)
Apparently people can't install modules if they have dependencies, but they can install modules if they don't have dependencies. I don't really get it.
But anyway, reinvention aside, Mojolicious::Lite is basically the same tired CGI.pm ideas repackaged as new syntax. Great for blogging (like so many ideas from the Ruby community), but not so great for solving problems web application developers actually have.
Re: (Score:1)
> Apparently people can't install modules if they have dependencies, but they can install modules if they don't have dependencies. I don't really get it.
There's a large community of people in the world who don't know Perl, and have a simple FTP-upload shared hosting account.
What these people NEED is a zip file they can unroll into their local dreamweaver/whatever directory, tweak a config file or some well commented lines in the script header, and then FTP upload to their website.
That is EXACTLY the reas
Re: (Score:2)
Exactly.
I don't mean to say that having a lot of dependencies is bad, it's just daunting sometimes to figure things out.
I'm not afraid of them [blogspot.com] nor am I fully embracing [catalyzed.org] them either.
Adam and others are working hard to get a more reliable dependency chain, but as Adam mentioned simplicity counts for a significant amount.
Barrier to entry is important.
Re: (Score:2)
There's a big difference between "installing" a module and unpacking it in a directory. Almost anyone can do the latter.
And I can't agree with your comments comparing Mojolicious::Lite to CGI.pm. I'm very familiar with the latter module and it doesn't, out of the box, support this:
Re: (Score:1)
BTW. I use both and will keep using both, but I strongly prefer Mojolicious dispatcher and routes system.
But, yes, I would much prefer have it all based on Moose.
As for the other complaints, you hit and miss on them. The Mojo HTTP framework is MUCH better than any other on CPAN, from a spec-compliance point of view. Maybe thats not something that yo care about, thats ok, but it is a fact.
life is short
Re: (Score:2)
And was it really impossible to work with existing authors to improve their modules? No, of course not, and it's obvious SRI had no interest in doing so.
Re: (Score:2)
I won't comment one way or another on what Sebastian's done because I honestly don't know his motivations, but I have a touch of sympathy for his position here. I can't tell you how many times I've discovered two things:
Re: (Score:2)
My issue is more with you promoting this as a good Perl example.
SRI can do whatever he wants, and should feel free to experiment and have fun.
But his marketing, while good from a marketing perspective, is a turn-off to me because it ignores all the existing solutions.
Re: (Score:2)
I think you're missing the target audience for this though. Let's be honest, whether you like the language or not, PHP ate our lunch here. Users can just upload some files in a directory on their web server, and it "just works".
In an enterprisey environment would I want Catalyst? Sure. But are users with their cheap hosting plans going to be able to install a Catalyst app? Prolly not.
Re: (Score:2)
Most of the "reinventing" is very thoughtfully done - and in surprisingly little code.
The template thing is indeed a little silly; but it's a very simple template module and Mojolicious has extensive support for plugging in other "renderers" (a bunch already exist on CPAN).
It's all trade-offs (of course).
With Catalyst there's a good deal of "having to learn the underlying bits" to really understand what's going on. In Mojo there's less code and it's more internally consistent.
(That being said, I do think
-- ask bjoern hansen [askbjoernhansen.com], !try; do();
By any other name... (Score:1)
+1
Keeping technology simple since 2003