Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Ajax/perl/javascript in perl

by derby (Abbot)
on Apr 26, 2010 at 12:02 UTC ( [id://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

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 (Archbishop) on Apr 26, 2010 at 20:48 UTC

    ++ here too.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-03-19 04:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found