|
|
|
|
|
by kbenson
2951 days ago
|
|
You can also get a real quick exposure from the Modern::Perl module[1], which is by the author of the book mentioned in a sibling reply. The basic idea is simple though. Use strict. Use warnings. Use new features and best practices modules (Task::Kensho[2] an help here) when them make sense (e.g. Moose/Moo). Be aware at least what PBP[3] is, and if you feel so inclined, use Perl::Tidy and/or Perl::Critic (even if your own defined subset of rules) to give yourself an idea of what is considered good practices (and when to throw them our for that elegant line or two, just don't forget to comment it so you don't confuse yourself when you see it months/years later). Basically, if you care about the code you write, you should find yourself gravitating towards writing Modern Perl anyway, and the speed at which it happens is largely determined by your exposure to the Perl community at large. My own personal set of best practices means almost always using something like Function::Parameters or Kavorka, and possibly Moops.[4] 1: https://metacpan.org/pod/Modern::Perl 2: https://metacpan.org/pod/Task::Kensho 3: http://shop.oreilly.com/product/9780596001735.do 4: https://news.ycombinator.com/item?id=11633961 |
|
Uhm, I can't see Catalyst listed in the web development section... Has it fallen out of grace ?