Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^5: Perl AJAX jQuery, js file

by marto (Cardinal)
on Jan 11, 2021 at 13:31 UTC ( [id://11126752]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Perl AJAX jQuery, js file
in thread Perl AJAX jQuery, js file

"...but it's too full of functionality! "

The advantages of using a framework like Mojo is that you get all the benefits they bring, but nobody forces you to use each and every feature. Your application code is separate from the base framework, so caring about things which won't impact you (should you choose not to use them) seems illogical. Writing a safe CGI and DBI "from scratch" seems fraught with risk for little reward compared to something like Mojo/CGI & DBI, which all have literal years of developer time spent honing the solutions.

Replies are listed 'Best First'.
Re^6: Perl AJAX jQuery, js file
by monx663 (Sexton) on Jan 11, 2021 at 13:58 UTC
    I was writing Perl when every Mb of RAM saved and milliseconds of code interpretation, counted, in complex and huge data structure processing.
    I got the "count your pennies" coding mentality from those days :p
      "Back in the day", hardware was EXPENSIVE, not to mention the cost of the physical space, power and cooling that it required. This was where managers "counted pennies". The programming style that you describe was needed to make things work in the environment that we were given. Today, the cost of programming, especially maintenance, far exceeds the cost of hardware. Tools that reduce these costs are almost certain to reduce the cost of a project. It simply does not mater that they 'waste' hardware resources. Old habits die hard, but pennies still count.
      Bill
        Yours, was exactly my mentality when I re-wrote a legacy system with OOP, object driven UI displays and atomic DB transactions. ...From its old style, batch and procedural methods. But, I DO hate memory and CPU waste! I hate carrying 2Mb of framework source code, when I could have written one extra method in a base class/package.

        Best wishes for your input, guys/girls.

        -- Cheers,
        Kostas
Re^6: Perl AJAX jQuery, js file
by monx663 (Sexton) on Feb 01, 2021 at 19:47 UTC

    You know, I think you were right about Mojo. I bit the bullet and will use it, seeing it seems to be able to help rid my project of other CPAN dependencies and seems light enough for all it does.
    It looks great stuff and I've just begun reading up on it in order to incorporate it with Bootstrap and jQuery, into the 21st century version of the CMS.

    Wish me luck!

      Please start a new thread with any related questions you may have. Mojo just makes life as a developer easy and fun again. Sort of related, for personal work I ditched jQuery, bloated. Consider You might not need jQuery.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-04-25 21:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found