Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: In Defense of Smart::Comments

by metaperl (Curate)
on Jun 01, 2010 at 14:13 UTC ( [id://842617]=note: print w/replies, xml ) Need Help??


in reply to Re: In Defense of Smart::Comments
in thread In Defense of Smart::Comments

I work in a legacy CGI environment and Smart::Comments is just the ticket. I dont have access to a debugger in a CGI script (do I?) and a good IDE is out of the question when all you have it plain-text ssh into a machine.



The mantra of every experienced web application developer is the same: thou shalt separate business logic from display. Ironically, almost all template engines allow violation of this separation principle, which is the very impetus for HTML template engine development.

-- Terence Parr, "Enforcing Strict Model View Separation in Template Engines"

Replies are listed 'Best First'.
Re^3: In Defense of Smart::Comments
by GrandFather (Saint) on Jun 01, 2010 at 21:17 UTC

    There is nothing (much) magic about CGI scripts. Just run them as though from the command line. The IDE I'm using simulates a CGI environment which helps, but isn't essential.

    There is no need to debug on the remote machine either of course. In fact it's probably safer to use an off line copy of databases and anything else required by the script when debugging and do the lot on your local machine.

    The built in debugger is text mode so you can use that without trouble on your live machine over a plain-text ssh connection should you decide that sort of chain saw juggling is for you.

    True laziness is hard work
      There is nothing (much) magic about CGI scripts. Just run them as though from the command line. The IDE I'm using simulates a CGI environment which helps, but isn't essential.
      cookies, SSL, filling out authentication and authorization forms before the main body of the script will run. hard to do via perl -d cgi-script.pl
      There is no need to debug on the remote machine either of course. In fact it's probably safer to use an off line copy of databases and anything else required by the script when debugging and do the lot on your local machine.
      it certainly would be a good idea. especially if everything were setup for that. in fact, the easier the whole setup is to port to various places, the cleaner the release control process is.



      The mantra of every experienced web application developer is the same: thou shalt separate business logic from display. Ironically, almost all template engines allow violation of this separation principle, which is the very impetus for HTML template engine development.

      -- Terence Parr, "Enforcing Strict Model View Separation in Template Engines"

Log In?
Username:
Password:

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

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

    No recent polls found