Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Ajax/perl/javascript in perl

by derby (Abbot)
on Apr 26, 2010 at 12:02 UTC ( #836896=note: print w/ replies, xml ) Need Help??


in reply to Ajax/perl/javascript in perl

realmonk please forgive me in advance, I'm not ranting on you (but it may feel that way) but ... CGI::Ajax and other modules like it are *dangerous* IMHO. No, they're not going to blow anything up or cause catastrophic failure but they are going to prevent you from not only learning another language, they also obfuscate the natural boundary between server-side and client-side coding.

I think every perl dev should learn Javascript ... JQuery. Then learn a good templating module (HTML::Template, Template::Toolkit, etc.). Putting JS and HTML in your perl code is *not* 'peanut butter in my chocolate' nor is it 'red wine with chicken' ... it's more like 'driving and drinking' -- two really fun activities that should never be combined.

-derby


Comment on Re: Ajax/perl/javascript in perl
Re^2: Ajax/perl/javascript in perl
by assemble (Friar) on Apr 26, 2010 at 20:02 UTC
    I have to agree with derby. I started my AJAX experiments with CGI::Ajax, but quickly discovered that it actually hurt more than it helped in most cases. I personally use CGI::Application for my webapps, and for AJAX code I just make new runmodes for AJAX queries and then use one of the excellent functions provided with jQuery.
Re^2: Ajax/perl/javascript in perl
by Your Mother (Canon) on Apr 26, 2010 at 20:48 UTC

    ++ here too.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://836896]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2014-11-29 05:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (203 votes), past polls