100 likes | 247 Views
Developing a B2B Commerce Site Using Perl/Mason. O'Reilly Open Source Convention Thursday, July 26, 2001. Jaron J. Rubenstein Director of Technology Logicept Corporation jaron@logicept.com. Edward Zborowski Programmer Logicept Corporation ed@logicept.com. Overview. What is Mason?
E N D
Developing a B2B Commerce Site Using Perl/Mason O'Reilly Open Source Convention Thursday, July 26, 2001 Jaron J. Rubenstein Director of Technology Logicept Corporation jaron@logicept.com Edward Zborowski Programmer Logicept Corporation ed@logicept.com
Overview • What is Mason? • Large-scale B2B site characteristics • Technology requirements • Why Mason? • Experiences porting PHP to Mason • Questions and discussion
What is Mason? • Perl-based Web site engine • Embed Perl in HTML pages • Object-like architecture • Caching & templates • Separation of business/presentation layers
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>
Large-scale B2B site characteristics • High traffic • Full catalog access • Invoice, credit, and payment tracking • Shopping cart • Data validation • Information hiding
Technology requirements • Front-end vs. Back-end • Separate business and presentation logic • Open standards • Standard date and money manipulation • User sessions
Why Mason? • Code reuse • Object Oriented techniques • Supports multiple developers with different skill sets • Perl • Easy to create • Easy to modify
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
Questions and discussion • Any questions? • What would you have done differently?
Jaron J. Rubenstein Director of Technology E-mail: jaron@logicept.com Edward Zborowski Programmer E-mail: ed@logicept.com Logicept Corporation 25 Washington Street, 3rd Floor Brooklyn, NY 11201 www.logicept.com T (718) 858-2822 F (718) 504-4615 E info@logicept.com Contact Information For a copy of this slide presentation, please visit: www.logicept.com/knowledge/