Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Perl Contempt in My Workplace

by choroba (Cardinal)
on May 05, 2021 at 13:38 UTC ( [id://11132069]=note: print w/replies, xml ) Need Help??


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

> Recently I tried to use JQuery/Datatables and even found several CPAN modules for it, tried to use these and failed. After I've failed in perl, I succeeded with NodeJS on that, I got what I needed. I had confirmation on my table that other language's ecosystem is more current.

Whose magic wand's going to fix that? If you find a library is missing, you are the best candidate to fill the gap!

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^3: Perl Contempt in My Workplace
by vkon (Curate) on May 05, 2021 at 13:57 UTC
    So I found that the library was missing (not exactly missing - there were CPAN modules which haven't fulfilled my needs)
    but I found what I needed in nodejs ecosystem http://www.npmjs.com/

    But I see your point about creating such a module myself and uploading it to CPAN. And ~10 years ago it was the approach which I probably have choose, because all other libraries are here on CPAN.

    Perl have lost critical mass of its users, who will fill the gaps on missing modules, unfortunately for me and for other perl users.

      "who will fill the gaps on missing modules"

      Various 'Datatables' modules exist on cpan, you didn't say which ones you tried and how they failed. Luckily, you don't need a perl module to return the data required for datatables, as has been made clear to you, the perl core modules achieve this without issue.

        this is what I've tried
        use strict; use DBI; use DataTables; my $dbfile = 'base.db'; my $dbh = DBI->connect("dbi:SQLite:dbname=$dbfile","",""); my $dt = DataTables->new(dbh => $dbh); #set table to select from $dt->tables(["t"]); #set columns to select in same order as order of columns on page $dt->columns(["LPAR", "UCODE", "BOX", "Serial Number", "Box Name", "TE +ST", "N_OF_TEST", "N_OF_ERR"]); use Mojolicious::Lite; #print json back to browser get '/data-source' => sub { my $c = shift; $dt->print_json; }; app->start;
        Ok, now I've remembered on what's missing here.
        I need to work with database of 10_000_000+ records, those do not fit just JSON.

        I see that this module recently updated... How can I trust version 0.08? Author makes it clear that the module far from robust?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-03-29 12:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found