Quoteth:
What is the ONE BEST way to query a database table and display it as a web page?
What is the ONE BEST way to identify a user?
What is the ONE BEST way to create a web page?
What is the ONE BEST way to edit a database record?
What is the ONE BEST way to query a database?
And I respond:
There is no best way for any of these.
For every situation, there is a better way than most to accomplish a task. However, what works best in situation A may not work best in situation B.

Differences in hardware (CPU model) is a start , as some software isn't available for all builds as of yet. Then you need to think about the OS and/or distribution vendor, as some tools work better on some CPUs than others. Then you need to worry about versions of those installed tools. What may be a great solution in a 1.0 version may be the worst solution in a 1.1 version due to changes in the tool backends.

Then you have differences in policy that might be set at the upper levels. Maybe you need to develop a solution that works with all other developers, thus limiting tools that might be guru's dreams that are also newbie's nightmares. Maybe you have to use very specific tools that are set by company security or policy, such as a specific version of perl or modules as have been cleared by an IT auditing team. And of course there is the structure of the team that is designing the program; does code separation from display have to be done to allow the graphic artists a stab?

And then there's personal preference. If monk A used tool Y for years, and monk B used tool Z (that does the same thing as Y) for years, there's no way that A and B will concur on the best tool.

In other words, we cannot even begin to recommend the BEST way to do something. We can say which solutions are *stupid* (such as reinventing CGI.pm), and we can offer *numerous* possible solutions, but it's up to the asker to evaluate those solutions and decide which is the best way in the asker's environment to proceed.

Computer programming is another form of engineering. There is no right or wrong answers. A good engineer knows how to think about all the possible solutions and evalute the one that works best.

-----------------------------------------------------
Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain
"I can see my house from here!"
It's not what you know, but knowing how to find it if you don't know that's important


In reply to Re: The ONE way of the Web Page by Masem
in thread The ONE way of the Web Page by mdupont

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.