Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > General > Best Practices

Reply
 
Thread Tools Rate Thread Display Modes
Old 10-21-2008, 09:22 PM   #1
fx.barrett
Paintball Freak
 
fx.barrett's Avatar
 
Join Date: Jul 2008
Location: Romania, TM
Posts: 467
Send a message via MSN to fx.barrett Send a message via Skype™ to fx.barrett
Default Best build for E-Commerce web site?

I have to build an E-Commerce web site for my one of my University projects and I want to know if there are any "best practices" for e-commerce web sites.. I'm quite sure that my professors will want to see an UML model but I'm not really sure what Design Pattern to apply if there's any ( honestly, I'd start building it right away without wasting time with patters ).

Anyway, I just want to know if there are any E-Commerce Web Site based design patters, something that really makes the app better, more open to change, abstracted and so on or there's no need to waste time with design pattern for something like this...

Thanks guys.

PS: I'll be building it in Flex 3 ( AS 3.0 ) + ASP.NET ( in C# ) + MS SQL.
__________________
FLASHFORUM.RO - You must speak Romanian in order to join.
BLOG.WISEBISOFT.COM - Share and Experiment.
fx.barrett is offline   Reply With Quote
Old 10-22-2008, 12:33 AM   #2
yell0wdart
jordanrift.com
 
Join Date: Sep 2007
Location: Phoenix, AZ
Posts: 297
Default

I'd probably go with MVC along with a few other supporting patterns (ie: singleton for database access and/or interfacing with paypal, maybe a factory or abstract factory for strongly encapsulating object creation, etc). I'd make your AS3 code essentially be the view, and pass validated user input strait to C#... but my C# is much stronger than my AS... so that might just be a preferrence thing.

Enterprise-level e-commerce sites (the good ones anyway) generally have a multi-tiered architecture.
__________________

bad developer

Jordan Rift
yell0wdart is offline   Reply With Quote
Old 10-23-2008, 03:37 PM   #3
mattkenefick
Chief Breaks-many-phones
 
Join Date: Jun 2007
Location: new york city
Posts: 527
Default

Focus most of your time on security and server side.

You might as well consider Flash to be a skin in this case (cause that's basically what it is). People + Flash + e-Commerce tends to be a security catastrophe unless you know what you are doing.

Simple things:
Never ever put anything important in Flash.
Don't send any important names from Flash.
Clean every piece of transferred data going in both directions.
Referrer is pointless, so don't waste time with it.

Basically build a cart... then put Flash over top of it.
mattkenefick is offline   Reply With Quote
Old 10-23-2008, 11:27 PM   #4
fx.barrett
Paintball Freak
 
fx.barrett's Avatar
 
Join Date: Jul 2008
Location: Romania, TM
Posts: 467
Send a message via MSN to fx.barrett Send a message via Skype™ to fx.barrett
Default

Thanks guys for the feedback, really appreciate it. I was thinking about going with an MCV model too so I think I'll be sticking to that. Matt, thanks for the advices I was taking all that into consideration althought some things are not really possible Like the "don't send any important names from Flash"... Since there will be a login system up and running, I'll have Flash send data to PHP and vice-versa but I think that is still safe and ok ( not really sure if there are any ways to make this even more secure but if they are and you know of some then I'd really appreaciate if you link me to the article/doc ).

Thanks again for the feedback. More feedbacks is welcome too.
__________________
FLASHFORUM.RO - You must speak Romanian in order to join.
BLOG.WISEBISOFT.COM - Share and Experiment.
fx.barrett is offline   Reply With Quote
Old 10-24-2008, 12:06 AM   #5
Flash Gordon
rather be programming
 
Flash Gordon's Avatar
 
Join Date: Feb 2005
Location: City of Angels
Posts: 10,000
Default

you need a good list of requirements first. Basically anything can be MVC, so that may or may not help any. I would think items can be group or represented seperately which makes me want to treat them as composites. But there is a lot to consider. What pattern....i dunno. what do you need?
__________________
I'm old enough to know better and young enough to do it anyway. -- maskedman
Flash Gordon is offline   Reply With Quote
Old 10-24-2008, 12:45 AM   #6
yell0wdart
jordanrift.com
 
Join Date: Sep 2007
Location: Phoenix, AZ
Posts: 297
Default

I was thinking composite as a possiblity for shopping cart items as well. I suggested MVC due to the multi-tiered nature of the project. Flash = View, PHP = Controller/Model, etc.

I agree though... a clear picture of the project requirements would be extremely helpful.
__________________

bad developer

Jordan Rift
yell0wdart is offline   Reply With Quote
Old 10-24-2008, 08:24 AM   #7
fx.barrett
Paintball Freak
 
fx.barrett's Avatar
 
Join Date: Jul 2008
Location: Romania, TM
Posts: 467
Send a message via MSN to fx.barrett Send a message via Skype™ to fx.barrett
Default

Since this is an University project, there aren't really any clear requirements. Uni professors aren't as smart as people might think they are... They left the whole weight on my shoulder, planning and everything... So, essentially I'm free to do whatever I want.

I have never built an eCommerce web site before ( although I know what it should have ) and since this is a University project, I want to make it as good as possible ( so that at least I learn something from this ).

So, I too am open to any suggestions since I really don't know what kind of solutions, paths are out there for an eCommerce web site ( and which solutions are worth considering and which aren't ). I really appreciate your time guys. Thanks a lot.
__________________
FLASHFORUM.RO - You must speak Romanian in order to join.
BLOG.WISEBISOFT.COM - Share and Experiment.

Last edited by fx.barrett; 10-24-2008 at 08:28 AM..
fx.barrett is offline   Reply With Quote
Old 10-24-2008, 08:38 AM   #8
Flash Gordon
rather be programming
 
Flash Gordon's Avatar
 
Join Date: Feb 2005
Location: City of Angels
Posts: 10,000
Default

start making a list of your own requirements then and define what is a shopping cart and what are sellable products.
__________________
I'm old enough to know better and young enough to do it anyway. -- maskedman
Flash Gordon is offline   Reply With Quote
Old 10-24-2008, 09:28 AM   #9
fx.barrett
Paintball Freak
 
fx.barrett's Avatar
 
Join Date: Jul 2008
Location: Romania, TM
Posts: 467
Send a message via MSN to fx.barrett Send a message via Skype™ to fx.barrett
Default

I'd like to do something like the Adobe Flex store example: http://examples.adobe.com/flex2/inpr...flexstore.html

I think that example kinda sums everything up, the shopping cart, how it should work, login, search, a list of mobile telephones ( with description, and everything ), a compare button so that users can compare 2 or more products, and so on.

Oviously, I'd have a login system where users can register and add new products, edit their products, delete products ( added by them ) and so on.

I don't want the project to be very very complex, my main goal at the moment is to get a correct structure which is well encapsulated and open for change ( something I can get started with ).
__________________
FLASHFORUM.RO - You must speak Romanian in order to join.
BLOG.WISEBISOFT.COM - Share and Experiment.
fx.barrett is offline   Reply With Quote
Old 10-24-2008, 05:49 PM   #10
Flash Gordon
rather be programming
 
Flash Gordon's Avatar
 
Join Date: Feb 2005
Location: City of Angels
Posts: 10,000
Default

sounds like you have 2 separate systems: the shopping cart and the CMS. I'd treat them that way. The complexity you talk about will come from the features you choose to implement.
__________________
I'm old enough to know better and young enough to do it anyway. -- maskedman

Last edited by Flash Gordon; 10-24-2008 at 05:57 PM..
Flash Gordon is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DVD of web site Chukka john Projectors and CDs 0 05-18-2008 04:31 PM
Microsoft releases new Web browser beta sho shinjo General Chat 34 03-25-2008 03:34 PM
My Web Design Site Webeaz Site Check 16 03-02-2007 04:23 PM
Web Site Setup Help! Stantz Simple Stuff (Newbies) 7 02-03-2007 05:53 PM
Problems with plugin build paask Other Flash General Questions 1 02-04-2003 05:55 PM


All times are GMT. The time now is 09:31 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.