in reply to Re: Re: Perlshop-z Perl Shopping Cart
in thread Perlshop-z Perl Shopping Cart

With something like this, my thoughts are that starting from scratch with a set of requirements and building towards them would be a better use of time than refactoring.

That would also allow you to break things up into a set of achievable subgoals rather than having to work on a complex 3000 line (and in my opinion badly written) script.

Of course I'm not going to do either :) but if you wanted to learn perl well, I'd steer towards the former.

gav^

  • Comment on Re: Re: Re: Perlshop-z Perl Shopping Cart

Replies are listed 'Best First'.
Re: Re: Re: Re: Perlshop-z Perl Shopping Cart
by zentara (Cardinal) on Apr 15, 2002 at 16:21 UTC

    Thanks for all the comments. I used the Perlshop code as a vehicle to get me started. I really spent more time on my administrator ideas. I learned how to run the ptkdb debugger effectively tracing out the perlshop code. I learned what the problems are in setting up such a store from this script, which I never would have known if I started from scratch. When Perl6 gets released, I plan on rewriting the store to learn Perl6. The only part of the perlshop code which was difficult for me to grasp was the built-in html templating system. Thanks to all.

Re: Re: Re: Re: Perlshop-z Perl Shopping Cart
by zentara (Cardinal) on Apr 15, 2002 at 16:33 UTC
    Well thanks to everyone for the comments. I used the perlshop code as a vehicle to setup something so I could attempt an administrator. I never would have figured out a store from scratch. I needed one that worked like I expected a store to work. I learned how to effectively use the ptkdb debugger with this, which is probably it's biggest benefit for me. When Perl6 comes out, I will probably try to rewrite my own store, using the perlshop store as a general layout.