Programming Dual Interface Applications In Perl

obtainablerabbiΔιαχείριση Δεδομένων

31 Ιαν 2013 (πριν από 4 χρόνια και 2 μήνες)

125 εμφανίσεις

Programming Dual Interface
Applications In Perl

Perfectly Eclectic Rubbish Lister

By

Kenneth Gonsalves

Lawgon@TheNilgiris.com

OVERVIEW


Applications, not Web Sites


Opensource and not Closed Source


User as partner


Large Volume Data Entry


Sensitive Back Office Stuff


Avoiding User Shortcuts

INTERFACES

Xwindows:


fast need front end


need physical presence


Secure


SysAdmin stuff

Web:


slower


platform independent


no need for front end


no need for physical presence


not so secure

Choice of Language


One language vs. many


c
-

java
-

perl


scripting language is user friendly


TIMTOWTDI


cpan
-

choosing modules:


revisions dependencies mailling lists


to use modules or not:


complexity of the application

Backend

Mysql:


fast non acid licensing problems

Postgresql:


slower acid feature rich no licensing problems

DBI:


Connect


Prepare


Execute


Fetchrow

Xwindows Front End

Xforms4perl:


fdesign

gtkperl:


glade

perlqt:


3.0

Wxwindows


wxperl

PerlTk:


SpecPerl


Native Perl

Web Front End

CGI module:


no need to write HTML


Java script needed?


Taint Mode

Session Management:


memory
-

file
-

database
-

cookies


Session Management Options


Apache Session


CGI Session


Screen, Mxscreen ...


CGI::Application

CGI::SecureState:


paranoid security


forgetful


memory


add and delete


encrypted state files

Templates


Need For Templates

Design:


no WYSIWYG tool


Separate Design from code


Mozilla Composer


Quanta


Joe


mason embedperl petal template toolkit

HTML::Template

Kiss and no dependencies


Commands:


tmpl_var


tmpl_if


tmpl_loop


tmpl_include


Associate

Putting It Together

Xwindows:


large volume entry


batch processing


template entry


admin functions

Web:


Browsing reports


Occasional Data Entry


Avoid sensitive stuff


mod_perl

Useful Links


http://www.perl.org


http://search.cpan.org


http://www.perlmonks.org


http://poe.perl.com


Lawgon@thenilgiris.com


There Is More Than One Way To Do It!