copyright © 2001, logicept corporation. all rights reserved.logicept corporation 25 washington...

10
Copyright © 2001, Logicept Corporation. All Rights Reserved. Logicept Corporation • 25 Washington Street • 3rd Floor • Brooklyn, NY 11201 Slide 1 Jaron J. Rubenstein Director of Technology Logicept Corporation [email protected] Developing a B2B Commerce Site Using Perl/Mason O'Reilly Open Source Convention Thursday, July 26, 2001 Edward Zborowski Programmer Logicept Corporation [email protected]

Upload: nigel-mcdonald

Post on 17-Jan-2016

213 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Copyright © 2001, Logicept Corporation. All Rights Reserved.Logicept Corporation 25 Washington Street 3rd Floor Brooklyn, NY 11201 Slide 1 Jaron J. Rubenstein

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]

Page 2: Copyright © 2001, Logicept Corporation. All Rights Reserved.Logicept Corporation 25 Washington Street 3rd Floor Brooklyn, NY 11201 Slide 1 Jaron J. Rubenstein

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

Page 3: Copyright © 2001, Logicept Corporation. All Rights Reserved.Logicept Corporation 25 Washington Street 3rd Floor Brooklyn, NY 11201 Slide 1 Jaron J. Rubenstein

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

Page 4: Copyright © 2001, Logicept Corporation. All Rights Reserved.Logicept Corporation 25 Washington Street 3rd Floor Brooklyn, NY 11201 Slide 1 Jaron J. Rubenstein

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>

Page 5: Copyright © 2001, Logicept Corporation. All Rights Reserved.Logicept Corporation 25 Washington Street 3rd Floor Brooklyn, NY 11201 Slide 1 Jaron J. Rubenstein

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

Page 6: Copyright © 2001, Logicept Corporation. All Rights Reserved.Logicept Corporation 25 Washington Street 3rd Floor Brooklyn, NY 11201 Slide 1 Jaron J. Rubenstein

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

Page 7: Copyright © 2001, Logicept Corporation. All Rights Reserved.Logicept Corporation 25 Washington Street 3rd Floor Brooklyn, NY 11201 Slide 1 Jaron J. Rubenstein

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

Page 8: Copyright © 2001, Logicept Corporation. All Rights Reserved.Logicept Corporation 25 Washington Street 3rd Floor Brooklyn, NY 11201 Slide 1 Jaron J. Rubenstein

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

Page 9: Copyright © 2001, Logicept Corporation. All Rights Reserved.Logicept Corporation 25 Washington Street 3rd Floor Brooklyn, NY 11201 Slide 1 Jaron J. Rubenstein

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?

Page 10: Copyright © 2001, Logicept Corporation. All Rights Reserved.Logicept Corporation 25 Washington Street 3rd Floor Brooklyn, NY 11201 Slide 1 Jaron J. Rubenstein

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/