Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

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.


Replies are listed 'Best First'.
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 (Bishop) on Apr 26, 2010 at 20:48 UTC

    ++ here too.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://836896]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2018-05-25 15:08 GMT
Find Nodes?
    Voting Booth?