Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it viable to start with Catalyst while learning Perl?

Tags:

perl

catalyst

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!

like image 247
pcalcao Avatar asked Oct 27 '11 20:10

pcalcao


People also ask

How much time does it take to learn Perl?

As a rough guide, expect to spend up to two months learning the basics of Perl, with an hour of study per day. If you want to use Perl professionally, you need to study for up to six months to build the understanding you would need to use Perl to the extent required in the workplace.

Is Perl still worth learning?

Perl is not going away even if it tends to be less trendy than other modern languages. It is used in production codebases of many companies, for tasks as diverse as web development, databases access, log analysis or web crawling. It is a core component of most unix-like systems.

Why should I learn Perl?

Perl has been successfully used for a lot of diverse tasks: text processing, system administration, web programming, web automation, GUI programming, games programming, code generation, bio-informatics and genealogical research, lingual and etymological research, number crunching, and testing and quality assurance.


2 Answers

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.

like image 83
Jack Avatar answered Oct 31 '22 16:10

Jack


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.

like image 4
J.J. Avatar answered Oct 31 '22 17:10

J.J.