You didn't give many details of what you mean by "backend". Do you mean the store's administrative functions, like filling orders, checking inventory, etc?

Of course, I'm biased toward Tk, but there are advantages to using it, especially if it will only be run on 1 machine( i.e. no access needed thru the internet).

The main advantage is that you don't need to hassle with the programming ideosyncracies of the "stateless http protocol", like sending hidden fields, and storing sessions.

Tk will also give you a richer set of widgets to do your backend work. The html widgets are very limited, whereas as Tk will let you do just about anything you can dream up.

The Tk version "may" be more secure, since you are avoiding the unneccesary "apache middleman". If you have to setup a local apache server, for your workers, that can lead to complications....like firewall access, security issues, etc. Additionally, with Tk, you will be able to access more of the local filesystem and commands, without having to resort to using "sudo tricks".

So I would say, the only reason to use a browser interface, is if you want to remotely administer the store. But there too, Tk can access remotely thru encrypted connections.

Just as an example of the value of using Tk, just think about the problem of printing up shipping labels. I think it would be alot easier from a Tk script, than it would be thru a browser.


I'm not really a human, but I play one on earth. flash japh

In reply to Re: CGI vs Tk for application backend by zentara
in thread CGI vs Tk for application backend by Popcorn Dave

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.