copyright © 2001, logicept corporation. all rights reserved.logicept corporation 25 washington...
TRANSCRIPT
Copyright © 2001, Logicept Corporation. All Rights Reserved. Logicept Corporation • 25 Washington Street • 3rd Floor • Brooklyn, NY 11201Slide 1
Jaron J. RubensteinDirector of TechnologyLogicept [email protected]
Developing a B2B Commerce Site Using Perl/MasonO'Reilly Open Source Convention Thursday, July 26, 2001
Edward ZborowskiProgrammerLogicept Corporation [email protected]
Copyright © 2001, Logicept Corporation. All Rights Reserved. Logicept Corporation • 25 Washington Street • 3rd Floor • Brooklyn, NY 11201Slide 2
Overview
• What is Mason?• Large-scale B2B site
characteristics• Technology requirements• Why Mason?• Experiences porting PHP to Mason• Questions and discussion
Copyright © 2001, Logicept Corporation. All Rights Reserved. Logicept Corporation • 25 Washington Street • 3rd Floor • Brooklyn, NY 11201Slide 3
What is Mason?
• Perl-based Web site engine• Embed Perl in HTML pages• Object-like architecture • Caching & templates• Separation of
business/presentation layers
Copyright © 2001, Logicept Corporation. All Rights Reserved. Logicept Corporation • 25 Washington Street • 3rd Floor • Brooklyn, NY 11201Slide 4
Sample Mason Code
<%args>$email$name => undef
</%args><%init>
my $address = $email;$address = “$name <$email>” if defined( $name );
</%init><html><body>Your email header is <% $address %></body></html>
Copyright © 2001, Logicept Corporation. All Rights Reserved. Logicept Corporation • 25 Washington Street • 3rd Floor • Brooklyn, NY 11201Slide 5
Large-scale B2B site characteristics
• High traffic• Full catalog access• Invoice, credit, and payment
tracking• Shopping cart• Data validation• Information hiding
Copyright © 2001, Logicept Corporation. All Rights Reserved. Logicept Corporation • 25 Washington Street • 3rd Floor • Brooklyn, NY 11201Slide 6
Technology requirements
• Front-end vs. Back-end• Separate business and
presentation logic• Open standards• Standard date and money
manipulation• User sessions
Copyright © 2001, Logicept Corporation. All Rights Reserved. Logicept Corporation • 25 Washington Street • 3rd Floor • Brooklyn, NY 11201Slide 7
Why Mason?
• Code reuse• Object Oriented techniques• Supports multiple developers with
different skill sets• Perl• Easy to create• Easy to modify
Copyright © 2001, Logicept Corporation. All Rights Reserved. Logicept Corporation • 25 Washington Street • 3rd Floor • Brooklyn, NY 11201Slide 8
Experiences porting PHP to Mason
• Both use embedded HTML pages• Repetitiveness eliminated• PHP classes to Perl classes• Security handled by Mason• Harder to read PHP
Copyright © 2001, Logicept Corporation. All Rights Reserved. Logicept Corporation • 25 Washington Street • 3rd Floor • Brooklyn, NY 11201Slide 9
Questions and discussion
• Any questions?– What would you have done
differently?
Copyright © 2001, Logicept Corporation. All Rights Reserved. Logicept Corporation • 25 Washington Street • 3rd Floor • Brooklyn, NY 11201Slide 10
Contact Information
Jaron J. RubensteinDirector of TechnologyE-mail: [email protected]
Edward ZborowskiProgrammerE-mail: [email protected]
Logicept Corporation25 Washington Street, 3rd
FloorBrooklyn, NY 11201www.logicept.com
T (718) 858-2822F (718) 504-4615E [email protected]
For a copy of this slide presentation, please visit: www.logicept.com/knowledge/