Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror

Comment Depends on complexity of app (Score 1) 156

I typically embed HTML within my Perl CGI code in order to just get things done initially. The primary focus is on functionality, not aesthetics or maintainability. Once things are functional, it depends on how complex the application is and who will be using/managing it. If it's just a quick and dirty admin script to do a few basic tasks, I wouldn't even worry about it. However, if it is something that is likely to continue to grow and be maintained by many users, I will typically move the HTML out of the main codebase and create HTML template files that can be managed separately and are loaded by the CGI code. While it would be nice to develop all applications this way, often it is not necessary, and you'll never see the benefits of having done so. Then again, once you've created a template framework, it's not terribly difficult to reuse either...

Slashdot Top Deals

There's nothing worse for your business than extra Santa Clauses smoking in the men's room. -- W. Bossert

Working...