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

Re^4: Perl Contempt in My Workplace

by marto (Cardinal)
on May 05, 2021 at 12:09 UTC ( #11132063=note: print w/replies, xml ) Need Help??


in reply to Re^3: Perl Contempt in My Workplace
in thread Perl Contempt in My Workplace

I'd never used Datatables before, the first page you linked to highlights what can be used as a data source, it's not a perl specific thing. Expecting programmers to write code isn't unreasonable. Adding needless dependencies is a dangerous thing, as NodeJS developers found out to their peril.

Update: "...but this means I need to do all my heavy-lifting myself, whereas I want be standing on shoulders of giants. " that's why JSON::PP is core, you just return the data (from database query or other munging) in JSON format. A more polished end to end process is why this is also part of modern web frameworks like Mojolicious, and why they're such fun to work with, e.g. $c->render( json => { data => $griddata, cols => \@cols } );

Replies are listed 'Best First'.
Re^5: Perl Contempt in My Workplace
by vkon (Curate) on May 05, 2021 at 13:45 UTC
    ok, so basically you're suggesting me to redo all negotiations to Jquery/datatables from scratch using JSON::PP and do a lot of fun with modern web frameworks.

    This is exactly what I was trying to avoid, I want to reuse CPAN modules, not create yet another CPAN module version 0.001 which is to be soon abandoned.

    my "fun" area is desktop application programming with GUI preferable with a single executable.
    I do not use web frameworks at all - this is not my point of interest.

      You said Perl is no longer of that 20 years ago., and there's a good reason for not doing these things the same way you did them 20 years ago. The front page of the datatables site you linked to shows which data sources are supported, so you couldn't have looked very far. Using the core JSON module to return your data, regardless of its source is all you had to do, no need to 'create yet another CPAN module'. All of your complaints are simply addressed reading the docs of the tool you choose to use (datatables) and using the core perl modules. No need for anything else. You seemed to think it more productive not to do this, but try various CPAN modules which you didn't seem to get working.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2021-12-01 00:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?