Is it viable to start with Catalyst while learning Perl?
Asked Answered
M

5

5

I'm not quite sure that this is on-topic (if it isn't, I'll delete it ASAP =)).

I've decided to start teaching myself Perl and how to use it for web development. I've done the same about a year ago with Python, and although I'm not an expert (I code in Java during work hours, and spend some personal time trying out other stuff), I've been able to create some websites using Django, and I've used ProjectEuler problems to get to know the basics of the language.

From my first approaches, Perl seems to have a steeper learning curve then Python.

I've been looking at some Web dev. frameworks for Perl and stumbled upon Catalyst, which seems very interesting.

My question here is: Is it even worth it to try it out while still struggling a bit with the language, or will I be wasting my time? Should I master Perl first, and then perhaps CGI before jumping into a framework that probably abstracts many concepts from the developer?

Thanks for any insight!

Maximamaximal answered 27/10, 2011 at 20:19 Comment(1)
Voting to close as per FAQ: not constructive/soliciting debateEnder
B
11

Catalyst is a great framework, and Perl is a great language. I don't know about the steeper learning curve part - I don't know any of the other languages.

As to learning Perl whilst learning Catalyst, this is almost exactly what I did. Work required that I produce something with a web interface. I ran into Catalyst and thought, 'Great, that sounds easy'. Well… it is and it isn't. There are learning curves with everything and Catalyst, like the rest of Perl, gives you plenty of rope — more than enough to hang yourself with.

The way to keep that from happening is to read the Catalyst book, and read some generic Perl books. I'm from a background of UNIX/Linux, so I also read Minimal Perl by Tim Maher, and find it extremely helpful — I go back to it constantly.

CPAN is really helpful with Catalyst — so many people have come up with ways to do "it", and Catalyst can work with pretty much all of it.

Also, make sure you head over to irc.perl.org and listen in on the conversations in the #catalyst and #dbix-class channels. Use #perl on freenode as well.

Baillieu answered 27/10, 2011 at 20:27 Comment(0)
D
4

I think you can fumble through Perl while you use Catalyst. Here's a great book on Catalyst.

My opinion is that learning CGI would teach you the theory behind the framework. You may or may not want that. I think people learn a lot of the theory over time as they become a more advanced user of the framework.

Dumb answered 27/10, 2011 at 20:26 Comment(1)
Thanks alot for the reference to the book! I'll definitly look into it!Maximamaximal
D
3

I would recommend Catalyst while learning Perl.

Perl + Catalyst + Catalyst Tutorials + Modern Perl book = awesome (use in the same time)

Donley answered 27/10, 2011 at 21:19 Comment(0)
G
3

You might start with a "microframework" like Dancer if you want to more-quickly reach a point where you're productive in your learning phase. Catalyst is very good but has its own learning curve, especially if you're also new to Perl.

Gettings answered 28/10, 2011 at 2:23 Comment(0)
L
-2

Maybe you should first start to explore the differences to other languages, which make perl such a good alternative to the classic programming languages. After this I would recommend to start with Catalyst for deepening your skills ;)

Ligament answered 18/5, 2012 at 2:9 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.